/* ==================================================
   EBDA3 INTERNET SOLUTIONS — MAIN STYLESHEET
   Design: Premium dark mode with editorial/refined aesthetic
   Typography: Instrument Serif (display) + Geist (body)
   ================================================== */

/* ==================================================
   1. ROOT VARIABLES
   ================================================== */
:root {
    --ebda3-dark: #0A0E1A;
    --ebda3-darker: #060912;
    --ebda3-surface: #131929;
    --ebda3-surface-2: #1a2236;
    --ebda3-primary: #3B82F6;
    --ebda3-secondary: #06B6D4;
    --ebda3-accent: #8B5CF6;
    --ebda3-glow: #22D3EE;
    --ebda3-text: #F8FAFC;
    --ebda3-muted: #94A3B8;
    --ebda3-border: rgba(255,255,255,0.08);
}

/* ==================================================
   2. GLOBAL RESET & BASE
   ================================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-feature-settings: "ss01", "cv11";
    line-height: 1.6;
    color: var(--ebda3-text);
    background-color: var(--ebda3-dark);
    min-height: 100vh;
}

/* Selection */
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--ebda3-darker);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ebda3-secondary), var(--ebda3-primary));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ebda3-glow), var(--ebda3-secondary));
}

/* ==================================================
   3. TYPOGRAPHY
   ================================================== */
.font-display {
    font-family: 'Instrument Serif', 'Geist', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Heading utility — fluid display */
.heading-hero {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.75rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 400;
}

.heading-hero em {
    font-style: italic;
    background: linear-gradient(135deg, #67e8f9 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 400;
}

.heading-section {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.heading-section em {
    font-style: italic;
    background: linear-gradient(135deg, #67e8f9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ebda3-glow);
    font-weight: 500;
}

/* ==================================================
   4. HEADER NAV
   ================================================== */
#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--ebda3-border);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: rgb(203, 213, 225);
    border-radius: 9999px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-active {
    color: white;
    background: rgba(34, 211, 238, 0.08);
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ebda3-glow);
    box-shadow: 0 0 10px var(--ebda3-glow);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 14px;
    color: rgb(203, 213, 225);
    transition: all 0.2s ease;
}

.mega-link:hover {
    background: rgba(34, 211, 238, 0.06);
    color: white;
    transform: translateX(2px);
}

.mega-link span {
    font-size: 18px;
}

/* Mobile menu */
.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 17px;
    font-weight: 500;
    color: rgb(226, 232, 240);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.mobile-sub-link {
    display: block;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 15px;
    color: rgb(203, 213, 225);
    transition: all 0.2s ease;
}

.mobile-sub-link:hover {
    background: rgba(34, 211, 238, 0.06);
    color: var(--ebda3-glow);
}

/* Simple Icons fallback badges */
.simpleicon-broken {
    display: none !important;
}

.simpleicon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: var(--ebda3-glow);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.simpleicon-fallback-compact {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
}

.partner-tile .simpleicon-fallback {
    border-radius: 0.5rem;
    font-size: 0.6rem;
}

.partner-tile .simpleicon-fallback-compact {
    font-size: 0.48rem;
}

.partner-tile:hover .simpleicon-fallback,
.logo-tile:hover .simpleicon-fallback {
    transform: scale(1.06);
    border-color: rgba(34, 211, 238, 0.4);
}

/* ==================================================
   MOBILE MENU — Pure CSS (no Tailwind dependency)
   ================================================== */

/* Container */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

#mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Backdrop */
#mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

/* Panel */
#mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 420px;
    height: 100%;
    background: #0d1320;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 2;
    padding: 6rem 1.5rem 3rem 1.5rem;
}

#mobile-menu.is-open #mobile-menu-panel {
    transform: translateX(0);
}

/* ==================================================
   5. FOOTER
   ================================================== */
.footer-link {
    color: rgb(148, 163, 184);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--ebda3-glow);
    transform: translateX(2px);
}

/* ==================================================
   6. CARDS & GLASS
   ================================================== */
.glass-card {
    background: rgba(19, 25, 41, 0.5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--ebda3-border);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(19, 25, 41, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(34, 211, 238, 0.2);
}

.gradient-border {
    position: relative;
    background: rgba(19, 25, 41, 0.6);
    border-radius: 1.25rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(139, 92, 246, 0.2), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 3D Card Tilt */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

@media (hover: hover) and (min-width: 768px) {
    .card-3d:hover .card-3d-inner {
        transform: rotateY(6deg) rotateX(-3deg) translateZ(20px);
    }
}

/* ==================================================
   7. BUTTONS
   ================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5);
}

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

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

/* ==================================================
   8. ANIMATIONS
   ================================================== */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.7); }
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Marquee Animation */
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 3rem;
}

.marquee-track-left {
    animation: marquee-left 40s linear infinite;
}

.marquee-track-right {
    animation: marquee-right 40s linear infinite;
}

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ==================================================
   9. LOGO MARQUEE (Partner Logos)
   ================================================== */
.partner-logo {
    flex-shrink: 0;
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(2) opacity(0.5);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.partner-logo:hover {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.1);
}

.partner-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    min-width: 180px;
    height: 64px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.4s ease;
    color: rgb(148, 163, 184);
}

.partner-tile:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.2);
    color: white;
    transform: translateY(-2px);
}

.partner-tile-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* ==================================================
   10. STAT CARDS
   ================================================== */
.stat-card {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(19, 25, 41, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(19, 25, 41, 0.6);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #67e8f9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 13px;
    color: rgb(148, 163, 184);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ==================================================
   11. SECTION DIVIDERS
   ================================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
    margin: 0 auto;
    max-width: 60%;
}

/* ==================================================
   12. UTILITIES
   ================================================== */
.gradient-text {
    background: linear-gradient(135deg, #67e8f9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-violet {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

/* Service icon container */
.service-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--ebda3-glow);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.2));
    border-color: rgba(34, 211, 238, 0.5);
}

/* Page hero spacer (for fixed header) */
.page-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }
}

/* ==================================================
   13. RESPONSIVE TYPOGRAPHY (Fluid)
   ================================================== */
@media (max-width: 640px) {
    .heading-hero {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }
    .heading-section {
        font-size: clamp(1.875rem, 7vw, 2.5rem);
    }
}

/* ==================================================
   14. ACCESSIBILITY: 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==================================================
   15. WORLD MAP
   ================================================== */
.world-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-width: 900px;
    margin: 0 auto;
}

.country-dot {
    fill: var(--ebda3-glow);
    filter: drop-shadow(0 0 8px var(--ebda3-glow));
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.7; r: 4; }
    50% { opacity: 1; r: 6; }
}

/* ==================================================
   16. PROCESS STEPS
   ================================================== */
.process-step {
    position: relative;
    padding: 2rem;
    background: rgba(19, 25, 41, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    transition: all 0.4s ease;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* ==================================================
   17. PRICING / PLAN CARDS
   ================================================== */
.plan-card {
    position: relative;
    padding: 2rem;
    background: rgba(19, 25, 41, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
}

.plan-card-featured {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.05));
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 60px -20px rgba(34, 211, 238, 0.3);
}

.plan-card-featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 6px;
    white-space: nowrap;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 14px;
    color: rgb(203, 213, 225);
}

.plan-feature svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--ebda3-glow);
    margin-top: 2px;
}

/* Print friendliness */
@media print {
    body { background: white; color: black; }
    #site-header, footer, #back-to-top { display: none; }
}
