/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  /* Backgrounds — deep navy scale */
  --bg-0:   #060B1A;   /* page base */
  --bg-1:   #0D1526;   /* section alt */
  --bg-2:   #152035;   /* cards */
  --bg-3:   #1E2D47;   /* card hover / inputs */

  /* Brand colours */
  --primary:       #7B5CF6;   /* violet */
  --primary-dark:  #5B3FD4;
  --primary-light: #A78BFA;
  --cyan:          #0ECDE4;   /* electric cyan */
  --cyan-light:    #38E8FA;
  --gold:          #F6A623;

  /* Text hierarchy — all on --bg-0 pass WCAG AA */
  --text-0: #FFFFFF;           /* headings, labels */
  --text-1: #E8EEF6;           /* body copy */
  --text-2: #9DB3CC;           /* secondary / subtitles */
  --text-3: #5B7291;           /* placeholders, captions */

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.07);
  --border-medium:  rgba(255,255,255,0.13);
  --border-strong:  rgba(255,255,255,0.22);
  --border-accent:  rgba(123,92,246,0.40);
  --border-cyan:    rgba(14,205,228,0.35);

  /* Shadows / glows */
  --glow-purple: 0 0 48px rgba(123,92,246,0.30);
  --glow-cyan:   0 0 48px rgba(14,205,228,0.28);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.55);

  /* Legacy aliases kept so old references still compile */
  --shadow-glow-purple: var(--glow-purple);
  --shadow-glow-cyan:   var(--glow-cyan);
  --primary-dark: #5B3FD4;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

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

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

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

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

/* ============================================================
   CURSOR
   ============================================================ */
#cursor {
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(14,205,228,0.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease;
}
body:hover #cursor { opacity: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--primary-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, var(--cyan-light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,58,237,0.55);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-0);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-cyan);
  transform: translateY(-2px);
}

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--cyan-light);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-0);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-2); /* #9DB3CC on dark bg */
  max-width: 600px;
  line-height: 1.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.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; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(6,11,26,0.95);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-0);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-0); background: rgba(255,255,255,0.07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-1); border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,11,26,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-0); text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: var(--text-2);
  font-size: 2rem; cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
/* Animated grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,92,246,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,92,246,0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: rgba(123,92,246,0.22);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(14,205,228,0.16);
  bottom: 0; left: -100px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(246,166,35,0.10);
  top: 50%; left: 50%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 32px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(123,92,246,0.14);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  width: fit-content;
}
.hero-badge-dot {
  width: 8px; height: 8px; background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-trust-text { font-size: 0.8rem; color: var(--text-3); font-weight:500; letter-spacing:0.04em; text-transform:uppercase; }
.trust-logos {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.trust-logo {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 6px 14px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-2); letter-spacing: 0.05em;
  transition: var(--transition);
}
.trust-logo:hover { color: var(--text-1); border-color: rgba(124,58,237,0.4); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero-card-main {
  width: 100%; max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.hero-chart-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--text-0); }
.hero-chart-badge {
  background: rgba(14,205,228,0.12); color: var(--cyan-light);
  border: 1px solid var(--border-cyan);
  border-radius: 6px; padding: 3px 10px; font-size: 0.75rem; font-weight: 600;
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 8px; height: 100px; margin-bottom: 20px;
}
.chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), var(--cyan));
  opacity: 0.7;
  transition: opacity 0.3s;
  animation: barRise 1s ease forwards;
  transform-origin: bottom;
}
.chart-bar:hover { opacity: 1; }
@keyframes barRise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.hero-metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.hero-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 12px;
  text-align: center;
}
.hero-metric-val {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-0);
}
.hero-metric-label { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; font-weight: 500; }

/* Floating stat cards */
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 14px; padding: 14px 18px;
  backdrop-filter: blur(16px);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.float-card-1 { left: -60px; top: 20%; animation: cardFloat 5s ease-in-out infinite; animation-delay: -1s; }
.float-card-2 { right: -40px; bottom: 25%; animation: cardFloat 7s ease-in-out infinite; animation-delay: -3s; }
.float-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.float-icon-purple { background: rgba(123,92,246,0.22); }
.float-icon-cyan { background: rgba(14,205,228,0.18); }
.float-card-val { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-0); }
.float-card-sub { font-size: 0.7rem; color: var(--text-3); }

/* Stats strip */
.hero-stats {
  background: var(--bg-1);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
  padding: 32px 0;
}
.hero-stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  max-width: 900px; margin: 0 auto; padding: 0 32px;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.82rem; color: var(--text-3); font-weight: 500; letter-spacing:0.03em; }

