/* ============================================
   NexusAI — Premium Landing Page Styles
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', sans-serif; background: #0a0a0f; color: #e0e0ec; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
::selection { background: rgba(0, 240, 255, 0.25); color: #fff; }

/* --- CSS VARIABLES --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #101018;
    --bg-tertiary: #16162a;
    --neon-cyan: #00f0ff;
    --neon-purple: #7b2fff;
    --neon-pink: #ff2d95;
    --text-primary: #e0e0ec;
    --text-secondary: #7a7a96;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --gradient-text: linear-gradient(135deg, #00f0ff 0%, #7b2fff 50%, #ff2d95 100%);
    --gradient-cta: linear-gradient(135deg, #7b2fff, #ff2d95);
    --gradient-card-border: linear-gradient(135deg, rgba(0,240,255,0.3), rgba(123,47,255,0.3), rgba(255,45,149,0.1));
    --shadow-neon: 0 0 30px rgba(0, 240, 255, 0.15);
    --shadow-neon-strong: 0 0 60px rgba(0, 240, 255, 0.25), 0 0 120px rgba(123, 47, 255, 0.15);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--neon-cyan), var(--neon-purple)); border-radius: 3px; }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--neon-cyan); margin-bottom: 16px; padding: 6px 16px; border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 100px; background: rgba(0, 240, 255, 0.05); }
.section-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; color: #fff; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ============================================
   PRELOADER
   ============================================ */
