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

:root{
    --p:#2d6a4f;
    --pd:#1b4332;
    --pl:#52b788;
    --accent:#25D366;
    --d:#1a1a2e;
    --g:#6c757d;
    --w:#fff;
    --shadow:0 10px 40px rgba(0,0,0,.1);
    --shadow-lg:0 20px 60px rgba(0,0,0,.15);
    --radius:20px;
    --transition:all .4s cubic-bezier(.25,.8,.25,1);
    --admin-color:#0d6efd;
    --opd-color:#ff6b6b;
    --lms-color:#6f42c1;
}

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Hind Siliguri',sans-serif;font-size:16px;line-height:1.8;color:var(--d);overflow-x:hidden}
html{scroll-behavior:smooth}

/* ============================================ */
/* NAVBAR */
/* ============================================ */
#navbar{
    background:rgba(45,106,79,.95)!important;
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    padding:12px 0;
    transition:var(--transition);
    z-index:1000;
}
#navbar.scrolled{
    background:var(--pd)!important;
    padding:8px 0;
    box-shadow:0 5px 30px rgba(0,0,0,.3);
}
.navbar-brand{
    color:#fff!important;
    font-weight:700;
    font-size:1.2rem;
    display:flex;
    align-items:center;
    gap:10px;
}
.nav-logo{height:40px;border-radius:50%}

/* Nav Links */
.nav-link{
    color:rgba(255,255,255,.85)!important;
    font-weight:500;
    margin:0 5px;
    position:relative;
    padding:8px 12px!important;
    font-size:.9rem;
}
.nav-link::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:0;
    height:2px;
    background:var(--pl);
    transition:var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after{width:100%}

/* Navbar Buttons */
.nav-btn{
    padding:7px 16px!important;
    border-radius:25px;
    font-weight:600;
    font-size:.85rem;
    text-decoration:none;
    display:inline-block;
    white-space:nowrap;
    transition:all .3s;
    margin:0 3px;
}
.nav-btn i{margin-right:5px}

/* Admin Button */
.btn-admin-nav{
    background:var(--admin-color);
    color:#fff!important;
}
.btn-admin-nav:hover{
    background:#fff;
    color:var(--admin-color)!important;
    box-shadow:0 0 15px rgba(13,110,253,.5);
    transform:translateY(-2px);
}

/* OPD Button */
.btn-opd-nav{
    background:var(--opd-color);
    color:#fff!important;
    animation:pulse-opd 2s infinite;
}
.btn-opd-nav:hover{
    background:#ee5a24;
    color:#fff!important;
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(255,107,107,.4);
}
@keyframes pulse-opd{
    0%,100%{box-shadow:0 0 0 0 rgba(255,107,107,.5)}
    50%{box-shadow:0 0 0 12px rgba(255,107,107,0)}
}

/* LMS Button */
.btn-lms-nav{
    background:var(--lms-color);
    color:#fff!important;
}
.btn-lms-nav:hover{
    background:#5a32a3;
    color:#fff!important;
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(111,66,193,.4);
}

/* ============================================ */
/* MOBILE NAVBAR */
/* ============================================ */
@media(max-width:991px){
    .navbar-collapse{
        background:rgba(45,106,79,.98);
        padding:15px;
        border-radius:12px;
        margin-top:10px;
        max-height:80vh;
        overflow-y:auto;
    }
    .nav-link{
        padding:12px 15px!important;
        border-bottom:1px solid rgba(255,255,255,.1);
        text-align:center;
        font-size:.95rem;
    }
    .nav-link::after{display:none}
    .nav-link:hover{
        background:rgba(255,255,255,.1);
        border-radius:8px;
    }
    .nav-btn{
        display:block!important;
        text-align:center;
        margin:6px 0!important;
        padding:10px!important;
        font-size:.9rem;
    }
    .navbar-brand{font-size:1rem}
    .nav-logo{height:32px}
}

@media(max-width:576px){
    .navbar-brand{font-size:.85rem}
    .nav-logo{height:28px}
    .nav-btn{font-size:.8rem;padding:8px!important}
}

