/* ==========================================================================
   COMPLETE REBUILD: AWWWARDS-LEVEL LUXURY HEALTHCARE UI
   ========================================================================== */

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

:root {
    /* Color Palette - Apple/Linear inspired */
    --primary: #0A84FF; /* iOS Blue */
    --primary-hover: #0070E0;
    --primary-light: rgba(10, 132, 255, 0.1);
    --secondary: #30D158; /* iOS Green */
    --dark: #000000;
    --dark-surface: #111111;
    --gray-900: #1C1C1E;
    --gray-800: #2C2C2E;
    --gray-400: #8E8E93;
    --gray-200: #E5E5EA;
    --gray-100: #F2F2F7;
    --light: #FFFFFF;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* Spacing System */
    --space-4: 4px;
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --space-128: 128px;
    --section-padding: var(--space-128) 0;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
    --glow-primary: 0 0 32px rgba(10, 132, 255, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(24px);
    
    /* Transitions */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 300ms;
    --duration-med: 600ms;
    --duration-slow: 1000ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Managed by Lenis */
    font-size: 16px;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--gray-900);
    background-color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0;
    letter-spacing: -0.02em;
}

p {
    margin-top: 0;
    margin-bottom: var(--space-24);
    color: var(--gray-800);
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--dark), var(--gray-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: var(--space-16);
    letter-spacing: -0.03em;
}
.subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--gray-400);
    font-weight: 400;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-16);
    display: block;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container-premium {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}
@media (min-width: 768px) {
    .container-premium { padding: 0 var(--space-48); }
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   BUTTONS (MAGNETIC & GLOW)
   ========================================================================== */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--light);
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-smooth);
    box-shadow: var(--shadow-md);
}
.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform var(--duration-med) var(--ease-smooth);
}
.btn-luxury:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    background: var(--primary-hover);
    color: var(--light);
}
.btn-luxury:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--gray-400);
}
.btn-secondary:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--light);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HEADER & NAVBAR (APPLE INSPIRED)
   ========================================================================== */
.luxury-header {
    position: fixed;
    top: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-32));
    max-width: 1200px;
    height: 90px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-24);
    transition: all var(--duration-med) var(--ease-smooth);
}
.luxury-header.scrolled {
    width: 100%;
    top: 0;
    max-width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.brand-logo img {
    height: 65px;
    width: auto;
}

.desktop-nav {
    display: none;
}
@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        gap: var(--space-32);
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-fast) var(--ease-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}
@media (min-width: 992px) { .mobile-toggle { display: none; } }
.mobile-toggle span {
    width: 24px; height: 2px;
    background: var(--dark);
    transition: all var(--duration-fast) ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(242, 242, 247, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-med) var(--ease-smooth), visibility var(--duration-med);
}
.fullscreen-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.mobile-nav-list {
    list-style: none;
    padding: 0;
    text-align: center;
}
.mobile-nav-list li {
    margin: var(--space-24) 0;
    transform: translateY(40px);
    opacity: 0;
    transition: all var(--duration-med) var(--ease-spring);
}
.fullscreen-menu.active .mobile-nav-list li {
    transform: translateY(0) !important;
    opacity: 1 !important;
}
.mobile-nav-list li:nth-child(1) { transition-delay: 100ms; }
.mobile-nav-list li:nth-child(2) { transition-delay: 150ms; }
.mobile-nav-list li:nth-child(3) { transition-delay: 200ms; }
.mobile-nav-list li:nth-child(4) { transition-delay: 250ms; }
.mobile-nav-list a {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background: var(--dark);
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--light);
    text-align: center;
    margin: 0 auto;
}
.hero-content .display-title {
    background: none;
    -webkit-text-fill-color: var(--light);
}
.hero-content .subtitle {
    color: var(--gray-200);
}
.hero-visual {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}
.hero-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 3;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
    transform: scale(1.1);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
