/* ══════════════════════════════════════════════════════════════
   CHIGUIRELABS — Design System & Landing Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-bg-deep: #06080f;
  --clr-bg-surface: #0c1120;
  --clr-bg-card: rgba(14, 20, 40, 0.6);
  --clr-bg-glass: rgba(14, 20, 40, 0.45);

  --clr-primary: #00e5c3;
  --clr-primary-dim: #00b89c;
  --clr-primary-glow: rgba(0, 229, 195, 0.25);
  --clr-accent: #7c5cfc;
  --clr-accent-dim: #6347d6;
  --clr-accent-glow: rgba(124, 92, 252, 0.25);
  --clr-highlight: #f472b6;

  --clr-text: #e8ecf4;
  --clr-text-muted: #8892a8;
  --clr-text-dim: #5a6478;
  --clr-border: rgba(136, 146, 168, 0.12);
  --clr-border-active: rgba(0, 229, 195, 0.3);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #06080f 0%, #0c1120 40%, #12162e 100%);
  --grad-primary: linear-gradient(135deg, #00e5c3, #7c5cfc);
  --grad-card: linear-gradient(160deg, rgba(14, 20, 40, 0.7), rgba(14, 20, 40, 0.3));
  --grad-text: linear-gradient(135deg, #00e5c3 0%, #7c5cfc 50%, #f472b6 100%);

  /* Typography */
  --ff-heading: 'Outfit', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 0 40px var(--clr-primary-glow), 0 0 80px var(--clr-primary-glow);
  --shadow-glow-accent: 0 0 40px var(--clr-accent-glow), 0 0 80px var(--clr-accent-glow);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  line-height: 1.15;
  font-weight: 700;
}

/* ─── Utility Classes ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--clr-text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* ─── Scroll-Driven Reveal Animation ────────────────────────── */
@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .reveal {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

/* ─── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--clr-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.glass-card:hover {
  border-color: var(--clr-border-active);
  box-shadow: var(--shadow-md), 0 0 30px var(--clr-primary-glow);
  transform: translateY(-4px);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(6, 8, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
  border-bottom-color: var(--clr-border);
  background: rgba(6, 8, 15, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-brand span {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--clr-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ff-heading);
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  color: var(--clr-bg-deep);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: var(--grad-hero);
  overflow: hidden;
}

/* Decorative orbs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: var(--clr-primary-glow);
  top: -10%;
  right: -5%;
  opacity: 0.6;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: var(--clr-accent-glow);
  bottom: -15%;
  left: -10%;
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: hero-fade-in 1s var(--ease-out-expo) both;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    translate: 0 30px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(0, 229, 195, 0.08);
  border: 1px solid rgba(0, 229, 195, 0.2);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.hero-tag .pulse {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--clr-bg-deep);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-3px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-fade-in 1s 0.3s var(--ease-out-expo) both;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-logo-container {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-container img {
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 0 60px var(--clr-primary-glow));
  animation: float 6s ease-in-out infinite;
}

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

/* Orbiting particles */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed var(--clr-border);
  animation: spin 30s linear infinite;
}

.orbit-ring:nth-child(1) {
  width: 380px;
  height: 380px;
}

.orbit-ring:nth-child(2) {
  width: 480px;
  height: 480px;
  animation-direction: reverse;
  animation-duration: 45s;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 12px var(--clr-primary-glow);
}

.orbit-ring:nth-child(1) .orbit-dot { top: -5px; left: 50%; }
.orbit-ring:nth-child(2) .orbit-dot { bottom: -5px; right: 15%; background: var(--clr-accent); box-shadow: 0 0 12px var(--clr-accent-glow); }

@keyframes spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

/* Stats bar */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--clr-border);
}

.hero-stat-value {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* ─── Clients Marquee ────────────────────────────────────────── */
.marquee-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: rgba(12, 17, 32, 0.5);
}

.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: var(--space-lg);
}

.marquee-track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 25s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from { translate: 0 0; }
  to { translate: -50% 0; }
}

.marquee-item {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
}

/* ─── Services Section ───────────────────────────────────────── */
.services-section {
  padding: var(--space-3xl) 0;
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.services-header .section-subtitle {
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 195, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(0, 229, 195, 0.15);
  box-shadow: 0 0 20px var(--clr-primary-glow);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.service-tag {
  padding: 0.2rem 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 252, 0.1);
  color: var(--clr-accent);
  border: 1px solid rgba(124, 92, 252, 0.15);
}

/* ─── Portfolio Section ──────────────────────────────────────── */
.portfolio-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 17, 32, 0.5) 50%, transparent 100%);
}

