/* ==========================================================
   HK HOSPITAL WEBSITE
   style.css
   Author : ChatGPT
   Version : 1.0
==========================================================*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   ROOT VARIABLES
==========================================================*/

:root{

    --primary:#005BAC;
    --secondary:#00AEEF;
    --success:#00C853;
    --danger:#E53935;
    --dark:#1A1A1A;
    --white:#ffffff;
    --light:#f8fafc;
    --gray:#6c757d;

    --shadow:0 15px 40px rgba(0,0,0,.12);
    --shadowHover:0 25px 60px rgba(0,0,0,.18);

    --radius:18px;

}

/* ==========================================================
   RESET
==========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    color:var(--dark);

    background:#fff;

    overflow-x:hidden;

    line-height:1.7;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

.section-padding{

    padding:100px 0;

}

.container{

    max-width:1200px;

}

/* ==========================================================
   PRELOADER
==========================================================*/

#preloader{

    position:fixed;

    inset:0;

    background:#fff;

    z-index:99999;

    display:flex;

    align-items:center;

    justify-content:center;

}

.loader{

    text-align:center;

}

.loader img{

    width:90px;

    margin:auto;

}

.loader span{

    width:55px;

    height:55px;

    border-radius:50%;

    border:5px solid var(--secondary);

    border-top:5px solid transparent;

    display:block;

    margin:20px auto;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================================
   SCROLL PROGRESS
==========================================================*/

#progressBar{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:5px;

    background:linear-gradient(90deg,var(--primary),var(--secondary));

    z-index:999999;

}

/* ==========================================================
   NAVBAR
==========================================================*/

.header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:9999;

}

.navbar{

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(18px);

    transition:.4s;

    padding:18px 0;

}

.navbar.scrolled{

    background:#fff;

    box-shadow:var(--shadow);

}

.navbar-brand img{

    height:65px;

}

.nav-link{

    font-weight:600;

    color:#222 !important;

    margin-left:20px;

    transition:.3s;

    position:relative;

}

.nav-link::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:3px;

    background:var(--primary);

    transition:.3s;

}

.nav-link:hover::after{

    width:100%;

}

.nav-link:hover{

    color:var(--primary)!important;

}

/* ==========================================================
   BUTTONS
==========================================================*/

.btn{

    border-radius:40px;

    padding:14px 35px;

    font-weight:600;

    transition:.35s;

}

.btn-primary{

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    border:none;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:0 20px 40px rgba(0,91,172,.35);

}

.btn-outline-light:hover{

    transform:translateY(-4px);

}

/* ==========================================================
   HERO
==========================================================*/

.hero{

    position:relative;

    height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

}

.hero-video{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.hero-content{

    position:relative;

    color:#fff;

    z-index:10;

}

.hero-content h5{

    color:#8fd3ff;

    letter-spacing:3px;

    margin-bottom:20px;

    text-transform:uppercase;

}

.hero-content h1{

    font-size:68px;

    line-height:1.15;

    font-weight:800;

    margin-bottom:30px;

}

.hero-content h1 span{

    color:#7dd3fc;

}

.hero-content p{

    font-size:20px;

    max-width:650px;

    margin-bottom:40px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-bottom:50px;

    flex-wrap:wrap;

}

.hero-features{

    display:flex;

    gap:30px;

    flex-wrap:wrap;

}

.hero-features div{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:17px;

}

.hero-features i{

    color:#00C853;

    font-size:26px;

}

/* ==========================================================
   APPOINTMENT CARD
==========================================================*/

.appointment-card{

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(20px);

    padding:35px;

    border-radius:20px;

    color:#fff;

    box-shadow:var(--shadow);

}

.appointment-card h3{

    margin-bottom:20px;

    font-weight:700;

}

.appointment-card ul{

    padding-left:0;

}

.appointment-card li{

    padding:10px 0;

    border-bottom:1px solid rgba(255,255,255,.15);

}

/* ==========================================================
   HOSPITAL HIGHLIGHTS
==========================================================*/

.highlights{
    background:#f8fbff;
}

.highlight-box{

    background:#fff;

    padding:40px 30px;

    border-radius:18px;

    text-align:center;

    transition:.4s;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

    cursor:pointer;

    height:100%;

}

.highlight-box:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 60px rgba(0,91,172,.20);

}