#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-blob { width: 80px; height: 80px; margin: 0 auto 32px; background: var(--gradient-cta); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation: morphBlob 3s ease-in-out infinite; }
.preloader-text { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: 8px; margin-bottom: 32px; }
.preloader-text span { display: inline-block; opacity: 0; animation: letterReveal 0.5s forwards; color: #fff; }
.preloader-text span:nth-child(1) { animation-delay: 0.1s; }
.preloader-text span:nth-child(2) { animation-delay: 0.15s; }
.preloader-text span:nth-child(3) { animation-delay: 0.2s; }
.preloader-text span:nth-child(4) { animation-delay: 0.25s; }
.preloader-text span:nth-child(5) { animation-delay: 0.3s; }
.preloader-text span:nth-child(6) { animation-delay: 0.4s; }
.preloader-text span:nth-child(7) { animation-delay: 0.45s; }
.preloader-accent { color: var(--neon-cyan) !important; }
.preloader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 0 auto; overflow: hidden; }
.preloader-bar-fill { height: 100%; width: 0%; background: var(--gradient-text); border-radius: 3px; animation: preloaderFill 1.8s var(--ease-out-expo) forwards 0.5s; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity 0.3s; }
.cursor-dot { width: 8px; height: 8px; background: var(--neon-cyan); mix-blend-mode: difference; transform: translate(-50%, -50%); }
.cursor-ring { width: 40px; height: 40px; border: 1.5px solid rgba(0, 240, 255, 0.5); transform: translate(-50%, -50%); transition: width 0.3s var(--ease-out-back), height 0.3s var(--ease-out-back), border-color 0.3s; }
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--neon-pink); }
body.cursor-ready { cursor: none; }
body.cursor-ready a, body.cursor-ready button, body.cursor-ready [data-magnetic] { cursor: none; }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9997; background: transparent; transform-origin: left; transform: scaleX(0); background: var(--gradient-text); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.4s ease; }
.navbar.scrolled { padding: 12px 0; background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; z-index: 1001; }
.logo-icon { font-size: 28px; filter: drop-shadow(0 0 8px rgba(0,240,255,0.5)); }
.logo-accent { color: var(--neon-cyan); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color 0.3s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--neon-cyan); transition: width 0.3s var(--ease-out-expo); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }
.btn-nav-cta { padding: 10px 24px !important; background: var(--gradient-cta); border-radius: 100px; color: #fff !important; font-weight: 600; }
.btn-nav-cta::after { display: none; }
.btn-nav-cta:hover { box-shadow: 0 0 24px rgba(123, 47, 255, 0.4); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 6px; z-index: 1001; padding: 4px; }
.hamburger span { display: block; width: 28px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#particlesCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: 0; pointer-events: none; }
.hero-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%); top: -100px; right: -100px; animation: floatSlow 8s ease-in-out infinite alternate; }
.hero-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(123, 47, 255, 0.15), transparent 70%); bottom: -50px; left: -100px; animation: floatSlow 10s ease-in-out infinite alternate-reverse; }
.hero-float { position: absolute; border: 1px solid rgba(0, 240, 255, 0.15); border-radius: var(--radius-md); z-index: 0; pointer-events: none; }
.hero-float-1 { width: 60px; height: 60px; top: 20%; right: 15%; animation: floatRotate 12s linear infinite; }
.hero-float-2 { width: 40px; height: 40px; bottom: 25%; left: 10%; animation: floatRotate 18s linear infinite reverse; border-color: rgba(123, 47, 255, 0.15); }
.hero-float-3 { width: 80px; height: 80px; top: 60%; right: 8%; animation: floatRotate 15s linear infinite; border-radius: 50%; border-color: rgba(255, 45, 149, 0.1); }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--neon-cyan); margin-bottom: 32px; backdrop-filter: blur(10px); }
.badge-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; animation: pulse 2s ease-in-out infinite; box-shadow: 0 0 8px var(--neon-cyan); }
.hero-title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 24px; color: #fff; }
.hero-title .gradient-text { display: inline; }
.typed-cursor { display: inline-block; color: var(--neon-cyan); animation: blink 1s step-end infinite; font-weight: 300; margin-left: 2px; }
.hero-subtitle { font-size: 19px; color: var(--text-secondary); margin-bottom: 40px; max-width: 580px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 64px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 100px; font-size: 16px; font-weight: 600; transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden; }
.btn-primary { background: var(--gradient-cta); color: #fff; box-shadow: 0 4px 24px rgba(123, 47, 255, 0.3); }
.btn-primary:hover { box-shadow: 0 8px 40px rgba(123, 47, 255, 0.5); transform: translateY(-2px); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); opacity: 0; transition: opacity 0.3s; }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary { color: #fff; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(10px); }
.btn-secondary:hover { border-color: var(--neon-cyan); box-shadow: 0 0 24px rgba(0, 240, 255, 0.15); transform: translateY(-2px); }

/* Hero clients */
.hero-clients { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-clients-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.hero-clients-logos { display: flex; gap: 32px; align-items: center; }
.client-logo { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.2); transition: color 0.3s; letter-spacing: 1px; }
.client-logo:hover { color: rgba(255,255,255,0.5); }

/* Scroll indicator */
.hero-scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; animation: fadeInUp 1s 2.5s both; }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; position: relative; }
.scroll-wheel { width: 4px; height: 8px; background: var(--neon-cyan); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollWheel 2s ease-in-out infinite; }

/* ============================================
   STATS
   ============================================ */
