/* ════════════════════════════════════════════════════
   GRAY MATTER AI — Dark Futuristic Theme
   ════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────── */
:root {
  --bg-base:        #05070d;
  --bg-surface:     #070b14;
  --bg-elevated:    #0c1322;
  --bg-card:        rgba(13, 18, 32, 0.72);
  --bg-card-hover:  #101a2e;

  --border:         rgba(148, 163, 184, 0.10);
  --border-accent:  rgba(59, 130, 246, 0.28);
  --border-hover:   rgba(59, 130, 246, 0.5);

  --text-primary:   #f1f5f9;
  --text-secondary: #9fb0c7;
  --text-muted:     #5d6d85;

  --blue:       #3b82f6;
  --blue-light: #60a5fa;
  --cyan:       #06b6d4;
  --purple:     #8b5cf6;
  --green:      #10b981;
  --amber:      #f59e0b;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero:    linear-gradient(110deg, #60a5fa, #22d3ee, #a78bfa, #60a5fa);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 48px rgba(59, 130, 246, 0.14);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

/* ─── Container ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography Utilities ──────────────────────── */
.gradient-text {
  background: var(--gradient-hero);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s linear infinite;
}
@keyframes gradient-shift {
  to { background-position: 220% center; }
}

.accent { color: var(--blue-light); }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 5px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 18px;
  background: rgba(59, 130, 246, 0.07);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin: 0 auto; }

/* underline sweep when header reveals */
.section-header .section-title { position: relative; display: inline-block; padding-bottom: 14px; width: 100%; }
.section-header .section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 72px; height: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: transform 0.9s var(--ease-out) 0.35s;
  transform-origin: center;
}
.section-header.visible .section-title::after,
.section-header .reveal.visible + .section-title::after,
.reveal.visible .section-title::after {
  transform: translateX(-50%) scaleX(1);
}

.section {
  padding: 110px 0;
  background: var(--bg-base);
  position: relative;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
}

/* shine sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn--primary:hover::after { left: 130%; }

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(59, 130, 246, 0.55);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--blue-light);
  border-color: var(--border-accent);
}
.btn--outline:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* ─── Nav ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* scroll progress bar */
.nav__progress {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo { display: flex; align-items: center; gap: 8px; }

.nav__logo-mark {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.45));
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.nav__link--cta {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  padding: 8px 18px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.55) !important;
}

.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.4) 50%, var(--bg-base) 100%);
  z-index: 1;
}
.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  will-change: transform;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.20), transparent 70%);
  top: -200px; right: -100px;
  animation: float-orb 14s ease-in-out infinite;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
  bottom: -100px; left: -80px;
  animation: float-orb 18s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 70%);
  top: 45%; left: 42%;
  animation: float-orb 11s ease-in-out infinite 3s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(96, 165, 250, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
  will-change: transform, opacity;
}

/* staged hero entrance (fires when intro dismisses) */
.has-intro:not(.intro-done) .hero-el { opacity: 0; }
.intro-done .hero-el,
body:not(.has-intro) .hero-el {
  animation: hero-up 0.9s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: glow-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 24px;
  max-width: 820px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero__stat { display: flex; flex-direction: column; gap: 3px; }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
}

.hero__stat-label {
  font-size: 11px;
  color: var(--blue-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
  margin: 0 28px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ─── Marquee strip ─────────────────────────────── */
.marquee {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--bg-base), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg-base), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee__item b { color: var(--blue-light); font-weight: 500; }
.marquee__dot { color: var(--blue); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── About ─────────────────────────────────────── */
.about { background: var(--bg-surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__domains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.domain-tag {
  padding: 5px 13px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-light);
  transition: all var(--transition);
}
.domain-tag:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.about__card-stack { display: flex; flex-direction: column; gap: 16px; }

.about__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.about__card:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.about__card-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.about__card-text { display: flex; flex-direction: column; gap: 4px; }
.about__card-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}
.about__card-text span {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Projects ───────────────────────────────────── */
.projects { background: var(--bg-base); overflow: hidden; }

.projects__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--border-accent);
  color: var(--text-primary);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12);
}

.filter-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.filter-dot--live     { background: var(--green); }
.filter-dot--dev      { background: var(--blue); }
.filter-dot--planning { background: var(--purple); }

/* ── bento card grid ── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s var(--ease-out),
    border-color var(--transition),
    box-shadow 0.35s var(--ease-out);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* featured cards span 2 columns for the bento rhythm */
.project-card--wide { grid-column: span 2; }

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060a12;
  overflow: hidden;
  flex-shrink: 0;
}
.project-card__media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out);
}
.project-card:hover .project-card__media video { transform: scale(1.08); }

