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

:root {
    --brand-primary: #d946ef;
    --brand-primary-hover: #c026d3;
    --brand-cyan: #06b6d4;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --surface-dark: #090d16;
    --surface-card: rgba(15, 23, 42, 0.65);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(217, 70, 239, 0.35);

    /* 2026 Font Tokens */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-dark);
    color: #f1f5f9;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.012em;
}

/* Headings & Display Typography */
h1, h2, h3, h4, h5, h6, .hero-text, .font-heading, .font-display {
    font-family: var(--font-heading);
    letter-spacing: -0.028em;
}

h1, .hero-text {
    letter-spacing: -0.038em;
}

p, li, .font-body {
    font-family: var(--font-body);
    letter-spacing: -0.011em;
}

/* Tabular Numbers for Stats & Metrics */
[class*="text-3xl"], [class*="text-4xl"], [class*="text-5xl"], [class*="text-6xl"], .stat-number {
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
}

/* Glass Panels & Surfaces */
.glass-panel {
    background: rgba(13, 20, 36, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-interactive {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-interactive:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 0 24px -4px rgba(217, 70, 239, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header Scroll Transition */
header.header-scrolled {
    background: rgba(9, 13, 22, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: #cbd5e1;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-active {
    color: #f0abfc !important;
    font-weight: 600;
    background: rgba(217, 70, 239, 0.1);
}

/* Modern Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.no-scrollbar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Form Elements */
input, textarea, select {
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #d946ef !important;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2) !important;
}

select {
    background-color: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

select option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
}

/* Accessible focus visible rings */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d946ef;
    outline-offset: 3px;
}

/* Icon Animations */
.icon-animation {
    animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* Badges & Timeline Connectors */
.step-number-badge {
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.25);
}

.timeline-connector {
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Video Background Overlay */
.video-bg-overlay {
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.72) 0%, rgba(9, 13, 22, 0.88) 60%, #090d16 100%);
}

/* Modal Animations */
.modal-backdrop-animate {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-panel-animate {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Country Process Visibility */
.country-process {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.country-process.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 2026 Logo Loading & Preloader Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.45));
    }
    50% {
        transform: translateY(-6px) scale(1.03);
        filter: drop-shadow(0 0 35px rgba(217, 70, 239, 0.75)) drop-shadow(0 0 15px rgba(244, 114, 182, 0.5));
    }
}

.animate-logo-float {
    animation: logoFloat 2.6s ease-in-out infinite;
}

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

.animate-spin-slow {
    animation: spinSlow 8s linear infinite;
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }
    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

.logo-shimmer-sweep {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), rgba(217, 70, 239, 0.4), transparent);
    animation: shimmerSweep 2.2s ease-in-out infinite;
}

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

.loader-progress-bar {
    width: 60%;
    animation: loaderProgress 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Header Logo Ambient Hover */
.header-logo-container:hover .header-logo-glow {
    filter: drop-shadow(0 0 16px rgba(217, 70, 239, 0.7)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
    transform: scale(1.05);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}