/* =============================================
   TECH84 ALLIANCE — STYLES
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- DARK THEME (default) ---- */
:root {
  --bg: #080c14;
  --bg2: #0d1220;
  --bg3: #111827;
  --surface: #161d2e;
  --surface2: #1e2840;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --primary: #6366f1;
  --primary2: #818cf8;
  --primary3: #4f46e5;
  --accent: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --navbar-bg: rgba(8,12,20,0.92);
  --grid-line: rgba(99,102,241,0.04);
  --code-bg: #161d2e;
  --marquee-bg: #161d2e;
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --bg: #f8faff;
  --bg2: #eef2fb;
  --bg3: #e4eaf5;
  --surface: #ffffff;
  --surface2: #f0f4ff;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.13);
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --primary: #4f46e5;
  --primary2: #4338ca;
  --primary3: #3730a3;
  --accent: #7c3aed;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --navbar-bg: rgba(248,250,255,0.94);
  --grid-line: rgba(99,102,241,0.06);
  --code-bg: #f0f4ff;
  --marquee-bg: #eef2fb;
}

/* ---- SMOOTH THEME TRANSITION ---- */
body,
.navbar,
.hero,
.about,
.services,
.portfolio,
.process,
.team,
.testimonials,
.contact,
.footer,
.service-card,
.project-card,
.team-card,
.testimonial-card,
.contact-form-wrap,
.device-mockup,
.about-card,
.marquee-strip,
.footer-top,
.footer-bottom {
  transition: background 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ---- LIGHT THEME specific overrides ---- */
[data-theme="light"] .hero-bg { background: linear-gradient(160deg, #eef2fb 0%, #f8faff 60%, #ede9fe 100%); }
[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}
[data-theme="light"] .glow-1 { background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%); }
[data-theme="light"] .glow-2 { background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%); }
[data-theme="light"] .device-mockup { background: #ffffff; border-color: rgba(0,0,0,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
[data-theme="light"] .screen-content { background: #f8faff; border-radius: 8px; padding: 8px; }
[data-theme="light"] .floating-badge { background: #ffffff; border-color: rgba(0,0,0,0.12); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
[data-theme="light"] .hero-badge { background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.2); }
[data-theme="light"] .stat-divider { background: rgba(0,0,0,0.12); }
[data-theme="light"] .marquee-strip { background: var(--marquee-bg); border-color: var(--border); }
[data-theme="light"] .about-card-stack .card-front { background: #ffffff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .about-card-stack .card-mid,
[data-theme="light"] .about-card-stack .card-back { background: #e8edfb; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .about-pill { background: #ffffff; border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
[data-theme="light"] .service-card { background: #ffffff; }
[data-theme="light"] .service-card.featured { background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(124,58,237,0.03)); }
[data-theme="light"] .service-tags li { background: rgba(0,0,0,0.04); }
[data-theme="light"] .project-card { background: #ffffff; }
[data-theme="light"] .project-image { border-bottom-color: var(--border); }
[data-theme="light"] .tag { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.1); color: var(--text2); }
[data-theme="light"] .project-stack span { background: rgba(79,70,229,0.07); }
[data-theme="light"] .team-card { background: #ffffff; }
[data-theme="light"] .team-skills span { background: rgba(0,0,0,0.04); }
[data-theme="light"] .testimonial-card { background: #ffffff; }
[data-theme="light"] .contact-form-wrap { background: #ffffff; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea { background: #f8faff; border-color: rgba(0,0,0,0.15); color: var(--text); }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: var(--text3); }
[data-theme="light"] .social-link { background: #f0f4ff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .footer { background: var(--bg2); border-top-color: var(--border); }
[data-theme="light"] .footer-bottom { border-top-color: var(--border); }
[data-theme="light"] .filter-btn { background: #ffffff; }
[data-theme="light"] .navbar.scrolled { background: var(--navbar-bg); border-bottom-color: var(--border); }
[data-theme="light"] .c-comment { color: #94a3b8; }
[data-theme="light"] .c-key { color: #7c3aed; }
[data-theme="light"] .c-var { color: #1d4ed8; }
[data-theme="light"] .c-fn { color: #059669; }
[data-theme="light"] .c-str { color: #b45309; }
[data-theme="light"] .logo-tech { color: var(--text); }
[data-theme="light"] .step-number { -webkit-text-stroke: 1px rgba(79,70,229,0.45); }
[data-theme="light"] .process-connector { opacity: 0.4; }

/* --- gradient text: replace washed-out end stop --- */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #3730a3 0%, #7c3aed 50%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- ghost button: white bg makes it invisible --- */
[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.14);
  color: var(--text);
}
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.08); }

/* --- active nav link bg: rgba(white) invisible on white --- */
[data-theme="light"] .nav-link.active { background: rgba(79,70,229,0.08); color: var(--primary); }

/* --- mobile nav dropdown: hardcoded dark panel --- */
@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(248,250,255,0.98);
    border-bottom-color: var(--border);
  }
  [data-theme="light"] .nav-link { color: var(--text2); }
  [data-theme="light"] .nav-link:hover,
  [data-theme="light"] .nav-link.active { color: var(--text); }
}

/* --- project card "Learn More" hover: white text invisible on white --- */
[data-theme="light"] .project-link:hover { color: var(--primary3); }

/* --- team avatar dashed ring: rgba(white,0.1) invisible --- */
[data-theme="light"] .avatar-ring { border-color: rgba(79,70,229,0.2); }

/* --- service tag chips: rgba(white,0.05) invisible --- */
[data-theme="light"] .service-tags li { color: var(--text2); border-color: rgba(0,0,0,0.1); }

/* --- team skill chips: rgba(white,0.05) invisible --- */
[data-theme="light"] .team-skills span { color: var(--text2); border-color: rgba(0,0,0,0.1); }

/* --- marquee separator dots: too faint --- */
[data-theme="light"] .marquee-track .sep { color: rgba(0,0,0,0.25); }
[data-theme="light"] .marquee-track span { color: var(--text2); }

/* --- scroll-hint ring --- */
[data-theme="light"] .scroll-hint { border-color: rgba(0,0,0,0.15); color: var(--text2); }

/* --- project metrics secondary text --- */
[data-theme="light"] .project-metrics span { color: var(--text3); }
[data-theme="light"] .project-metrics strong { color: var(--text); }

/* --- footer copyright & legal --- */
[data-theme="light"] .footer-bottom p { color: var(--text2); }
[data-theme="light"] .footer-legal a { color: var(--text2); }
[data-theme="light"] .footer-legal a:hover { color: var(--text); }
[data-theme="light"] .footer-col h4 { color: var(--text); }
[data-theme="light"] .footer-col a { color: var(--text2); }

/* --- contact item labels --- */
[data-theme="light"] .contact-item strong { color: var(--text); }

/* --- quote icon in testimonials --- */
[data-theme="light"] .quote-icon { color: var(--primary); }

/* --- featured label --- */
[data-theme="light"] .featured-label { color: var(--primary); }

/* --- section tag --- */
[data-theme="light"] .section-tag { color: var(--primary); background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.18); }

/* --- hero badge --- */
[data-theme="light"] .hero-badge { color: var(--primary); }

/* --- stat plus sign --- */
[data-theme="light"] .stat-plus { color: var(--primary); }

/* --- nav CTA --- */
[data-theme="light"] .nav-link.nav-cta { color: var(--primary); }
[data-theme="light"] .nav-link.nav-cta:hover { background: rgba(79,70,229,0.15); color: var(--primary3); }

/* --- pillar icon & text --- */
[data-theme="light"] .pillar-icon { background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.18); color: var(--primary); }
[data-theme="light"] .pillar strong { color: var(--text); }

/* --- service icon box --- */
[data-theme="light"] .service-icon { background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.18); color: var(--primary); }
[data-theme="light"] .service-card h3 { color: var(--text); }
[data-theme="light"] .service-card p { color: var(--text2); }

/* --- project content headings --- */
[data-theme="light"] .project-content h3 { color: var(--text); }
[data-theme="light"] .project-content p { color: var(--text2); }
[data-theme="light"] .project-stack span { color: var(--primary3); }

/* --- team card headings --- */
[data-theme="light"] .team-card h3 { color: var(--text); }
[data-theme="light"] .team-card p { color: var(--text2); }
[data-theme="light"] .team-role { color: var(--primary); }

/* --- testimonial text --- */
[data-theme="light"] .testimonial-card p { color: var(--text2); }
[data-theme="light"] .testimonial-author strong { color: var(--text); }

/* --- join CTA --- */
[data-theme="light"] .join-cta p { color: var(--text2); }

/* --- process step text --- */
[data-theme="light"] .step-content h3 { color: var(--text); }
[data-theme="light"] .step-content p { color: var(--text2); }

/* --- about card text --- */
[data-theme="light"] .card-front h3 { color: var(--text); }
[data-theme="light"] .card-front p { color: var(--text2); }

/* --- about-pill text and svg --- */
[data-theme="light"] .about-pill { color: var(--text); }
[data-theme="light"] .about-pill svg { color: var(--primary); }

/* --- hero title direct text (non-gradient parts) --- */
[data-theme="light"] .hero-title { color: var(--text); }
[data-theme="light"] .hero-subtitle { color: var(--text2); }
[data-theme="light"] .stat-label { color: var(--text3); }
[data-theme="light"] .about-text { color: var(--text2); }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary2) 0%, var(--accent) 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary2);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: var(--text2); max-width: 560px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary3), var(--primary));
  color: white;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 8px 24px rgba(99,102,241,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(99,102,241,0.4), 0 12px 32px rgba(99,102,241,0.35); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary2); border: 1px solid rgba(99,102,241,0.4); }
.btn-outline:hover { background: rgba(99,102,241,0.08); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--primary3), var(--accent));
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.logo-84 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.logo-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: white;
}
.logo-lines span:nth-child(1) { width: 14px; }
.logo-lines span:nth-child(2) { width: 10px; opacity: 0.7; }
.logo-lines span:nth-child(3) { width: 7px; opacity: 0.4; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-tech { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: 0.08em; }
.logo-alliance { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; color: var(--primary2); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { background: rgba(255,255,255,0.06); }
.nav-link.nav-cta {
  background: rgba(99,102,241,0.12);
  color: var(--primary2);
  border: 1px solid rgba(99,102,241,0.25);
  margin-left: 8px;
}
.nav-link.nav-cta:hover { background: rgba(99,102,241,0.2); color: white; }

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}
.theme-toggle:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: rgba(99,102,241,0.35);
}
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transition: var(--transition); }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .toggle-label { transition: var(--transition); }