.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 13, 0.45), transparent 45%);
  pointer-events: none;
}

.project-card__media .project-card__status {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.project-card__media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 50% 40%, rgba(59,130,246,0.08), transparent 65%),
    #060a12;
  pointer-events: none;
}
.project-card__media-placeholder svg { opacity: 0.2; width: 44px; height: 44px; }
.project-card__media-placeholder span { opacity: 0.35; }

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.project-card__category {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.project-card--wide .project-card__name { font-size: 26px; }

.project-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card--wide .project-card__desc { -webkit-line-clamp: 2; }

.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.project-card__footer { margin-top: auto; padding-top: 10px; }

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}
.project-card__status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.project-card__status--live {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.project-card__status--live .project-card__status-dot {
  background: var(--green);
  animation: glow-pulse 2s infinite;
  box-shadow: 0 0 6px var(--green);
}
.project-card__status--development {
  background: rgba(59, 130, 246, 0.10);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.project-card__status--development .project-card__status-dot { background: var(--blue); }
.project-card__status--planning {
  background: rgba(139, 92, 246, 0.10);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.project-card__status--planning .project-card__status-dot { background: var(--purple); }

.feature-tag {
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.feature-tag:hover {
  border-color: var(--border-accent);
  color: var(--blue-light);
  transform: translateY(-1px);
}

/* ─── Team ──────────────────────────────────────── */
.team { background: var(--bg-base); }

/* ─── Capabilities ───────────────────────────────── */
.capabilities { background: var(--bg-surface); }

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1000px;
}

.capability-card {
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.capability-card:hover::before { transform: scaleX(1); }
.capability-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.capability-card__icon { font-size: 28px; margin-bottom: 14px; display: block; }
.capability-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.capability-card__desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Why Us ─────────────────────────────────────── */
.why-us { background: var(--bg-base); }
.why-us__header { max-width: 540px; margin-bottom: 56px; }
.why-us__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.why-card {
  padding: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.why-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.why-card:hover::after { opacity: 1; }

.why-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-light);
  opacity: 0.6;
  margin-bottom: 14px;
}
.why-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}
.why-card__desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Contact ───────────────────────────────────── */
.contact {
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; pointer-events: none; }
.contact__orb--1 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
  top: -120px; right: -120px;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.contact__orb--2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #fff;
}

.contact__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contact__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.contact__info-item { display: inline-flex; align-items: center; gap: 5px; }
.contact__info-sep { color: var(--border); }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer__tagline { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--blue-light); }
.footer__social { display: flex; gap: 14px; align-items: center; }
.footer__social-link {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
}
.footer__social-link:hover {
  color: var(--blue-light);
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ════════════════════════════════════════════════════
   SCROLL ANIMATION SYSTEM
   ════════════════════════════════════════════════════ */

/* base reveal — slide up */
.reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}

/* directional variants */
.reveal[data-reveal="left"]  { transform: translateX(-64px); }
.reveal[data-reveal="right"] { transform: translateX(64px); }
.reveal[data-reveal="down"]  { transform: translateY(-48px); }
.reveal[data-reveal="zoom"]  { transform: scale(0.86); }
.reveal[data-reveal="flip"]  { transform: perspective(900px) rotateX(14deg) translateY(40px); }

.reveal.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* parallax helper (JS drives --py) */
[data-parallax] {
  transform: translate3d(0, calc(var(--py, 0) * 1px), 0);
  will-change: transform;
}

/* ─── Keyframes ──────────────────────────────────── */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(24px, -18px) scale(1.04); }
  66%      { transform: translate(-18px, 12px) scale(0.97); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes scroll-line {
  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; }
}

/* ─── Utilities ──────────────────────────────────── */
.hide-mobile { display: inline; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .capabilities__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__hamburger  { display: flex; }

  .hero__content { padding: 60px 24px 80px; }
  .hero__stat-divider { display: none; }
  .hero__stats { gap: 24px; }

  .about__inner { grid-template-columns: 1fr; gap: 48px; }

  .projects__grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card--wide { grid-column: span 1; }
  .project-card--wide .project-card__name { font-size: 20px; }

  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .capabilities__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__actions .btn { justify-content: center; }
  .btn--lg { width: 100%; justify-content: center; }
}

/* ─── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .project-card,
  .project-card__media video {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-el { animation: none !important; opacity: 1 !important; }
  .marquee__track { animation: none; }
  .hero__orb, [data-parallax] { animation: none; transform: none !important; }
  .gradient-text { animation: none; }
}
