/* ==========================================================================
   Design System & Variables
   ========================================================================== */
   :root {
    /* Colors - Premium Navy/Teal Theme */
    --bg-base: #030b17; /* Very deep navy */
    --bg-surface: #0a1628; /* Lighter navy for cards */
    --bg-surface-elevated: #15263f; /* Hover states */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --brand-primary: #0284c7; /* Trustworthy medical blue */
    --brand-primary-light: #38bdf8;
    --brand-accent: #14b8a6; /* Teal accent */
    
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 22, 40, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', serif; /* For elegant headers if needed */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(20, 184, 166, 0.15);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-green {
    color: var(--whatsapp-green);
}

/* ==========================================================================
   UI Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--brand-primary-light);
    border-color: rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    background-color: rgba(2, 132, 199, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.2);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Giant CTA Button */
.giant-btn {
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    border-radius: 16px;
}

.giant-btn .btn-subtext {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(3, 11, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--brand-accent);
    font-size: 1.75rem;
    display: flex;
}

.logo-text {
    color: var(--text-primary);
}

.logo .highlight {
    font-weight: 300;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 11, 23, 0.98);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

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

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.8;
}

.mobile-link:hover {
    color: var(--brand-accent);
    opacity: 1;
}

.mobile-cta {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background Effects */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-accent) 0%, transparent 70%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Hero Content */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

/* Hero Visual Card */
.hero-visual {
    position: relative;
}

.main-hero-card {
    border-top: 2px solid rgba(255,255,255,0.15); /* Gives a premium lighting edge */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.care-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.care-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-accent);
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.list-content {
    display: flex;
    flex-direction: column;
}

.list-content strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.list-content span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: var(--bg-surface-elevated);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10;
}

.badge-1 {
    top: -20px;
    right: -20px;
    color: #fbbf24; /* Gold */
}

.badge-2 {
    bottom: -20px;
    left: -20px;
    color: var(--brand-primary-light);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-animation {
    animation: float 6s ease-in-out infinite;
}

.delay-float {
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
/* ==========================================================================
   Main Sections (Services, Process, Hospitals)
   ========================================================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-alt {
    position: relative;
    background-color: rgba(2, 132, 199, 0.03);
}

.bg-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.section-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.section-header {
    max-width: 600px;
}

.section-header.text-center {
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(20, 184, 166, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(20, 184, 166, 0.2));
    color: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Timeline (How it works) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary-light), var(--brand-accent));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 5px;
    width: 50px;
    height: 50px;
    background: var(--bg-base);
    border: 2px solid var(--brand-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-accent);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brand-primary-light);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Hospitals */
.hospital-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.logo-box {
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.logo-box:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Testimonial */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--brand-primary-light);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact li i {
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: white;
}

.wa-tooltip {
    position: absolute;
    right: 80px;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.floating-whatsapp:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

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

/* ==========================================================================
   Media Queries Update
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 868px) {
    .nav-links, .nav-cta {
        display: none; /* Will implement mobile menu later */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .badge {
        margin: 0 auto 2rem;
    }
    
    .floating-badge {
        display: none; /* Hide on mobile to save space */
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }
    
    .wa-tooltip {
        display: none;
    }
}
