/* ═══════════════════════════════════════════════════════════════
   NEXUS DIGITAL AGENCY — MAIN STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Colors - Dark Theme */
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #606060;
  --accent: #ff4d00;
  --accent-2: #00d4ff;
  --accent-3: #a855f7;
  --accent-glow: rgba(255,77,0,0.2);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: 120px 0;
  --container-max: 1280px;
  --radius: 12px;
  --radius-sm: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.6s;
}

[data-theme="light"] {
  --bg: #f8f7f4;
  --bg-2: #f0ede8;
  --bg-3: #e8e4dd;
  --surface: #ffffff;
  --surface-2: #f5f3f0;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);
  --text: #0a0a0a;
  --text-2: #555555;
  --text-3: #999999;
  --accent-glow: rgba(255,77,0,0.1);
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
svg { fill: none; stroke: currentColor; }
ul { list-style: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.3s var(--ease), height 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.15s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
  opacity: 0.5;
}
.cursor.hovered { width: 40px; height: 40px; }
.cursor-follower.hovered { width: 60px; height: 60px; opacity: 0.2; }

/* ─── PAGE LOADER ────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-counter {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.loader-bar {
  width: 280px;
  height: 2px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.05s linear;
}
.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(248,247,244,0.85);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 1.1rem;
  transition: border-color 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.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); }

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { overflow: hidden; }
.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  padding: 12px 0;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--accent); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 100px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 1.2s forwards;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(80px);
  animation: slideUp 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 1.4s; }
.hero-title .line:nth-child(2) { animation-delay: 1.55s; }
.hero-title .line:nth-child(3) { animation-delay: 1.7s; }
.hero-title .accent { color: var(--accent); font-style: italic; }
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 1.9s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 2.0s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 120px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--text-3));
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* TICKER */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0;
}
.ticker-inner {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  animation: ticker 20s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #e04400; transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; }

/* ─── MARQUEE DIVIDER ────────────────────────────────────────── */
.marquee-divider {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  animation: ticker 15s linear infinite;
}

/* ─── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── SECTION SHARED ─────────────────────────────────────────── */
section { padding: var(--section-pad); }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 48px 36px;
  position: relative;
  transition: background 0.4s;
  cursor: pointer;
}
.service-card:hover { background: var(--surface); }
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 36px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.service-card:hover::after { width: calc(100% - 72px); }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.service-icon {
  width: 52px; height: 52px;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 100px;
}
.service-arrow {
  font-size: 1.4rem;
  color: var(--text-3);
  transition: color 0.3s, transform 0.3s;
}
.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

/* ─── WORK / PORTFOLIO ───────────────────────────────────────── */
.work { background: var(--bg-2); }
.work-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: fadeInUp 0.5s var(--ease) forwards;
}
.work-item.hidden {
  display: none;
}
.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.work-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.work-img-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-browser {
  width: 120px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}
.browser-bar {
  height: 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.browser-bar span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.browser-body {
  height: 60px;
  background: rgba(255,255,255,0.02);
}
.work-info { padding: 28px 24px; }
.work-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.work-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.work-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.work-info p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.work-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: gap 0.3s;
}
.work-link:hover { opacity: 0.8; }

