:root {
    /* Premium Medical Color Palette - Modern & Sophisticated */
    --primary: #0891b2; /* Cyan-600 - Fresh medical feel */
    --primary-light: #22d3ee; /* Cyan-400 */
    --primary-dark: #0e7490; /* Cyan-700 */
    --primary-ultra-light: #ecfeff; /* Cyan-50 */
    --secondary: #8b5cf6; /* Violet-500 - Creative accent */
    --secondary-light: #a78bfa; /* Violet-400 */
    --secondary-dark: #7c3aed; /* Violet-600 */
    --accent: #f59e0b; /* Amber-500 - Warm highlights */
    --accent-light: #fbbf24; /* Amber-400 */
    --accent-dark: #d97706; /* Amber-600 */
    --success: #10b981; /* Emerald-500 */
    --warning: #f59e0b; /* Amber-500 */
    
    /* Background Colors - Modern Gradients */
    --bg: #f8fafc; /* Slate-50 */
    --bg-secondary: #f1f5f9; /* Slate-100 */
    --bg-tertiary: #e2e8f0; /* Slate-200 */
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-glass: rgba(255, 255, 255, 0.85);
    
    /* Text Colors - High Contrast */
    --text: #0f172a; /* Slate-900 */
    --text-secondary: #475569; /* Slate-600 */
    --text-muted: #64748b; /* Slate-500 */
    --text-light: #94a3b8; /* Slate-400 */
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Typography - Modern Font Stack */
    --font-main: 'Cairo', 'Tajawal', sans-serif;
    --font-display: 'Almarai', 'Cairo', sans-serif;
    
    /* Premium Gradients */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    
    /* Modern Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(8, 145, 178, 0.12);
    --shadow-xl: 0 16px 48px rgba(8, 145, 178, 0.15);
    --shadow-2xl: 0 24px 64px rgba(8, 145, 178, 0.18);
    --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.3);
    --shadow-glow-secondary: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius - Modern */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   LOADING SCREEN - Premium Medical Scanner
   ============================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated DNA/Rings */
.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 2s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: spin-reverse 1.5s linear infinite;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Scanner Effect */
.scanner {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    box-shadow: 0 0 20px var(--primary-light), 0 0 40px var(--primary);
    animation: scan-vertical 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan-vertical {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   NAVIGATION - Professional Modern Design
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    padding: 0;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    padding: 0.875rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 4px 20px rgba(8, 145, 178, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soft Glow Effect on Hover */
.navbar-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, 
        rgba(8, 145, 178, 0.3) 0%, 
        rgba(139, 92, 246, 0.2) 50%,
        rgba(8, 145, 178, 0.3) 100%);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.navbar-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(8, 145, 178, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.navbar-container:hover::before {
    opacity: 1;
}

.navbar.scrolled {
    top: 12px;
}

.navbar.scrolled .navbar-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 1.5rem;
    box-shadow: 
        0 8px 32px rgba(8, 145, 178, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(8, 145, 178, 0.25));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    background: var(--gradient);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover {
    transform: scale(1.03);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(8, 145, 178, 0.4));
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.nav-icon {
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

/* Underline Indicator */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 1rem;
    left: 1rem;
    height: 2px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Soft Background on Hover */
.nav-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(8, 145, 178, 0.08) 0%, 
        rgba(139, 92, 246, 0.06) 100%);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

.nav-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a:hover::after {
    opacity: 1;
}

.nav-links a:hover .nav-icon {
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(8, 145, 178, 0.3));
}

/* Active State */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--primary);
    background: linear-gradient(135deg, 
        rgba(8, 145, 178, 0.1) 0%, 
        rgba(139, 92, 246, 0.08) 100%);
}

.nav-links a.active::before,
.nav-links a[aria-current="page"]::before {
    transform: scaleX(1);
}

/* CTA Button - Premium Style */
.nav-links a.nav-cta {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    box-shadow: 
        0 4px 12px rgba(8, 145, 178, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.nav-links a.nav-cta::before {
    display: none;
}

.nav-links a.nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a.nav-cta .nav-icon {
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Shimmer Effect */
.nav-links a.nav-cta .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
}

.nav-links a.nav-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(8, 145, 178, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.nav-links a.nav-cta:hover::after {
    opacity: 1;
}

.nav-links a.nav-cta:hover .shimmer {
    left: 100%;
}

.nav-links a.nav-cta:hover .nav-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Focus Visible for Accessibility */
.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links a.nav-cta:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger:hover {
    background: rgba(8, 145, 178, 0.08);
    transform: scale(1.05);
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    position: relative;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   HERO SECTION - Premium 3D Design
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 160px 8% 80px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 15% 50%, rgba(8, 145, 178, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

/* Floating Particles */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(8, 145, 178, 0.15) 0%, transparent 8%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 8%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 6%),
        radial-gradient(circle at 70% 20%, rgba(8, 145, 178, 0.1) 0%, transparent 6%);
    animation: float-particles 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-particles {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(2deg); opacity: 1; }
}

/* Hero Content */
.hero-content {
    max-width: 650px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Animated Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title .word {
    display: inline-block;
    background: var(--gradient);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
    position: relative;
}

.hero-title .word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer-text {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.subtitle {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.85;
    max-width: 95%;
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Premium Buttons */
.btn-primary {
    padding: 18px 40px;
    background: var(--gradient);
    border: none;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: inline-block;
    letter-spacing: 0.02em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 350px;
    height: 350px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.btn-secondary {
    padding: 18px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 3px solid var(--border-dark);
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Hero Visual - 3D Doctor Image */
.hero-visual {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    perspective: 1000px;
}

/* 3D Rotating Rings */
.hero-rings {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.hero-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.hero-ring:nth-child(1) {
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: rotate-3d 15s linear infinite;
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.2);
}

.hero-ring:nth-child(2) {
    inset: -20px;
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: rotate-3d-reverse 20s linear infinite;
}

.hero-ring:nth-child(3) {
    inset: -40px;
    border-top-color: var(--accent);
    border-style: dashed;
    animation: rotate-3d 25s linear infinite reverse;
}

@keyframes rotate-3d {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); }
}

@keyframes rotate-3d-reverse {
    0% { transform: rotateX(360deg) rotateY(0deg) rotateZ(360deg); }
    100% { transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg); }
}

/* Doctor Image */
.doctor-image-wrapper {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(8, 145, 178, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 0 8px rgba(8, 145, 178, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.doctor-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 
        0 35px 100px rgba(8, 145, 178, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 12px rgba(8, 145, 178, 0.15);
}

.doctor-image-wrapper:hover .doctor-image {
    transform: scale(1.1);
    filter: brightness(1.05) contrast(1.05);
}

/* Glow Effect */
.doctor-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    border-radius: 50%;
    opacity: 0;
    filter: blur(40px);
    z-index: -1;
    transition: opacity 0.6s ease;
    animation: rotate-glow 10s linear infinite;
}

.doctor-image-wrapper:hover::after {
    opacity: 0.5;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   SECTIONS - Modern Design
   ============================================ */
section {
    padding: 6rem 5%;
    position: relative;
}

section:nth-child(even) {
    background: var(--surface);
}

section:nth-child(odd) {
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header .line {
    width: 120px;
    height: 6px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: var(--radius-full);
    position: relative;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.section-header .line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(8, 145, 178, 0.3);
}

/* ============================================
   ABOUT SECTION - Premium Cards
   ============================================ */
#about {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%), var(--surface);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: mesh-move 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes mesh-move {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

#about .container {
    position: relative;
    z-index: 1;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 4rem;
}

.about-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: white;
    padding: 0;
    box-shadow: 
        0 20px 70px rgba(8, 145, 178, 0.15),
        0 0 0 1px rgba(8, 145, 178, 0.08);
    animation: fadeInUp 1s ease-out;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: calc(var(--radius-2xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image-frame:hover::before {
    opacity: 1;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: calc(var(--radius-2xl) + 20px);
    opacity: 0.3;
    animation: rotate-corner 15s linear infinite;
}

@keyframes rotate-corner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.03) saturate(1.05);
}

.about-image-frame:hover .about-doctor-image {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.image-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, white 0%, #f8fafa 100%);
    padding: 16px 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 15px 50px rgba(8, 145, 178, 0.3),
        0 0 0 3px rgba(8, 145, 178, 0.1);
    z-index: 10;
    animation: slideInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    border: 2px solid white;
    transition: all 0.4s ease;
}

.image-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(8, 145, 178, 0.4),
        0 0 0 3px rgba(8, 145, 178, 0.2);
}

@keyframes slideInBounce {
    0% { opacity: 0; transform: translateY(40px) scale(0.8); }
    60% { transform: translateY(-10px) scale(1.1); }
    80% { transform: translateY(5px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.badge-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(8, 145, 178, 0.3));
    animation: rotate-icon 3s ease-in-out infinite;
}

@keyframes rotate-icon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.badge-text {
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-intro {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-intro h3 {
    font-size: 2.15rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 800;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.about-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0;
}

/* About Cards Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.about-card {
    background: white;
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(8, 145, 178, 0.08);
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: 
        0 16px 48px rgba(8, 145, 178, 0.12),
        0 0 0 1px rgba(8, 145, 178, 0.08);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.about-card:hover .card-icon::before {
    opacity: 1;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.about-card:hover h3 {
    color: var(--primary);
}

.about-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.about-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.about-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.about-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }

/* ============================================
   STATISTICS SECTION - Animated Counters
   ============================================ */
#statistics {
    background: var(--gradient);
    color: white;
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

#statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

#statistics::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 5.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    font-weight: 900;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: var(--surface);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.3);
}

.testimonial-info h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

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

.service-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
    background: var(--surface);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.icon-box {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 6px 12px rgba(8, 145, 178, 0.25));
}

.service-card:hover .icon-box {
    transform: scale(1.25) rotate(8deg);
    filter: drop-shadow(0 8px 16px rgba(8, 145, 178, 0.35));
}

.service-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   BRANCHES SECTION
   ============================================ */
#branches {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--surface) 100%);
    padding: 6rem 0;
}

.branches-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 3.5rem;
    line-height: 1.7;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.branch-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(8, 145, 178, 0.08);
}

.branch-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.2);
}

.branch-image {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.branch-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

.branch-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card:hover .branch-photo {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.2));
}

.branch-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

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

.branch-content h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.branch-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(8, 145, 178, 0.03);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.branch-info .info-item:hover {
    background: rgba(8, 145, 178, 0.08);
    transform: translateX(-5px);
}

.branch-info .info-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.branch-info .info-item span {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.branch-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.2);
}

.branch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3);
    filter: brightness(1.1);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-secondary) 100%);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 3rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(8, 145, 178, 0.08);
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: 0 16px 48px rgba(8, 145, 178, 0.12);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(8, 145, 178, 0.2));
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.75rem 0;
}