[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle.toggling { animation: togglePop 0.35s ease; }
@keyframes togglePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.88); }
  70%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%); top: -100px; left: -100px; animation: glowFloat 8s ease-in-out infinite; }
.glow-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%); bottom: -50px; right: 10%; animation: glowFloat 10s ease-in-out infinite reverse; }

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary2);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-20px) translateX(30px); opacity: 0; }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.hero-content { grid-column: 1; }
.hero-visual { grid-column: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary2);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--green); }
  50% { box-shadow: 0 0 16px var(--green), 0 0 24px rgba(16,185,129,0.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 0; align-items: center; }
.stat-item { text-align: center; padding: 0 24px; }
.stat-item:first-child { padding-left: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  display: inline;
}
.stat-plus { font-size: 20px; font-weight: 700; color: var(--primary2); }
.stat-label { display: block; font-size: 12px; color: var(--text3); margin-top: 4px; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border2); flex-shrink: 0; }

/* Device mockup */
.hero-visual { display: flex; justify-content: center; position: relative; }
.device-mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.1);
  animation: deviceFloat 6s ease-in-out infinite;
}
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.device-screen { padding: 20px 24px 28px; }
.screen-header { display: flex; gap: 6px; margin-bottom: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.screen-content { font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.9; }
.code-line { white-space: pre; }
.code-line.indent { padding-left: 20px; }
.c-key { color: #c084fc; }
.c-var { color: #93c5fd; }
.c-fn { color: #6ee7b7; }
.c-str { color: #fcd34d; }
.c-comment { color: #64748b; }
.cursor { animation: blink 1s step-end infinite; color: var(--primary2); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.floating-badge svg { width: 16px; height: 16px; }
.badge-ai { top: -16px; right: -20px; color: var(--primary2); animation: badgeFloat 4s ease-in-out infinite; }
.badge-ai svg { color: var(--primary2); }
.badge-secure { bottom: 60px; left: -20px; color: var(--green); animation: badgeFloat 5s ease-in-out infinite reverse; }
.badge-secure svg { color: var(--green); }
.badge-live { bottom: -16px; right: 30px; animation: badgeFloat 3s ease-in-out infinite; }
.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--text2);
  text-decoration: none;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 5;
}
.scroll-hint svg { width: 18px; height: 18px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== MARQUEE ===== */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span { font-size: 13px; font-weight: 500; color: var(--text2); }
.marquee-track .sep { color: var(--border2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-visual { position: relative; display: flex; justify-content: center; align-items: center; height: 360px; }
.about-card-stack { position: relative; width: 260px; height: 260px; }
.about-card {
  position: absolute;
  border-radius: var(--radius);
  inset: 0;
  border: 1px solid var(--border2);
}
.card-back { background: var(--surface); transform: rotate(6deg) translate(12px, 12px); opacity: 0.4; }
.card-mid { background: var(--surface); transform: rotate(3deg) translate(6px, 6px); opacity: 0.7; }
.card-front {
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.card-front .card-icon { width: 56px; height: 56px; }
.card-front h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.card-front p { font-size: 13px; color: var(--text2); }

.about-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.about-pill svg { width: 14px; height: 14px; color: var(--primary2); }
.pill-1 { bottom: 30px; left: 0; animation: badgeFloat 4s ease-in-out infinite; }
.pill-2 { top: 30px; right: 0; animation: badgeFloat 5s ease-in-out infinite reverse; }

.about-text { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 16px; }
.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary2);
}
.pillar-icon svg { width: 18px; height: 18px; }
.pillar strong { display: block; font-size: 15px; margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--text2); }

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  border-color: rgba(99,102,241,0.25);
}
.featured-label {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary2);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 10px;
  border-radius: 100px;
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary2);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.service-tags li {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--bg2); }
.portfolio-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: var(--primary2);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.project-card.hidden { display: none; }

.project-image {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, rgba(var(--accent, 99,102,241), 0.08), rgba(var(--accent, 99,102,241), 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project-icon-bg { width: 72px; height: 72px; }
.project-tags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(8,12,20,0.7);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.project-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-content h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.project-content p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-stack span {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary2);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 3px 8px;
  border-radius: 4px;
}
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.project-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.project-metrics span { font-size: 11px; color: var(--text3); }
.project-metrics strong { color: var(--text2); }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary2);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.project-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.project-link:hover { color: white; }
.project-link:hover svg { transform: translateX(3px); }

/* ===== PROCESS ===== */
.process { background: var(--bg); }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary3), var(--accent));
  margin-top: 40px;
  opacity: 0.4;
}
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(99,102,241,0.3);
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}
.step-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-content p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ===== TEAM ===== */
.team { background: var(--bg2); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: var(--shadow); }
.team-avatar {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.1);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.team-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary2); font-weight: 500; display: block; margin-bottom: 12px; }
.team-card p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.team-skills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-skills span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}
.join-cta { text-align: center; }
.join-cta p { color: var(--text2); margin-bottom: 16px; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg); overflow: hidden; }
.testimonials-track { display: flex; gap: 24px; overflow: hidden; }
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.quote-icon { color: var(--primary3); margin-bottom: 16px; }
.quote-icon svg { width: 24px; height: 24px; }
.testimonial-card p { font-size: 15px; color: var(--text2); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c, #6366f1), rgba(99,102,241,0.5));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text3); }
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.testimonial-dots .dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.testimonial-dots .dot.active { background: var(--primary); width: 24px; }

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info .section-title { font-size: clamp(28px, 3vw, 38px); }
.contact-info p { font-size: 16px; color: var(--text2); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary2);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.contact-item span { font-size: 14px; color: var(--text2); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  text-decoration: none;
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: var(--primary2); transform: translateY(-2px); }

/* Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }
.form-group select option { background: var(--bg); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-success.show { display: flex; }

/* ---- form error banner ---- */
.form-error-msg {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.form-error-msg svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-error-msg.show { display: flex; }

/* ---- required star ---- */
.required-star { color: var(--red); margin-left: 2px; }

/* ---- inline field errors ---- */
.field-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  min-height: 16px;
}

/* ---- invalid input highlight ---- */
.form-group input.input-invalid,
.form-group textarea.input-invalid {
  border-color: rgba(239,68,68,0.55);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* ---- character counter ---- */
.char-count {
  display: block;
  font-size: 11px;
  color: var(--text3);
  text-align: right;
  margin-top: 4px;
}
.char-count.char-limit { color: var(--amber); }

/* ---- hCaptcha wrapper ---- */
.captcha-wrap { display: flex; flex-direction: column; gap: 4px; }

/* ---- honeypot — visually hidden but accessible to bots ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---- spinner on submit button ---- */
.btn-icon-spin { animation: none; }
.btn-icon-spin.spinning {
  animation: spinIcon 0.8s linear infinite;
}
@keyframes spinIcon {
  to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 14px; color: var(--text2); line-height: 1.7; margin: 16px 0 24px; max-width: 280px; }
.footer-logo { margin-bottom: 0; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text2); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--text3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--text3); text-decoration: none; transition: var(--transition); }
.footer-legal a:hover { color: var(--text2); }

/* ===== AOS ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { flex-direction: column; align-items: stretch; }
  .process-connector { width: 2px; height: 40px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(8,12,20,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 4px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-link.nav-cta { width: 100%; justify-content: center; text-align: center; }
  .hamburger { display: flex; }
  .theme-toggle .toggle-label { display: none; }
  .theme-toggle { padding: 8px 10px; }
  .hero-title { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-track { flex-direction: column; }
  .testimonial-card { flex: none; width: 100%; }
  .contact-form-wrap { padding: 24px; }
  .device-mockup { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .container { padding: 0 16px; }
}