.highlight-box i{

    font-size:55px;

    color:var(--primary);

    margin-bottom:20px;

}

.highlight-box h2{

    font-size:42px;

    color:var(--primary);

    font-weight:700;

}

.highlight-box p{

    color:#666;

    font-weight:500;

    margin:0;

}

/* ==========================================================
   SECTION TITLE
==========================================================*/

.section-title{

    margin-bottom:60px;

}

.section-title .subtitle{

    display:inline-block;

    color:var(--secondary);

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:10px;

}

.section-title h2{

    font-size:46px;

    font-weight:800;

    color:var(--dark);

    margin-bottom:20px;

}

.section-title p{

    max-width:650px;

    margin:auto;

    color:#777;

}

/* ==========================================================
   SERVICES
==========================================================*/

.services{

    background:#ffffff;

}

.service-card{

    background:#fff;

    border-radius:20px;

    padding:40px;

    transition:.4s;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    height:100%;

    position:relative;

    overflow:hidden;

}

.service-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:linear-gradient(var(--primary),var(--secondary));

}

.service-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 60px rgba(0,91,172,.18);

}

.service-card i{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    font-size:36px;

    margin-bottom:25px;

}

.service-card h4{

    font-size:26px;

    margin-bottom:15px;

    font-weight:700;

}

.service-card p{

    color:#666;

    margin-bottom:25px;

}

.service-card a{

    color:var(--primary);

    font-weight:600;

}

.service-card a:hover{

    color:var(--secondary);

}

/* ==========================================================
   DOCTORS
==========================================================*/

.doctors{

    background:#f7fbff;

}

.doctor-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    transition:.4s;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    height:100%;

}

.doctor-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 60px rgba(0,91,172,.18);

}

.doctor-card img{

    width:100%;

    height:320px;

    object-fit:cover;

}

.doctor-content{

    padding:30px;

    text-align:center;

}

.doctor-content h4{

    font-weight:700;

    margin-bottom:10px;

}

.doctor-content span{

    color:var(--primary);

    font-weight:600;

    display:block;

    margin-bottom:10px;

}

.doctor-content p{

    color:#666;

    min-height:60px;

}

.doctor-content .btn{

    margin-top:15px;

}

/* ==========================================================
   WHY CHOOSE US
==========================================================*/

.why-us{

    background:#fff;

}

.why-us img{

    border-radius:20px;

    box-shadow:var(--shadow);

}

.why-us h2{

    font-size:44px;

    font-weight:800;

    margin-bottom:35px;

}

.feature-item{

    display:flex;

    gap:20px;

    margin-bottom:25px;

    align-items:flex-start;

}

.feature-item i{

    width:60px;

    height:60px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(var(--primary),var(--secondary));

    color:#fff;

    font-size:24px;

}

.feature-item h5{

    font-weight:700;

    margin-bottom:8px;

}

.feature-item p{

    color:#666;

}

/* ==========================================================
   CTA SECTION
==========================================================*/

.cta-section{

    background:linear-gradient(135deg,#005BAC,#00AEEF);

    padding:90px 0;

    text-align:center;

    color:#fff;

}

.cta-section h2{

    font-size:50px;

    font-weight:800;

    margin-bottom:20px;

}

.cta-section p{

    font-size:20px;

    margin-bottom:35px;

}

.cta-section .btn{

    margin:8px;

}

/* ==========================================================
   COMMON HOVER EFFECTS
==========================================================*/

.service-card,
.doctor-card,
.highlight-box{

    transition:all .35s ease;

}

.service-card:hover i,
.highlight-box:hover i{

    transform:rotate(10deg) scale(1.1);

}

.service-card i,
.highlight-box i{

    transition:.35s;

}

/* ==========================================================
   TESTIMONIALS
==========================================================*/

.testimonials{

    background:#f8fbff;

}

.testimonial-card{

    background:#fff;

    padding:45px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.35s;

    margin:15px;

}

.testimonial-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 60px rgba(0,91,172,.18);

}

.testimonial-card i{

    font-size:50px;

    color:var(--primary);

    margin-bottom:20px;

}