/* ============================================================
   SERVICES
   ============================================================ */
#services { padding: 120px 0; }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.05));
  opacity: 0; transition: opacity 0.3s;
  border-radius: 20px;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: var(--glow-purple); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.service-card:nth-child(1) .service-icon { background: rgba(123,92,246,0.18); }
.service-card:nth-child(2) .service-icon { background: rgba(14,205,228,0.16); }
.service-card:nth-child(3) .service-icon { background: rgba(245,158,11,0.2); }
.service-card:nth-child(4) .service-icon { background: rgba(16,185,129,0.2); }
.service-card:nth-child(5) .service-icon { background: rgba(239,68,68,0.2); }
.service-card:nth-child(6) .service-icon { background: rgba(59,130,246,0.2); }
.service-card:nth-child(7) .service-icon { background: rgba(236,72,153,0.2); }
.service-card:nth-child(8) .service-icon { background: rgba(168,85,247,0.2); }
.service-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.service-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; position: relative; z-index: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(13,21,38,0.55), transparent);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-svg {
  width: 100%; height: 100%; opacity: 0.7;
}
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 18px; padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow-purple);
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: #fff;
}
.about-badge-text { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.about-text .section-sub { margin-bottom: 32px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.pillar {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 18px;
  transition: var(--transition);
}
.pillar:hover { border-color: var(--border-cyan); }
.pillar-icon { font-size: 1.5rem; margin-bottom: 8px; }
.pillar-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.pillar-text { font-size: 0.8rem; color: var(--text-2); }

.counter-row { display: flex; gap: 32px; flex-wrap: wrap; }
.counter-item { text-align: center; }
.counter-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan-light), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.counter-label { font-size: 0.8rem; color: var(--text-3); }

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
#technologies { padding: 80px 0; overflow: hidden; }
.tech-header { text-align: center; margin-bottom: 56px; }
.tech-track-wrap { position: relative; overflow: hidden; }
.tech-track-wrap::before,
.tech-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.tech-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.tech-track-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }

.tech-track {
  display: flex; gap: 20px; width: max-content;
  animation: techScroll 30s linear infinite;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes techScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 14px 20px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: default;
}
.tech-item:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(14,205,228,0.07);
}
.tech-item span:first-child { font-size: 1.5rem; }
.tech-item span:last-child { font-size: 0.875rem; font-weight: 600; color: var(--text-0); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio { padding: 120px 0; }
.portfolio-header { text-align: center; margin-bottom: 48px; }
.portfolio-filters {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.filter-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 100px; padding: 8px 20px;
  font-size: 0.83rem; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(123,92,246,0.18);
  border-color: var(--border-accent);
  color: var(--primary-light);
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.portfolio-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 20px; overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-8px); border-color: var(--border-accent); box-shadow: var(--glow-purple); }
.portfolio-thumb {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.portfolio-thumb-1 { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2)); }
.portfolio-thumb-2 { background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(16,185,129,0.2)); }
.portfolio-thumb-3 { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(239,68,68,0.2)); }
.portfolio-thumb-4 { background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(124,58,237,0.2)); }
.portfolio-thumb-5 { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(6,182,212,0.2)); }
.portfolio-thumb-6 { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(124,58,237,0.2)); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { padding: 20px; }
.portfolio-tag {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan-light); margin-bottom: 8px;
}
.portfolio-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 8px;
}
.portfolio-desc { font-size: 0.83rem; color: var(--text-2); line-height:1.6; }

/* Portfolio filter animations */
#portfolioGrid .portfolio-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
}
#portfolioGrid .portfolio-card[style*="display: none"] { pointer-events: none; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(123,92,246,0.06), transparent);
}
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-track-wrap { overflow: hidden; position: relative; }
.testimonials-track {
  display: flex; gap: 24px; width: max-content;
  animation: testimonialsScroll 40s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testimonial-card {
  width: 380px; flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-medium);
  border-radius: 20px; padding: 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-accent); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; font-size: 1rem; color: var(--gold); }
