/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
   :root {
    /* Main Palette */
    --navy: #0B1F33;
    --teal: #1FA7A0;
    --off-white: #F7F9F8;
    --white: #FFFFFF;
    --gold: #D6B878;
    --slate: #263746;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --shadow-sm: 0 4px 12px rgba(11, 31, 51, 0.05);
    --shadow-lg: 0 20px 40px rgba(11, 31, 51, 0.08);
    --shadow-gold: 0 10px 30px rgba(214, 184, 120, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

.bg-warm { background-color: var(--off-white); }
.bg-navy { background-color: var(--navy); }
.bg-white { background-color: var(--white); }

.text-center { text-align: center; }
.text-white, .text-white h2, .text-white h3, .text-white h4, .text-white p { color: var(--white); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 600px;
}

.section-header {
    margin-bottom: 4rem;
}
.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), #158b85);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(31, 167, 160, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(31, 167, 160, 0.6), 0 0 40px rgba(31, 167, 160, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
    box-shadow: 0 0 15px rgba(11, 31, 51, 0.4);
    transform: translateY(-3px);
}

.text-white .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}
.text-white .btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-sm:hover i {
    transform: translateX(4px);
}

.btn-text {
    padding: 0;
    color: var(--white);
    position: relative;
    border-radius: 0;
}
.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--teal);
    transition: var(--transition-fast);
}
.btn-text:hover::after {
    width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 0 5%;
}

.navbar.scrolled {
    top: 0.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /* Glassmorphism setup */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(11, 31, 51, 0.1);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .logo a {
    color: var(--navy);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--navy);
}

.nav-links a:hover {
    color: var(--teal);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-fast);
}
.navbar.scrolled .hamburger span {
    background-color: var(--navy);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--navy); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--navy); }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--navy);
}

@media (max-width: 992px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    z-index: -2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black layer with low opacity fading slightly to the right */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--off-white));
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 5%;
}

.hero-meta {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-meta .separator {
    color: var(--teal);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.secondary-actions {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .scroll-indicator { display: none; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.main-img {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 0;
    left: 0;
}

.overlapping-img {
    width: 60%;
    height: 60%;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--off-white);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--teal);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    box-shadow: 0 10px 20px rgba(31, 167, 160, 0.3);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.exp-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-images { height: 500px; max-width: 600px; margin: 0 auto; }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 2.5rem 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 40px;
    height: 4px;
    background-color: var(--teal);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    width: 60px;
}

/* ==========================================================================
   DOCTOR SECTION
   ========================================================================== */
.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.doc-qualifications {
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.doc-specialty {
    font-size: 1.2rem;
    color: var(--slate);
    opacity: 0.8;
}

.doctor-image-wrapper {
    position: relative;
}

.doc-img {
    height: 600px;
    border-radius: 4px 40px 4px 4px;
}

.decorative-shape {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: var(--gold);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.2;
}

@media (max-width: 992px) {
    .doctor-grid { grid-template-columns: 1fr; flex-direction: column-reverse; display: flex; }
    .doc-img { height: 400px; }
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 2.5rem; }
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .item-large, .item-wide { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   TESTIMONIALS SECTION (MARQUEE)
   ========================================================================== */
.testimonial-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 3rem;
    display: block;
}

/* Gradient fade on edges */
.testimonial-marquee::before,
.testimonial-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.testimonial-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--off-white), transparent);
}
.testimonial-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--off-white), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    will-change: transform;
    flex-shrink: 0;
}

.testimonial-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 400px;
    margin-right: 2rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(11, 31, 51, 0.05);
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.test-icon {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

.test-text {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--slate);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.test-author {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .testimonial-card { width: 300px; padding: 1.5rem; margin-right: 1.5rem; }
    .test-text { font-size: 1rem; }
    .marquee-track { animation-duration: 30s; }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.detail-icon {
    font-size: 1.5rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(38, 55, 70, 0.2);
}

.marker-pin {
    font-size: 3rem;
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; padding: 2rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.footer-links a:hover {
    opacity: 1;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ==========================================================================
   WHATSAPP FLOATING ACTION BUTTON
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #1ebe57;
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Icon Colors */
.detail-icon i { color: var(--teal); }
.test-icon i { color: var(--gold); }
.marker-pin i { color: var(--teal); }

/* ==========================================================================
   GLOBAL MOBILE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container { padding: 0.5rem 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .secondary-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 1rem;
    }
    
    /* About & Doctor section images on mobile */
    .about-images {
        display: block;
        height: 380px;
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }
    
    .about-images .main-img {
        position: absolute;
        width: 85%;
        height: 280px;
        top: 0;
        left: 0;
    }
    
    .about-images .overlapping-img {
        position: absolute;
        width: 65%;
        height: 220px;
        bottom: 0;
        right: 0;
        margin: 0;
        border-width: 6px;
    }
    
    /* Doctor section image */
    .doc-img { height: 350px; }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        padding: 0.8rem;
        bottom: -15px;
        left: -10px;
    }
    .experience-badge .exp-number { font-size: 1.5rem; }
    .experience-badge .exp-text { font-size: 0.6rem; }
    .exp-text { font-size: 0.55rem; }
    
    /* Gallery */
    .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .item-large, .item-wide { grid-column: span 1; grid-row: span 1; }
    
    /* Doctor grid */
    .doctor-grid { grid-template-columns: 1fr; }
    .doctor-image-wrapper { order: -1; }
    
    .mobile-nav-links a { font-size: 1.5rem; }
}

/* ==========================================================================
   REDUCED MOTION & ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