.contact-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Social Media Section */
.social-media-section {
    margin-top: 4rem;
    text-align: center;
}

.social-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: var(--radius-full);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(8, 145, 178, 0.08);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.06);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.social-btn svg,
.social-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: transparent;
    color: white;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover svg {
    transform: scale(1.15);
    filter: brightness(0) invert(1);
}

/* Social Button Colors */
.social-btn.whatsapp::before { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.social-btn.whatsapp:hover { box-shadow: 0 12px 40px rgba(37, 211, 102, 0.3); }

.social-btn.phone::before { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.social-btn.phone:hover { box-shadow: 0 12px 40px rgba(8, 145, 178, 0.3); }

.social-btn.facebook::before { background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%); }
.social-btn.facebook:hover { box-shadow: 0 12px 40px rgba(24, 119, 242, 0.3); }

.social-btn.instagram::before { background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%); }
.social-btn.instagram:hover { box-shadow: 0 12px 40px rgba(225, 48, 108, 0.3); }

.social-btn.twitter::before { background: linear-gradient(135deg, #1DA1F2 0%, #0C8BDB 100%); }
.social-btn.twitter:hover { box-shadow: 0 12px 40px rgba(29, 161, 242, 0.3); }

.social-btn.youtube::before { background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%); }
.social-btn.youtube:hover { box-shadow: 0 12px 40px rgba(255, 0, 0, 0.3); }

.social-btn.tiktok::before { background: linear-gradient(135deg, #000000 0%, #333333 100%); }
.social-btn.tiktok:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }

/* Booking Section */
.booking-section {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.booking-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.25);
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

.booking-card > * {
    position: relative;
    z-index: 1;
}

.booking-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: bounce 2s ease-in-out infinite;
}

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

.booking-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.booking-card > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.booking-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.booking-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.25rem;
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.booking-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.booking-btn svg,
.booking-btn span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    color: white;
}