/* ============================================ */
/* HERO */
/* ============================================ */
.hero{
    position:relative;
    background:linear-gradient(135deg,#1b4332 0%,#2d6a4f 50%,#52b788 100%);
    color:#fff;
    overflow:hidden;
    padding-top:80px;
}
.hero-bg{
    position:absolute;
    top:0;left:0;right:0;bottom:0;
    background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,133.3C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size:cover;
    opacity:.5;
}
.hero-badge{
    display:inline-block;
    background:rgba(255,255,255,.2);
    padding:8px 20px;
    border-radius:50px;
    font-size:.9rem;
    margin-bottom:20px;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.3);
}
.hero-title{
    font-size:3.5rem;
    font-weight:800;
    line-height:1.2;
    margin-bottom:15px;
    animation:fadeInUp 1s ease;
}
.hero-slogan{font-size:1.3rem;opacity:.9;margin-bottom:20px}
.hero-text{opacity:.8;max-width:500px;margin-bottom:30px}
.hero-btns{display:flex;gap:15px;flex-wrap:wrap}
.hero-img{
    max-width:100%;
    border-radius:30px;
    box-shadow:0 30px 80px rgba(0,0,0,.4);
    animation:float 5s ease-in-out infinite;
    border:5px solid rgba(255,255,255,.2);
}
.hero-img-placeholder{
    font-size:15rem;
    opacity:.2;
    animation:float 5s ease-in-out infinite;
}
.hero-wave{position:absolute;bottom:-2px;left:0;right:0}
@keyframes float{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-25px)}
}
@keyframes fadeInUp{
    from{opacity:0;transform:translateY(40px)}
    to{opacity:1;transform:translateY(0)}
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn{
    border-radius:50px;
    padding:12px 30px;
    font-weight:600;
    transition:var(--transition);
    border:none;
}
.btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.btn-whatsapp{
    background:var(--accent);
    color:#fff;
}
.btn-whatsapp:hover{
    background:#128C7E;
    color:#fff;
}
.btn-outline-light{
    border:2px solid #fff;
    color:#fff;
    background:transparent;
}
.btn-outline-light:hover{
    background:#fff;
    color:var(--p);
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */
.section{padding:100px 0}
.section-header{text-align:center;margin-bottom:60px}
.section-header h2{font-size:2.5rem;font-weight:700;margin-bottom:10px}
.section-header p{color:var(--g);max-width:600px;margin:0 auto}
.text-gradient{
    background:linear-gradient(135deg,var(--p),var(--pl));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.bg-light{background:#f8faf9}

/* ============================================ */
/* CARDS */
/* ============================================ */
.card{
    border:none;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:var(--transition);
    overflow:hidden;
}
.card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
}

/* Doctor Card */
.doctor-card{text-align:center;padding:30px 20px}
.doctor-img-wrap{position:relative;width:150px;height:150px;margin:0 auto 20px}
.doctor-img{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--pl);
    transition:var(--transition);
}
.doctor-card:hover .doctor-img{
    transform:scale(1.08);
    border-color:var(--p);
}
.doctor-status{
    position:absolute;
    bottom:5px;
    right:10px;
    width:18px;
    height:18px;
    background:var(--accent);
    border-radius:50%;
    border:3px solid #fff;
}
.doctor-info{
    display:flex;
    justify-content:center;
    gap:15px;
    font-size:.85rem;
    margin:10px 0;
    color:var(--g);
    flex-wrap:wrap;
}

/* Service Card */
.service-icon{
    font-size:3.5rem;
    display:block;
    margin-bottom:15px;
    transition:var(--transition);
}
.service-card:hover .service-icon{
    transform:scale(1.2) rotate(5deg);
}
.service-price{font-size:1.3rem;font-weight:700}

/* Product Card */
.product-img{height:200px;object-fit:cover;width:100%}

/* Chamber Card */
.chamber-card{border-left:5px solid var(--p)}
.chamber-card:hover{transform:translateX(8px)}

/* ============================================ */
/* CONTACT */
/* ============================================ */
.contact-section{
    background:linear-gradient(135deg,var(--p),var(--pd));
    padding:100px 0;
    color:#fff;
}
.contact-section .card{border-radius:var(--radius)}
.contact-section .form-control,
.contact-section .form-select{
    border-radius:12px;
    padding:12px 18px;
    border:1px solid #ddd;
    font-family:inherit;
    transition:var(--transition);
}
.contact-section .form-control:focus,
.contact-section .form-select:focus{
    border-color:var(--p);
    box-shadow:0 0 0 4px rgba(45,106,79,.1);
    outline:none;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer{
    background:#0a0a0a;
    color:#aaa;
    padding:50px 0 20px;
}
.footer h5{color:#fff}

/* ============================================ */
/* WHATSAPP FLOAT */
/* ============================================ */
.wa-float{
    position:fixed;
    bottom:30px;
    right:30px;
    width:60px;
    height:60px;
    background:var(--accent);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    z-index:999;
    box-shadow:0 10px 40px rgba(37,211,102,.4);
    animation:waPulse 2s infinite;
    text-decoration:none;
}
.wa-float:hover{color:#fff;transform:scale(1.1)}
@keyframes waPulse{
    0%,100%{box-shadow:0 10px 40px rgba(37,211,102,.4)}
    50%{box-shadow:0 10px 60px rgba(37,211,102,.8)}
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media(max-width:992px){
    .hero-title{font-size:2.5rem}
    .section{padding:60px 0}
}
@media(max-width:768px){
    .hero-title{font-size:2rem}
    .hero{text-align:center}
    .hero-text{margin:0 auto 20px}
    .hero-btns{justify-content:center}
    .hero-img,.hero-img-placeholder{margin-top:30px;max-width:250px}
    .section-header h2{font-size:1.8rem}
    .wa-float{
        width:50px;
        height:50px;
        font-size:24px;
        bottom:20px;
        right:20px;
    }
}
@media(max-width:576px){
    .hero-title{font-size:1.6rem}
    .hero-slogan{font-size:1rem}
    .hero-badge{font-size:.75rem;padding:6px 15px}
    .section-header h2{font-size:1.4rem}
}
/* ===== PERFORMANCE BOOST ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hardware acceleration for smooth animations */
.animate, 
.card, 
button, 
a, 
img,
.stat-number,
.doctor-card,
.service-card,
.product-card,
.chamber-card,
.tutorial-card,
.blog-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth transitions */
.card, .doctor-card, .service-card, .product-card, .chamber-card, .tutorial-card, .blog-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover, .doctor-card:hover, .service-card:hover, 
.product-card:hover, .chamber-card:hover, .tutorial-card:hover,
.blog-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #2d6a4f;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1b4332;
}

/* Prevent layout shifts */
img, video, iframe {
    aspect-ratio: auto;
    max-width: 100%;
    height: auto;
}

/* Smooth loading */
@keyframes fadeInLoad {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeInLoad 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}