.portfolio-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.portfolio-header .section-subtitle {
  margin-inline: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-card-content {
  padding: var(--space-xl);
}

.portfolio-card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.badge-web { background: rgba(0, 229, 195, 0.12); color: var(--clr-primary); }
.badge-dashboard { background: rgba(124, 92, 252, 0.12); color: var(--clr-accent); }
.badge-tool { background: rgba(244, 114, 182, 0.12); color: var(--clr-highlight); }
.badge-social { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.portfolio-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill {
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: rgba(136, 146, 168, 0.1);
  color: var(--clr-text-dim);
  border: 1px solid var(--clr-border);
}

/* Featured card spans full width */
.portfolio-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.portfolio-card.featured .portfolio-card-visual {
  background: linear-gradient(135deg, rgba(0, 229, 195, 0.05), rgba(124, 92, 252, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.featured-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(136, 146, 168, 0.08);
  border-bottom: 1px solid var(--clr-border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-text-dim);
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #fbbf24; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: var(--space-md);
}

.mockup-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.mockup-block {
  height: 12px;
  border-radius: 4px;
  background: var(--clr-border);
}

.mockup-block.w-40 { width: 40%; }
.mockup-block.w-60 { width: 60%; }
.mockup-block.w-80 { width: 80%; }
.mockup-block.w-100 { width: 100%; }
.mockup-block.accent { background: rgba(0, 229, 195, 0.25); }
.mockup-block.purple { background: rgba(124, 92, 252, 0.25); }

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--clr-border);
}

.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--grad-primary);
  opacity: 0.6;
}

/* ─── Tech Stack Section ─────────────────────────────────────── */
.tech-section {
  padding: var(--space-xl) 0;
}

.tech-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tech-header .section-subtitle {
  margin-inline: auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.tech-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
}

.tech-icon {
  width: 18px;
  height: 18px;
  color: var(--clr-text-dim);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.tech-item:hover {
  background: rgba(136, 146, 168, 0.08);
  border-color: var(--clr-border-active);
  transform: translateY(-2px);
}

.tech-item:hover .tech-icon {
  color: var(--clr-primary);
  filter: drop-shadow(0 0 6px var(--clr-primary-glow));
}

.tech-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* ─── Industries Section ─────────────────────────────────────── */
.industries-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, transparent 0%, rgba(12, 17, 32, 0.5) 50%, transparent 100%);
}

.industries-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.industries-header .section-subtitle {
  margin-inline: auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.industry-card {
  padding: var(--space-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
}

.industry-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 195, 0.08);
  border: 1px solid rgba(0, 229, 195, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: var(--space-xs);
  transition: all var(--transition-base);
}

.industry-card:hover .industry-icon-wrapper {
  background: var(--clr-primary);
  color: var(--clr-bg-deep);
  box-shadow: 0 0 12px var(--clr-primary-glow);
}

.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  line-height: 1.5;
}

/* ─── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) 0;
}

.cta-card {
  position: relative;
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 229, 195, 0.06), rgba(124, 92, 252, 0.06));
  border: 1px solid var(--clr-border);
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--clr-primary-glow), transparent 60%),
              radial-gradient(ellipse at 70% 50%, var(--clr-accent-glow), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--clr-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  max-width: 300px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.footer h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text);
  margin-bottom: var(--space-md);
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer ul a {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  transition: color var(--transition-base);
}

.footer ul a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--clr-text-dim);
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--clr-primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card.featured {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--clr-border);
    gap: var(--space-md);
  }

  .orbit-ring { display: none; }

  .hero-logo-container img {
    width: 220px;
    height: 220px;
  }

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

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

  .cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ─── Contact Form Dialog ────────────────────────────────────── */
.contact-dialog {
  border: none;
  background: transparent;
  max-width: 560px;
  width: 90vw;
  padding: 0;
  overflow: visible;
}

.contact-dialog::backdrop {
  background: rgba(6, 8, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-dialog-inner {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 80px var(--clr-primary-glow);
}

.contact-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--clr-text-dim);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background var(--transition-base);
}

.contact-close:hover {
  color: var(--clr-text);
  background: rgba(136, 146, 168, 0.1);
}

.contact-dialog-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-dialog-subtitle {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  margin-bottom: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: rgba(136, 146, 168, 0.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-sm);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.spinner-icon {
  animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

/* Success state */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.success-icon {
  color: var(--clr-primary);
  animation: success-pop 0.5s var(--ease-out-expo);
}

@keyframes success-pop {
  from { scale: 0; opacity: 0; }
  50% { scale: 1.2; }
  to { scale: 1; opacity: 1; }
}

.contact-success h3 {
  font-size: 1.3rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-success p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* Dialog animation */
.contact-dialog[open] {
  animation: dialog-in 0.35s var(--ease-out-expo);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    scale: 0.95;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-dialog-inner {
    padding: var(--space-xl);
  }
}