.testimonial-card p{

    color:#666;

    font-size:17px;

    line-height:1.8;

}

.testimonial-card h5{

    margin-top:20px;

    font-weight:700;

}

.stars{

    color:#ffc107;

    font-size:20px;

    letter-spacing:2px;

    margin-top:10px;

}

/* ==========================================================
   GALLERY
==========================================================*/

.gallery-preview{

    background:#fff;

}

.gallery-preview img{

    width:100%;

    height:260px;

    object-fit:cover;

    border-radius:18px;

    transition:.4s;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.gallery-preview img:hover{

    transform:scale(1.05);

    box-shadow:0 20px 50px rgba(0,91,172,.20);

}

/* ==========================================================
   MAP
==========================================================*/

.map-section{

    overflow:hidden;

}

.map-section iframe{

    width:100%;

    height:450px;

    border:none;

}

/* ==========================================================
   FOOTER
==========================================================*/

.footer{

    background:#0d1b2a;

    color:#fff;

    padding:80px 0 20px;

}

.footer h5{

    font-weight:700;

    margin-bottom:25px;

}

.footer p{

    color:#d7d7d7;

}

.footer ul{

    padding:0;

}

.footer li{

    margin-bottom:14px;

}

.footer a{

    color:#d7d7d7;

    transition:.3s;

}

.footer a:hover{

    color:#00AEEF;

    padding-left:8px;

}

.footer hr{

    margin:40px 0 20px;

    border-color:rgba(255,255,255,.15);

}

/* ==========================================================
   FLOATING BUTTONS
==========================================================*/

.floating-whatsapp{

    position:fixed;

    right:25px;

    bottom:95px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    box-shadow:0 15px 35px rgba(37,211,102,.35);

    z-index:999;

    transition:.3s;

}

.floating-whatsapp:hover{

    transform:scale(1.1);

    color:#fff;

}

.floating-call{

    position:fixed;

    right:25px;

    bottom:20px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#E53935;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    box-shadow:0 15px 35px rgba(229,57,53,.35);

    z-index:999;

    transition:.3s;

}

.floating-call:hover{

    transform:scale(1.1);

    color:#fff;

}

/* ==========================================================
   SCROLL TO TOP
==========================================================*/

#scrollTop{

    position:fixed;

    left:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    cursor:pointer;

    display:none;

    z-index:999;

    transition:.3s;

}

#scrollTop:hover{

    transform:translateY(-5px);

}

/* ==========================================================
   CUSTOM SCROLLBAR
==========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(var(--primary),var(--secondary));

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#005BAC;

}

/* ==========================================================
   IMAGE HOVER
==========================================================*/

img{

    transition:.35s;

}

img:hover{

    opacity:.96;

}

/* ==========================================================
   FADE ANIMATION
==========================================================*/

.fade-up{

    animation:fadeUp .8s ease forwards;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   SMOOTH TRANSITIONS
==========================================================*/

a,
button,
.card,
.service-card,
.doctor-card,
.highlight-box{

    transition:all .35s ease;

}

/* =========================================
   GALLERY PAGE
========================================= */


.gallery-hero{

height:60vh;

background:
linear-gradient(
rgba(0,0,0,.6),
rgba(0,0,0,.6)
),
url("../images/gallery/hospital1.jpg");

background-size:cover;

background-position:center;

display:flex;

align-items:center;

justify-content:center;

color:white;

}



.gallery-hero h1{

font-size:55px;

font-weight:700;

}



.gallery-item{

overflow:hidden;

transition:.4s;

}



.gallery-item img{

width:100%;

height:300px;

object-fit:cover;

cursor:pointer;

transition:.5s;

}



.gallery-item img:hover{

transform:scale(1.08);

}



.filter-btn{

margin:5px;

}





/* LIGHTBOX */


.image-lightbox{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.9);

display:flex;

justify-content:center;

align-items:center;

z-index:9999;

}



.lightbox-content img{

max-width:90%;

max-height:90vh;

border-radius:10px;

}



.close-lightbox{

position:absolute;

top:30px;

right:40px;

font-size:50px;

color:white;

cursor:pointer;

}