.stats { padding: 64px 0; background: var(--bg-secondary); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); position: relative; }
.stats::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,240,255,0.03), transparent); }
.stats-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 0; }
.stat-item { text-align: center; padding: 16px; }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: clamp(36px, 5vw, 52px); font-weight: 700; color: #fff; line-height: 1.1; }
.stat-number .counter { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--glass-border), transparent); }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; padding: 40px 32px; border-radius: var(--radius-lg); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); transition: all 0.5s var(--ease-out-expo); transform-style: preserve-3d; will-change: transform; }
.service-card::before { content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg); padding: 1px; background: var(--gradient-card-border); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: rgba(255, 255, 255, 0.06); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-neon); }
.service-icon { width: 56px; height: 56px; margin-bottom: 24px; color: var(--neon-cyan); }
.service-icon svg { width: 100%; height: 100%; }
.service-icon .icon-circle { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s var(--ease-out-expo); }
.service-card:hover .icon-circle { stroke-dashoffset: 0; }
.service-icon .icon-path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease-out-expo) 0.2s; }
.service-card:hover .icon-path { stroke-dashoffset: 0; }
.service-title { font-size: 22px; color: #fff; margin-bottom: 12px; }
.service-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 100px; background: rgba(0, 240, 255, 0.06); color: var(--neon-cyan); border: 1px solid rgba(0, 240, 255, 0.12); font-family: 'JetBrains Mono', monospace; }
.service-result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); font-size: 14px; font-weight: 600; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: 'JetBrains Mono', monospace; }

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.process { padding: 120px 0; background: var(--bg-secondary); position: relative; overflow: hidden; }
.process::before { content: ''; position: absolute; width: 400px; height: 400px; right: -100px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(123,47,255,0.08), transparent 70%); border-radius: 50%; pointer-events: none; }
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline-line { position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.06); }
.timeline-line-fill { width: 100%; height: 0%; background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple)); transition: height 0.1s linear; border-radius: 2px; }
.timeline-item { position: relative; padding-left: 80px; padding-bottom: 56px; opacity: 0; transform: translateX(-20px); transition: all 0.7s var(--ease-out-expo); }
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 8px; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--text-secondary); transition: all 0.5s var(--ease-out-expo); z-index: 1; }
.timeline-item.visible .timeline-dot { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
.timeline-content { padding: 24px 28px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; }
.timeline-content h3 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.timeline-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.timeline-icon { position: absolute; top: 24px; right: 24px; font-size: 28px; opacity: 0.7; }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 120px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text .section-tag { display: inline-block; margin-bottom: 16px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; }
.about-features { display: flex; flex-direction: column; gap: 24px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-check { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; margin-top: 2px; }
.about-feature strong { color: #fff; font-size: 16px; display: block; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* About visual - floating cards */
.about-visual { position: relative; height: 450px; }
.about-blob { position: absolute; width: 350px; height: 350px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(123,47,255,0.08)); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation: morphBlob 8s ease-in-out infinite; filter: blur(40px); }
.about-card { position: absolute; padding: 20px 24px; background: rgba(16, 16, 24, 0.9); border: 1px solid var(--glass-border); border-radius: var(--radius-md); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-align: center; transition: transform 0.3s var(--ease-out-expo); z-index: 1; }
.about-card:hover { transform: scale(1.05) translateY(-4px); }
.about-card-icon { font-size: 28px; margin-bottom: 8px; }
.about-card-stat { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-card-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.about-card-1 { top: 20px; left: 10%; animation: floatCard 6s ease-in-out infinite; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.about-card-2 { top: 50%; right: 5%; transform: translateY(-50%); animation: floatCard 7s ease-in-out infinite 1s; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.about-card-3 { bottom: 20px; left: 25%; animation: floatCard 8s ease-in-out infinite 2s; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 120px 0; background: var(--bg-secondary); position: relative; overflow: hidden; }
.slider-container { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s var(--ease-out-expo); gap: 24px; }
.slider-track.dragging { transition: none; }
.testimonial-card { min-width: calc(33.333% - 16px); padding: 40px 32px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); flex-shrink: 0; }
.testimonial-stars { color: #ffc107; font-size: 18px; letter-spacing: 4px; margin-bottom: 20px; }
.testimonial-text { font-size: 16px; line-height: 1.8; color: var(--text-primary); margin-bottom: 28px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-cta); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0; }
.author-name { font-weight: 600; color: #fff; font-size: 15px; }
.author-role { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.3s; }
.slider-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 16px rgba(0,240,255,0.15); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.slider-dot.active { background: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.4); transform: scale(1.2); }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 120px 0; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-tag { display: inline-block; margin-bottom: 16px; }
.contact-info .section-title { text-align: left; margin-bottom: 20px; }
.contact-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item-icon { font-size: 24px; width: 48px; height: 48px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.contact-item-label { font-size: 13px; color: var(--text-secondary); }
.contact-item-value { font-size: 16px; color: #fff; font-weight: 500; }
.contact-socials { display: flex; gap: 12px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-secondary); transition: all 0.3s; }
.social-link:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0,240,255,0.2); transform: translateY(-3px); }

/* Contact Form */
.contact-form-wrapper { padding: 40px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); }
.form-group { position: relative; margin-bottom: 32px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 0 8px; font-size: 16px; color: #fff; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.1); transition: border-color 0.3s; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group label { position: absolute; top: 16px; left: 0; font-size: 15px; color: var(--text-secondary); pointer-events: none; transition: all 0.3s var(--ease-out-expo); }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label { top: -8px; font-size: 12px; color: var(--neon-cyan); }
.form-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-text); transition: width 0.4s var(--ease-out-expo); }
.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line { width: 100%; }
.form-group.error input,
.form-group.error textarea { border-color: #ff4444; }
.form-group.error label { color: #ff4444; }
.dropdown-group.error .dropdown-trigger { border-color: #ff4444; }
.dropdown-group.error .dropdown-label { color: #ff4444; }

/* ============================================
   SERVICE DROPDOWN — Accordion style
   ============================================ */
.dropdown-group { position: relative; margin-bottom: 32px; }
.service-dropdown { position: relative; }

/* Trigger */
.dropdown-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0 10px; font-size: 15px; color: var(--text-secondary); text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: border-color 0.3s; }
.dropdown-trigger:hover { border-color: rgba(0,240,255,0.3); }
.service-dropdown.open .dropdown-trigger { border-color: var(--neon-cyan); }
.dropdown-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-value.has-selection { color: #fff; }
.dropdown-chevron { flex-shrink: 0; transition: transform 0.3s var(--ease-out-expo); color: var(--text-secondary); }
.service-dropdown.open .dropdown-chevron { transform: rotate(180deg); color: var(--neon-cyan); }

/* Panel — hidden by default, visible when .open */
.dropdown-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-md); z-index: 100; display: none; max-height: 480px; overflow-y: auto; box-shadow: 0 16px 48px rgba(0,0,0,0.5); padding: 12px; }
.service-dropdown.open .dropdown-panel { display: block; }
.dropdown-panel::-webkit-scrollbar { width: 4px; }
.dropdown-panel::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.15); border-radius: 2px; }
.dropdown-panel { scrollbar-width: thin; scrollbar-color: rgba(0,240,255,0.15) transparent; }

/* Categories grid — 2 columns */
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

/* Category */
.dd-cat-header { padding: 10px 14px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; user-select: none; transition: color 0.2s; border-radius: var(--radius-sm); }
.dd-cat-header:hover { color: #fff; }
.dd-cat-header svg { display: none; }
.dd-cat.open .dd-cat-header { color: var(--neon-cyan); }

/* Subcategories — span full width below the grid */
.dd-cat-body { display: none; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); padding: 4px 0; }
.dd-cat.open .dd-cat-body { display: block; }
/* When a category is open, its subcategory body breaks out of the grid */
.dd-cat.open { grid-column: 1 / -1; }

/* Options */
.dd-opt { position: relative; padding: 11px 20px 11px 36px; font-size: 14px; color: var(--text-primary); cursor: pointer; transition: all 0.15s; }
.dd-opt::before { content: ''; position: absolute; left: 18px; top: 14px; width: 10px; height: 10px; border: 1.5px solid rgba(255,255,255,0.15); border-radius: 3px; transition: all 0.2s; }
.dd-opt:hover { background: rgba(0,240,255,0.04); }
.dd-opt.selected { background: rgba(0,240,255,0.06); }
.dd-opt.selected::before { background: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: 0 0 6px rgba(0,240,255,0.25); }

/* Description — shown on hover below the option text */
.dd-opt .dd-desc { display: none; font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; }
.dd-opt:hover .dd-desc { display: block; }

/* Error state */
.dropdown-group.error .dropdown-trigger { border-color: #ff4444; }
.dropdown-group.error .dropdown-value { color: #ff4444; }

/* Submit button states */
.btn-submit { width: 100%; justify-content: center; margin-top: 8px; }
.btn-loading, .btn-success { display: none; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }
.btn-submit.success { background: linear-gradient(135deg, #00c853, #00e676); }
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-success { display: inline-flex; }
.spinner { animation: spin 1s linear infinite; }
.form-message { margin-top: 16px; font-size: 14px; text-align: center; display: none; }
.form-message.show { display: block; }
.form-message.success { color: #00e676; }
.form-message.error { color: #ff4444; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--glass-border); background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-tagline { color: var(--text-secondary); font-size: 15px; margin-top: 16px; max-width: 300px; line-height: 1.7; }
.footer-links h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links a { display: block; font-size: 15px; color: var(--text-secondary); padding: 6px 0; transition: color 0.3s; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--glass-border); font-size: 14px; color: var(--text-secondary); }
.footer-heart { color: var(--neon-pink); display: inline-block; animation: heartbeat 2s ease-in-out infinite; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-scroll] { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
[data-scroll].visible { opacity: 1; transform: translateY(0); }
[data-scroll]:nth-child(2) { transition-delay: 0.1s; }
[data-scroll]:nth-child(3) { transition-delay: 0.2s; }
[data-scroll]:nth-child(4) { transition-delay: 0.3s; }
[data-scroll]:nth-child(5) { transition-delay: 0.4s; }
[data-scroll]:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes morphBlob {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%  { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
    75%  { border-radius: 40% 30% 60% 50% / 60% 70% 30% 40%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes letterReveal {
    from { opacity: 0; transform: translateY(20px) rotateX(90deg); }
    to   { opacity: 1; transform: translateY(0) rotateX(0); }
}
@keyframes preloaderFill {
    to { width: 100%; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.5); }
}
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes floatSlow {
    from { transform: translate(0, 0); }
    to   { transform: translate(30px, -30px); }
}
@keyframes floatRotate {
    from { transform: rotate(0deg) translateX(10px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@keyframes scrollWheel {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.2); }
    50%      { transform: scale(1); }
    75%      { transform: scale(1.15); }
}
@keyframes shimmerGlow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .testimonial-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { position: fixed; inset: 0; background: rgba(10, 10, 15, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 32px; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-link { font-size: 24px; }
    .btn-nav-cta { font-size: 18px !important; }
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: clamp(32px, 8vw, 48px); }
    .hero-subtitle { font-size: 16px; }
    .hero-ctas { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .hero-clients { flex-direction: column; align-items: flex-start; }
    .hero-clients-logos { flex-wrap: wrap; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .stat-divider { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .about-visual { height: 350px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .testimonial-card { min-width: 100%; }
    .section-title { font-size: clamp(28px, 6vw, 40px); }
    .section-header { margin-bottom: 48px; }
    .services, .process, .about, .testimonials, .contact { padding: 80px 0; }

    .dd-grid { grid-template-columns: 1fr; }

    /* Disable custom cursor on mobile/touch */
    .cursor-dot, .cursor-ring { display: none !important; }
    body.cursor-ready { cursor: auto; }
    body.cursor-ready a, body.cursor-ready button { cursor: pointer; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 32px; }
    .service-card { padding: 28px 20px; }
    .contact-form-wrapper { padding: 24px; }
    .about-card-stat { font-size: 24px; }
}

/* Accessibility: respect reduced motion preference */
@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; }
    [data-scroll] { opacity: 1; transform: none; }
    .preloader-blob { animation: none; }
    .cursor-dot, .cursor-ring { display: none; }
}