@media (max-width: 991px) {
    .hero { 
        min-height: auto;
        padding-top: 80px; 
        padding-bottom: 60px;
        flex-direction: column; 
        justify-content: flex-start; 
        background: var(--light); /* Change background so text is visible below */
    }
    .hero-visual {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Keep image proportion */
        border-radius: 0;
    }
    .hero-visual::after {
        display: none; /* Remove dark gradient on mobile */
    }
    .hero-content { 
        width: 100%;
        padding: 40px 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: var(--dark); /* Dark text on mobile since background is light */
    }
    .hero-content .display-title {
        font-size: 2.2rem;
        line-height: 1.2;
        -webkit-text-fill-color: var(--dark);
    }
    .hero-content .subtitle {
        font-size: 1rem;
        color: var(--gray-800);
        margin-bottom: 24px !important;
    }
    .hero-content .glass-panel {
        background: var(--gray-100) !important;
        border: 1px solid var(--gray-200) !important;
        color: var(--dark);
    }
    .hero-slide {
        border-radius: 0;
        object-fit: contain; /* Prevents cutting on mobile */
        background: #000; /* Fill empty space if aspect ratio differs slightly */
    }
}
/* Simple fade in animation for hero elements */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
}
.fc-1 { width: 500px; height: 500px; top: -100px; left: -100px; }
.fc-2 { width: 400px; height: 400px; bottom: 100px; right: -50px; background: radial-gradient(circle, var(--secondary) 0%, transparent 70%); }

/* ==========================================================================
   SERVICES (BESPOKE ASYMMETRIC PANELS)
   ========================================================================== */
.services-section {
    background: var(--gray-100);
}
.service-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
    margin-bottom: var(--space-96);
    align-items: center;
}
@media (min-width: 992px) {
    .service-panel { grid-template-columns: 1fr 1fr; gap: var(--space-64); }
    .service-panel:nth-child(even) .service-content { order: 2; }
    .service-panel:nth-child(even) .service-visual { order: 1; }
}
.service-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--light);
}
.service-visual img {
    width: 100%; height: auto;
    display: block;
    transform: scale(1.1);
    transition: transform var(--duration-slow) var(--ease-smooth);
}
.service-panel:hover .service-visual img {
    transform: scale(1);
}
.service-icon {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem;
    margin-bottom: var(--space-24);
}

/* ==========================================================================
   ABOUT STORYTELLING
   ========================================================================== */
.about-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark-surface);
    color: var(--light);
}
.about-hero .display-title {
    background: none;
    -webkit-text-fill-color: var(--light);
}
.about-hero .subtitle {
    color: var(--gray-400);
}
.story-block {
    margin-bottom: var(--space-96);
}
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
}
@media (min-width: 768px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
    background: var(--light);
    border-radius: 24px;
    padding: var(--space-32);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-med) var(--ease-spring);
}
.stat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.stat-number {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* ==========================================================================
   MEGA FOOTER
   ========================================================================== */
.mega-footer {
    background: #000;
    color: var(--light);
    padding: var(--space-96) 0 var(--space-32);
    position: relative;
    overflow: hidden;
}
.footer-huge-text {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.05em;
    opacity: 0.05;
    white-space: nowrap;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-48);
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-64);
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-list {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-link {
    display: inline-block;
    color: var(--gray-400);
    margin-bottom: var(--space-16);
    font-size: 1.125rem;
    transition: all var(--duration-fast) var(--ease-smooth);
}
.footer-link:hover {
    color: var(--light);
    transform: translateX(8px);
}
.social-links {
    display: flex;
    gap: var(--space-16);
}
.social-links a {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex; justify-content: center; align-items: center;
    color: var(--light);
    font-size: 1.25rem;
    transition: all var(--duration-fast) var(--ease-smooth);
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px) scale(1.1);
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-32);
    position: relative;
    z-index: 2;
    color: var(--gray-400);
    font-size: 0.875rem;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; }
}

/* ==========================================================================
   PREMIUM LIGHTBOX (GALLERY)
   ========================================================================== */
.gallery-trigger img {
    transition: transform var(--duration-slow) var(--ease-smooth);
}
.gallery-trigger:hover img {
    transform: scale(1.05);
}
.premium-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}
.premium-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none; color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: background var(--duration-fast);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    align-items: center;
    gap: 40px;
    padding: 20px 50vw; /* padding to allow center snapping for first/last */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.lightbox-scroll-container::-webkit-scrollbar { display: none; }
.lightbox-scroll-container img {
    scroll-snap-align: center;
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain; /* ensures image is never cut */
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* GSAP Utils */
.gsap-reveal { opacity: 0; transform: translateY(40px); }
.parallax-bg { will-change: transform; }
