:root {
    --primary: #0aa39a;
    --primary-light: #eaf7f6;
    --secondary: #f6a623;
    --dark: #0f172a;
    --light: #f8fbfb;
    --text: #475569;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }
.container { width: 92%; max-width: 1200px; margin: auto; }

/* NAVBAR */
.navbar {
    height: 95px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img { height: 65px; transition: var(--transition); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 35px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px; bottom: -8px; left: 0;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after { width: 100%; }

.btn-cta {
    background: var(--primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(10, 163, 154, 0.35);
}

.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(10, 163, 154, 0.45); }

/* MOBILE TOGGLE */
.menu-toggle { display: none; cursor: pointer; z-index: 2001; }
.menu-toggle .bar { width: 28px; height: 3px; background: var(--dark); margin: 6px 0; transition: 0.4s; border-radius: 5px; }

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.45)),
                url('images/hero-banner.png') center/cover fixed;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content { max-width: 750px; animation: fadeIn 1.2s ease-out; }
.badge { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); padding: 10px 25px; border-radius: 50px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.25); }
.hero h1 { font-size: 4.8rem; line-height: 1.05; margin: 25px 0; font-weight: 700; }
.hero h1 span { color: var(--primary); text-shadow: 0 0 25px rgba(10, 163, 154, 0.4); }
.hero p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.9; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 20px;
    transition: var(--transition);
}

.btn-outline:hover { background: white; color: var(--dark); }

/* SECTION TITLES */
.section-title { text-align: center; margin-bottom: 80px; }
.subtitle { color: var(--secondary); font-weight: 800; font-size: 0.85rem; letter-spacing: 3px; display: block; margin-bottom: 12px; }
.section-title h2 { font-size: 3rem; color: var(--dark); font-weight: 800; margin-bottom: 15px; }
.title-line { width: 90px; height: 5px; background: var(--primary); margin: 0 auto 25px; border-radius: 10px; position: relative; }
.title-line::after { content: ''; position: absolute; width: 14px; height: 14px; background: var(--secondary); border-radius: 50%; top: -4.5px; right: -25px; }

.title-line-left { width: 60px; height: 5px; background: var(--primary); margin-bottom: 25px; border-radius: 10px; }

/* ABOUT */
.about { padding: 130px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.img-wrapper { position: relative; }
.about img { width: 100%; border-radius: 35px; box-shadow: 25px 25px 70px rgba(0,0,0,0.12); transition: var(--transition); }
.about img:hover { transform: scale(1.02); }
.exp-box {
    position: absolute; bottom: -30px; right: -30px;
    background: var(--secondary); color: white;
    padding: 30px; border-radius: 25px; text-align: center;
    box-shadow: 0 15px 35px rgba(246, 166, 35, 0.45);
}

.stats-row { display: flex; gap: 25px; margin-top: 40px; }
.stat-card { background: var(--primary-light); padding: 25px; border-radius: 20px; flex: 1; text-align: center; transition: var(--transition); }
.stat-card:hover { background: var(--primary); color: white; }
.stat-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.stat-card:hover i { color: white; }

/* SERVICE CARDS */
.treatments { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.card { background: white; padding: 50px; border-radius: 30px; transition: var(--transition); border: 1px solid #f1f5f9; }
.icon-shape {
    width: 75px; height: 75px; background: var(--primary-light);
    color: var(--primary); border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 30px; transition: var(--transition);
}
.icon-shape.secondary { background: #fff7ed; color: var(--secondary); }
.card:hover { transform: translateY(-18px); box-shadow: 0 35px 65px -15px rgba(0,0,0,0.12); border-color: var(--primary); }
.card:hover .icon-shape { background: var(--primary); color: white; }

/* CTA SECTION */
.cta { background: linear-gradient(rgba(10, 163, 154, 0.92), rgba(10, 163, 154, 0.92)), url('images/hero-banner.png') center/cover fixed; color: white; text-align: center; padding: 120px 20px; border-radius: 0; }
.cta h2 { font-size: 3.2rem; margin-bottom: 20px; font-weight: 800; }
.cta p { font-size: 1.4rem; margin-bottom: 40px; opacity: 0.95; }

/* DOCTORS */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.doc-card { background: white; padding: 35px; border-radius: 20px; text-align: center; border: 1px solid #e2e8f0; transition: var(--transition); }
.doc-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.doc-card h4 { color: var(--dark); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.doc-card span { color: var(--primary); font-size: 0.9rem; font-weight: 700; }

/* CONTACT */
.contact { padding: 130px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; }
.info-item { display: flex; gap: 25px; margin-bottom: 40px; }
.info-item i { font-size: 1.8rem; color: var(--primary); margin-top: 5px; }
.contact-form { background: var(--light); padding: 60px; border-radius: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.input-group input, .input-group textarea { width: 100%; padding: 18px; border: 1px solid #e2e8f0; border-radius: 15px; margin-bottom: 25px; font-family: inherit; font-size: 1rem; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(10, 163, 154, 0.1); }
.w-100 { width: 100%; }

/* FOOTER */
.footer { background: #0b1221; color: #cbd5e1; padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 50px; }
.footer-logo { height: 65px; margin-bottom: 25px; filter: brightness(1.2); }
.footer-col h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 30px; position: relative; font-weight: 700; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 40px; height: 3px; background: var(--primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); font-weight: 500; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 10px; }

.social-links { display: flex; gap: 20px; margin-top: 30px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); text-decoration: none; font-size: 1.2rem; }
.social-links a:hover { background: var(--primary); transform: translateY(-8px); }

.newsletter { display: flex; margin-top: 25px; }
.newsletter input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 12px 0 0 12px; color: white; width: 100%; outline: none; }
.newsletter button { background: var(--primary); border: none; padding: 0 25px; border-radius: 0 12px 12px 0; color: white; cursor: pointer; transition: 0.3s; }
.newsletter button:hover { background: var(--secondary); }

.footer-bottom { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 0.9rem; }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(60px); transition: 1.2s cubic-bezier(0.2, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    /* .nav-links {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background: white; flex-direction: column; padding: 120px 50px;
        transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -15px 0 40px rgba(0,0,0,0.15);
    }
    .nav-links.active { right: 0; }
    .nav-links li a { margin: 20px 0; font-size: 1.6rem; margin-left: 0; }
    .btn-cta { border-radius: 15px; width: 100%; text-align: center; margin-top: 20px; }
    .menu-toggle { display: block; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); } */

    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero { text-align: center; justify-content: center; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .btn-outline { margin-left: 0; width: 100%; max-width: 300px; }
    .btn-primary { width: 100%; max-width: 300px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .hero h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
}



/* MOBILE TOGGLE - FIXED */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 5000; /* Increased to stay above overlay */
    position: relative;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 5px;
}

/* RESPONSIVE UPDATES */
@media (max-width: 960px) {
    .menu-toggle {
        display: block; /* Shows the hamburger on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Full width for better UX */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); /* Stylish blur background */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px;
        transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 4000;
    }

    .nav-links.active {
        right: 0; /* Brings the menu on-screen */
    }

    .nav-links li a {
        margin: 15px 0;
        font-size: 1.4rem;
        margin-left: 0;
        color: var(--dark);
    }

    .btn-cta {
        border-radius: 15px;
        width: 250px;
        text-align: center;
        margin-top: 20px;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