.booking-btn:hover::before {
    opacity: 1;
}

.booking-btn:hover svg {
    transform: scale(1.15);
    filter: brightness(0) invert(1);
}

.whatsapp-booking::before { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.phone-booking::before { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%); }

/* ============================================
   SCROLL TO TOP BUTTON - Rocket Animation
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    overflow: visible;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    width: 20px;
    height: 25px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.8) 0%, rgba(245, 158, 11, 0.6) 50%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(3px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.scroll-to-top:hover::before {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    animation: flame-flicker 0.15s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); }
    100% { transform: translateX(-50%) scaleY(1.1) scaleX(0.95); }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
    0% { transform: translateX(-50%) translateY(100px) scale(0.3); opacity: 0; }
    50% { transform: translateX(-50%) translateY(-10px) scale(1.05); }
    100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.scroll-to-top.launching {
    animation: rocket-launch 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes rocket-launch {
    0% { transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); opacity: 1; filter: blur(0px); }
    15% { transform: translateX(-50%) translateY(-50px) scale(1.15) rotate(-5deg); opacity: 1; }
    30% { transform: translateX(-50%) translateY(-150px) scale(1.25) rotate(5deg); opacity: 0.95; }
    50% { transform: translateX(-50%) translateY(-350px) scale(1.3) rotate(-3deg); opacity: 0.8; }
    70% { transform: translateX(-50%) translateY(-600px) scale(1.2) rotate(2deg); opacity: 0.5; filter: blur(1px); }
    85% { transform: translateX(-50%) translateY(-900px) scale(0.8) rotate(-2deg); opacity: 0.2; filter: blur(3px); }
    100% { transform: translateX(-50%) translateY(-1200px) scale(0.3) rotate(0deg); opacity: 0; filter: blur(5px); }
}

.scroll-to-top:hover {
    transform: translateX(-50%) translateY(-8px) scale(1.15);
    box-shadow: 0 12px 35px rgba(8, 145, 178, 0.6);
    background: var(--primary-light);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   QUICK CONTACT BUTTONS
   ============================================ */