.testimonial-text {
  font-size: 0.92rem; color: var(--text-1);
  line-height: 1.75; margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  color: #fff;
}
.av-1 { background: linear-gradient(135deg, #7C3AED, #06B6D4); }
.av-2 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.av-3 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.av-4 { background: linear-gradient(135deg, #EC4899, #7C3AED); }
.av-5 { background: linear-gradient(135deg, #3B82F6, #10B981); }
.testimonial-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-0); letter-spacing:-0.01em; }
.testimonial-role { font-size: 0.78rem; color: var(--text-3); font-weight:500; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-sub { margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ci-purple { background: rgba(123,92,246,0.18); }
.ci-cyan { background: rgba(14,205,228,0.15); }
.ci-gold { background: rgba(246,166,35,0.18); }
.contact-item-label { font-size: 0.75rem; color: var(--text-3); margin-bottom: 3px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; }
.contact-item-val { font-size: 0.92rem; font-weight: 500; color: var(--text-1); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 24px; padding: 36px;
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-1); margin-bottom: 8px; letter-spacing:0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg-3);
  border: 1px solid var(--border-medium);
  border-radius: 10px; padding: 13px 16px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-0); outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); font-style: italic; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(123,92,246,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.form-group select option { background: var(--bg-3); color: var(--text-0); }
.btn-submit { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-1);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--cyan-light), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; text-decoration: none;
  transition: var(--transition);
}
.social-icon:hover { background: rgba(123,92,246,0.2); border-color: var(--border-accent); transform: translateY(-2px); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 20px; letter-spacing:0.03em; text-transform:uppercase;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--cyan-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-2); }
.footer-bottom a { color: var(--cyan-light); text-decoration: none; }

/* ============================================================
   CHATBOT
   ============================================================ */
.chat-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 990;
}
.chat-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.5), 0 0 0 0 rgba(124,58,237,0.4);
  animation: chatPulse 3s ease-in-out infinite;
  transition: var(--transition);
}
.chat-btn:hover { transform: scale(1.1); }
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(124,58,237,0.5), 0 0 0 0 rgba(124,58,237,0.4); }
  50% { box-shadow: 0 4px 24px rgba(124,58,237,0.5), 0 0 0 12px rgba(124,58,237,0); }
}
.chat-panel {
  position: absolute; bottom: 70px; right: 0;
  width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  animation: slideUp 0.3s ease;
}
.chat-panel.open { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.chat-header {
  background: linear-gradient(135deg, var(--primary), rgba(6,182,212,0.8));
  padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
}
.chat-header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.chat-header-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: #fff; }
.chat-header-status { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; max-height: 200px; overflow-y: auto; }
.chat-msg {
  background: rgba(123,92,246,0.14);
  border: 1px solid var(--border-accent);
  border-radius: 12px 12px 12px 0; padding: 10px 14px;
  font-size: 0.82rem; color: var(--text-1); max-width: 85%;
}
.chat-msg.user { background: rgba(14,205,228,0.1); border-color: var(--border-cyan); align-self: flex-end; border-radius: 12px 12px 0 12px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.chat-input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border-medium);
  border-radius: 8px; padding: 8px 12px;
  font-family: var(--font-body); font-size: 0.82rem; color: var(--text-0); outline: none;
}
.chat-input::placeholder { color: var(--text-3); }
.chat-send {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border: none; cursor: pointer; color: #fff; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 110px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 800;
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 20px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; color: #fff;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  letter-spacing: 0.01em;
}
.sticky-cta a:first-child {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.sticky-cta a:last-child {
  background: linear-gradient(135deg, #0891B2, #06B6D4);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.sticky-cta a:hover {
  transform: translateX(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
}

/* ============================================================
   DARK/LIGHT TOGGLE
   ============================================================ */
.theme-toggle {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
  color: var(--text-2); font-size: 1rem; transition: var(--transition);
}
.theme-toggle:hover { color: var(--text-0); background: rgba(255,255,255,0.12); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; flex-direction: column; }
  .hero-visual { display: none; }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .sticky-cta { display: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .container-wide { padding: 0 20px; }
}

/* Light mode */
body.light {
  --bg-0: #F8FAFC;
  --bg-1: #F1F5F9;
  --bg-2: #E2E8F0;
  --text-0: #0F172A;
  --text-1: #1E293B;
  --text-2: #475569;
  --text-3: #94A3B8;
}
body.light .hero-grid {
  background-image: linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
}

/* Loading screen */
#loading {
  position: fixed; inset: 0; z-index: 10000;
  background: #060B1A;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}
#loading.done { opacity: 0; visibility: hidden; }
.loading-logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
}
.loading-bar-wrap {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 2px;
  animation: loadingFill 1.5s ease forwards;
}
@keyframes loadingFill {
  from { width: 0; }
  to { width: 100%; }
}
.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 18px;
}

.social-icon:hover {
  background: #007bff;
  transform: translateY(-3px);
}