/* WORK DECORATIVE PREVIEWS */
.work-design-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dp-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.5);
}
.dp-rect {
  width: 40px; height: 30px;
  background: rgba(168,85,247,0.2);
  border-radius: 4px;
}
.dp-lines { display: flex; flex-direction: column; gap: 6px; }
.dp-lines span { display: block; height: 2px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.dp-lines span:nth-child(1) { width: 50px; }
.dp-lines span:nth-child(2) { width: 35px; }
.dp-lines span:nth-child(3) { width: 45px; }
.work-brand-preview {
  display: flex; align-items: center; justify-content: center;
}
.brand-logo-preview {
  width: 70px; height: 70px;
  border-radius: 16px;
  background: rgba(34,197,94,0.2);
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #22c55e;
}
.work-chart-preview {
  padding: 0 24px;
  width: 100%;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.chart-bars div {
  flex: 1;
  background: rgba(245,158,11,0.4);
  border-radius: 3px 3px 0 0;
  border-top: 2px solid #f59e0b;
}
.work-ai-preview { width: 80%; height: 60px; position: relative; overflow: hidden; }

/* ─── ABOUT ──────────────────────────────────────────────────── */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left h2 { text-align: left; }
.about-left p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 1rem;
}
.about-values { margin: 36px 0; display: flex; flex-direction: column; gap: 20px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}
.value-item:hover { border-color: var(--accent); }
.value-icon { color: var(--accent); font-size: 1.3rem; flex-shrink: 0; padding-top: 2px; }
.value-item strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.team-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.team-info strong { display: block; font-size: 0.875rem; font-weight: 600; }
.team-info span { font-size: 0.75rem; color: var(--text-3); }
.tech-stack {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stack-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.stack-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stack-items span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: all 0.3s;
  position: relative;
  cursor: default;
}
.stack-items span:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-4px);
}
.stack-items span::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.stack-items span:hover::after { opacity: 1; }

/* ─── STATS ──────────────────────────────────────────────────── */
.stats {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,77,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  margin-bottom: 4px;
}
.stat-sub { font-size: 0.8rem; color: var(--text-3); }

/* SKILLS BARS */
.skills-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 48px;
}
.skills-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 32px;
}
.skill-bars { display: flex; flex-direction: column; gap: 24px; }
.skill-bar-item {}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.skill-pct { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.skill-bar-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s var(--ease);
}

/* CHART */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.chart-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 32px;
}
.chart-container { overflow: hidden; border-radius: var(--radius-sm); }
.chart-container canvas { width: 100% !important; height: 200px !important; }
.chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.chart-legend i {
  display: inline-block;
  width: 12px; height: 3px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials { background: var(--bg); }
.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto 64px;
}
.testimonial-track { position: relative; overflow: hidden; }
.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
}
.testimonial-slide blockquote::before {
  content: '"';
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -20px; left: 24px;
  line-height: 1;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 8px;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.testimonial-author strong { display: block; font-size: 0.95rem; font-weight: 600; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-3); }
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.testimonial-prev, .testimonial-next {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text);
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-prev:hover, .testimonial-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.testimonial-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: all 0.3s;
  cursor: pointer;
}
.dot.active { background: var(--accent); transform: scale(1.4); }

/* CLIENT LOGOS */
.client-logos { text-align: center; }
.logos-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 24px;
}
.logos-track {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.client-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.client-logo:hover { color: var(--text); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--bg-2); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
  padding-bottom: 24px;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left h2 { text-align: left; margin-bottom: 20px; }
.contact-left > p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-info { margin-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.contact-item strong { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--text-3); margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--text); font-size: 0.95rem; transition: color 0.3s; }
.contact-item a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  transition: all 0.3s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
  resize: vertical;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input.error,
.form-group textarea.error,
.form-group select.error { border-color: #ef4444; }
.form-error {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ef4444;
  min-height: 14px;
}
.budget-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.budget-slider-wrapper input[type="range"] {
  flex: 1;
  padding: 0;
  accent-color: var(--accent);
  height: 4px;
  border: none;
  background: transparent;
}
.budget-display {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
}
.char-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: right;
  margin-top: 4px;
}
.form-success {
  display: none;
  padding: 16px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-size: 0.9rem;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-brand p { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  display: block;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom > span { color: var(--text-3); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-3); font-size: 0.85rem; transition: color 0.3s; }
.footer-legal a:hover { color: var(--text); }
.back-to-top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.3s;
}
.back-to-top:hover { opacity: 0.7; }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease);
  max-width: 320px;
  border-left: 3px solid var(--accent);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 0 24px; }
  .hero-scroll { display: none; }
  .container { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .footer-links { grid-template-columns: 1fr; }
  .logos-track { gap: 24px; }
  .skills-section, .chart-section { padding: 24px; }
}