.quick-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
}

.quick-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.quick-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

.quick-btn.phone {
    background: var(--gradient);
}

.quick-btn:hover {
    transform: translateY(-6px) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.quick-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.quick-btn:hover::after {
    animation: none;
    opacity: 0;
}

/* ============================================
   FOOTER - Dark Premium
   ============================================ */
footer {
    padding: 4rem 5% 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .navbar {
        width: 92%;
        top: 10px;
    }

    .navbar-container {
        padding: 0.85rem 1.5rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

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

    .nav-links {
        position: fixed;
        top: 85px;
        right: 4%;
        width: 88%;
        max-width: 420px;
        height: auto;
        max-height: calc(100vh - 110px);
        background: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.75rem;
        box-shadow: -4px 8px 32px rgba(8, 145, 178, 0.25), 0 0 0 1px rgba(8, 145, 178, 0.1);
        transition: all 0.4s ease;
        z-index: 1002;
        border-radius: var(--radius-2xl);
        border: 2px solid rgba(8, 145, 178, 0.15);
        overflow-y: auto;
        opacity: 0;
        transform: translateX(120%);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        display: block !important;
        visibility: visible !important;
    }

    .nav-links a {
        width: 100%;
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a202c !important;
        background: transparent;
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links a:hover {
        background: var(--primary-ultra-light);
        color: var(--primary) !important;
        transform: translateX(5px);
    }

    .nav-icon {
        font-size: 1.6rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        opacity: 1 !important;
        filter: none !important;
        visibility: visible !important;
    }

    .nav-text {
        display: inline-block !important;
        opacity: 1 !important;
        font-weight: 600;
        color: #1a202c !important;
        visibility: visible !important;
    }

    .nav-links a.nav-cta {
        margin-top: 0.75rem;
        justify-content: center;
        background: var(--gradient);
        color: white !important;
        display: flex;
        padding: 1.1rem 1.5rem;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
    }

    .nav-links a.nav-cta:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
    }

    .nav-links a.nav-cta .nav-icon,
    .nav-links a.nav-cta .nav-text {
        color: white !important;
        opacity: 1;
        filter: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-visual {
        width: 100%;
        max-width: 380px;
        height: 380px;
        margin: 2.5rem auto 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-frame {
        max-width: 380px;
        margin: 0 auto;
    }

    .services-track,
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

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

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .social-btn {
        padding: 1.75rem 1.25rem;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 90%;
        top: 8px;
    }

    .navbar-container {
        padding: 0.75rem 1.25rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 140px 5% 60px;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.45rem;
        margin-bottom: 1.25rem;
    }

    .hero-desc {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .cta-group {
        justify-content: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 15px 32px;
        font-size: 0.98rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 340px;
        height: 340px;
        margin-top: 0;
    }

    section {
        padding: 4.5rem 5%;
    }

    .section-header h2 {
        font-size: 2.1rem;
    }

    .section-header .line {
        width: 100px;
    }

    .about-intro h3 {
        font-size: 1.95rem;
    }

    .about-title {
        font-size: 1.15rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .about-card {
        padding: 2.25rem 1.75rem;
    }

    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .about-card h3 {
        font-size: 1.4rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .stat-label {
        font-size: 1.05rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .contact-subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }

    .branches-subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }

    .branch-image {
        padding: 1.5rem;
    }

    .branch-photo {
        height: 180px;
    }

    .branch-content {
        padding: 2rem 1.5rem;
    }

    .branch-content h3 {
        font-size: 1.45rem;
    }

    .branch-info .info-item {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    .branch-btn {
        font-size: 1rem;
        padding: 0.9rem 1.75rem;
    }

    .contact-icon {
        font-size: 3rem;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .social-title {
        font-size: 1.65rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .social-btn {
        padding: 1.75rem 1.5rem;
    }

    .booking-card {
        padding: 3rem 2rem;
    }

    .booking-icon {
        font-size: 3.5rem;
    }

    .booking-card h3 {
        font-size: 1.75rem;
    }

    .booking-card > p {
        font-size: 1.05rem;
    }

    .booking-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-btn {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-section h3 {
        font-size: 1.35rem;
    }

    .scroll-to-top {
        bottom: 85px;
        width: 54px;
        height: 54px;
    }

    .scroll-to-top svg {
        width: 21px;
        height: 21px;
    }

    .quick-contact {
        bottom: 12px;
        left: 12px;
        gap: 1rem;
    }

    .quick-btn {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-visual {
        max-width: 300px;
        height: 300px;
    }

    section {
        padding: 4rem 5%;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .about-intro h3 {
        font-size: 1.75rem;
    }

    .about-title {
        font-size: 1.1rem;
    }

    .about-description {
        font-size: 0.98rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 13px 26px;
        font-size: 0.92rem;
    }

    .about-card,
    .service-card,
    .testimonial-card {
        padding: 1.75rem;
    }
}
