/* ── CORE STYLES & DESIGN TOKENS ───────────────────────────────── */
:root {
  --cyan: #00f5ff;
  --purple: #865dff;
  --pink: #ffa3fd;
  --electric: #5856ba;
  --gold: #fbbf24;
  --bg: #060710;
  --bg-alt: #0d0e1c;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(0, 245, 255, 0.1);
  --glass-glow: rgba(134, 93, 255, 0.18);
  --white: #e8f4ff;
  --text-muted: #8a9ab0;
  --text-light: #ccd9eb;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Orbitron', monospace;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── GLOBAL SCANLINE + HUD OVERLAY ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  mix-blend-mode: multiply;
}

/* ── GLITCH TEXT KEYFRAME ─────────────────────────────────── */
@keyframes glitch {
  0%   { text-shadow: 2px 0 var(--cyan), -2px 0 var(--pink); clip-path: inset(0 0 95% 0); }
  5%   { clip-path: inset(20% 0 60% 0); }
  10%  { clip-path: inset(50% 0 30% 0); text-shadow: -3px 0 var(--purple), 3px 0 var(--cyan); }
  15%  { clip-path: inset(80% 0 0 0); }
  20%  { clip-path: inset(0 0 0 0); text-shadow: none; }
  100% { text-shadow: none; clip-path: inset(0 0 0 0); }
}

/* Apply glitch periodically to the main section headings */
.section-title:hover,
.hero-title:hover {
  animation: glitch 0.4s steps(1) forwards;
}

/* ── HUD CORNER BRACKETS (reusable class) ─────────────────── */
.hud-bracket {
  position: relative;
}
.hud-bracket::before,
.hud-bracket::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.hud-bracket:hover::before,
.hud-bracket:hover::after { opacity: 1; }
.hud-bracket::before { top: 6px; left: 6px; border-top: 1.5px solid var(--cyan); border-left: 1.5px solid var(--cyan); }
.hud-bracket::after  { bottom: 6px; right: 6px; border-bottom: 1.5px solid var(--cyan); border-right: 1.5px solid var(--cyan); }

/* ── NEON PING PULSE (HUD alive indicator) ──────────────── */
@keyframes neonPing {
  0%   { box-shadow: 0 0 0 0 rgba(0,245,255,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(0,245,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,245,255,0); }
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg);
}

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

/* ── CUSTOM CURSOR (DESKTOP ONLY) ───────────────────────────────── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .05s;
  box-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan);
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .15s ease-out;
}

#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px circle at var(--x, 50vw) var(--y, 50vh), rgba(134, 93, 255, 0.12), transparent 45%);
  transition: background 0.15s ease;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring,
body:has(.tab-btn:hover) #cursor-ring,
body:has(.service-card:hover) #cursor-ring {
  transform: translate(-50%, -50%) scale(1.8);
  background: rgba(0, 245, 255, 0.05);
  border-color: var(--pink);
}

/* ── AURORA MESH BACKGROUND ──────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: plus-lighter;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  animation: floatBlob 25s infinite alternate cubic-bezier(0.25, 1, 0.5, 1);
}

.blob-1 {
  width: 60vw; height: 60vh;
  background: rgba(88, 86, 186, 0.25);
  top: -15vh; left: -10vw;
}

.blob-2 {
  width: 70vw; height: 70vh;
  background: rgba(0, 245, 255, 0.12);
  bottom: -20vh; right: -10vw;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  width: 50vw; height: 50vh;
  background: rgba(134, 93, 255, 0.12);
  top: 35%; left: 25%;
  animation-duration: 35s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 12vh) scale(1.15); }
  100% { transform: translate(-5vw, -8vh) scale(0.95); }
}

/* ── GAME-STYLE GRID LINES OVERLAY ────────────────────── */
.aurora-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ── THREE.JS CANVAS & SCIFI BACKGROUND ────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* ── INTRO SCREEN ────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── GLASS NAVIGATION (HUD STYLE) ──────────────────────────── */
nav.glass-nav {
  position: fixed;
  top: 1rem;
  left: 5%;
  right: 5%;
  z-index: 500;
  padding: 0.6rem 2.0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 7, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0,245,255,0.04),
              0 12px 40px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(0,245,255,0.08);
  transition: var(--transition-smooth);
  /* HUD corner accents */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 0px));
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 6px var(--purple));
  transition: var(--transition-smooth);
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(15deg) scale(1.15);
  filter: drop-shadow(0 0 12px var(--cyan));
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.6rem 1.6rem;
  background: linear-gradient(135deg, var(--purple), var(--electric));
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(134, 93, 255, 0.2);
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  box-shadow: 0 4px 25px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}

/* ── SECTIONS COMMON ─────────────────────────────── */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 2rem;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 20%, var(--purple) 50%, var(--pink) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.magnetic {
  display: inline-block;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── HERO REDESIGN ────────────────────────────────────────── */
#hero {
  padding-top: 7.5rem;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.8rem;
  border-radius: 30px;
}

.hero-badge i {
  color: var(--pink);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.0rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--electric) 100%);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(134, 93, 255, 0.25);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  box-shadow: 0 4px 30px rgba(0, 245, 255, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 1rem 2.2rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cyan);
}

/* ── HERO RIGHT: VIDEO-GAME HUD STACK ──────────── */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  min-height: 420px;
  padding: 1rem 0.5rem;
}

/* Faint HUD bracket corners on the hero panel */
.hero-right::before,
.hero-right::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.55;
}
.hero-right::before {
  top: 0; left: 0;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.hero-right::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.floating-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(134,93,255,0.35) 0%, rgba(0,245,255,0.04) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(28px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatOrb 8s infinite ease-in-out alternate;
  pointer-events: none;
}

@keyframes floatOrb {
  0% { transform: translate(-50%, -55%) scale(0.9); }
  100% { transform: translate(-50%, -45%) scale(1.1); }
}

/* ── BASE GLASS CARD (STATIC, NON-OVERLAPPING) ── */
.glass-card {
  position: relative;
  background: rgba(18, 20, 32, 0.88);
  border: 1px solid rgba(0, 245, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.08),
              0 0 0 0 var(--cyan);
  transition: var(--transition-smooth);
  /* HUD scanline overlay */
  overflow: hidden;
}

/* scanline effect on each card */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,245,255,0.015) 2px,
    rgba(0,245,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 3;
  border-radius: 10px;
}

/* HUD corner brackets on each card */
.glass-card::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--cyan);
  border-left: 1.5px solid var(--cyan);
  opacity: 0.6;
  pointer-events: none;
  z-index: 4;
}

.glass-card:hover {
  border-color: rgba(0,245,255,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6),
              0 0 20px rgba(0,245,255,0.12),
              inset 0 1px 1px rgba(255,255,255,0.1);
  transform: translateX(4px);
}

.card-dot-header {
  display: flex;
  gap: 5px;
  margin-bottom: 0.7rem;
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.c-dot.red { background: #ff5f56; box-shadow: 0 0 4px #ff5f56; }
.c-dot.yellow { background: #ffbd2e; box-shadow: 0 0 4px #ffbd2e; }
.c-dot.green { background: #27c93f; box-shadow: 0 0 4px #27c93f; animation: blinkGreen 2s infinite; }

@keyframes blinkGreen {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* Card 1 – System Status (top) */
.g-card-1 {
  width: 100%;
  animation: floatCard1 6s infinite ease-in-out alternate;
}

.g-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
}

.g-card-stat {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.lbl-up {
  font-size: 0.72rem;
  color: #27c93f;
  font-family: var(--font-body);
  text-shadow: 0 0 6px rgba(39,201,63,0.5);
}

.g-card-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.g-card-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  border-radius: 10px;
  animation: barPulse 3s infinite ease-in-out;
}

@keyframes barPulse {
  0%,100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(1.3); }
}

/* Card 2 – API Links (middle) */
.g-card-2 {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: floatCard2 7s infinite ease-in-out alternate;
}

.g-card-icon {
  font-size: 1.3rem;
  color: var(--pink);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 163, 253, 0.08);
  border: 1px solid rgba(255,163,253,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: iconPulse 2.5s infinite ease-in-out;
}

@keyframes iconPulse {
  0%,100% { box-shadow: 0 0 6px rgba(255,163,253,0.3); }
  50% { box-shadow: 0 0 18px rgba(255,163,253,0.6); }
}

.g-card-small {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.g-card-val {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}

/* Card 3 – SEO Circular (bottom) */
.g-card-3 {
  width: 100%;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  animation: floatCard3 6.5s infinite ease-in-out alternate;
}

.circular-chart {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.circular-svg {
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3.5;
}

.circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--cyan));
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cyan);
}

.chart-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.chart-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Subtle floating animations – smaller travel so nothing moves off-screen */
@keyframes floatCard1 {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-6px) translateX(3px); }
}

@keyframes floatCard2 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(5px); }
}

@keyframes floatCard3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-5px); }
}

/* ── STATS SECTION (HUD METER STYLE) ───────────────────────── */
.section-divider {
  border-top: 1px solid rgba(0,245,255,0.12);
  border-bottom: 1px solid rgba(0,245,255,0.12);
  background: rgba(6, 7, 16, 0.6);
  padding: 3rem 2rem;
  min-height: auto;
  position: relative;
}

.section-divider::before {
  content: 'SYS://METRICS';
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(0,245,255,0.3);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}

/* Vertical divider between stat items */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,245,255,0.2), transparent);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,245,255,0.4), 0 0 40px rgba(134,93,255,0.2);
  animation: neonPing 3s infinite;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ── CAPABILITIES SECTION (AURANICS TABS) ────────────────────────── */
#capabilities {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.capabilities-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--transition-smooth);
}

.tab-btn i {
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  border-color: var(--purple);
  color: var(--white);
}

.tab-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
  box-shadow: 0 5px 20px rgba(134, 93, 255, 0.35);
}

.tab-btn.active i {
  color: var(--cyan);
}

.capabilities-content-wrap {
  position: relative;
  width: 100%;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Service Card Design – Video Game Panel Style */
.service-card {
  background: rgba(10, 11, 22, 0.88);
  border: 1px solid rgba(0,245,255,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,245,255,0.08);
  transition: var(--transition-smooth);
  will-change: transform;
  /* clip the top-right corner for that HUD panel feel */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0,245,255,0.5);
  box-shadow: 0 20px 50px rgba(0,245,255,0.1),
              0 0 0 1px rgba(0,245,255,0.1),
              inset 0 1px 0 rgba(0,245,255,0.1);
}

/* Animated neon sweep on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.04), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::after {
  left: 160%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(134, 93, 255, 0.08);
  border: 1px solid rgba(134, 93, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrap {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(134, 93, 255, 0.4);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.service-tagline {
  font-size: 0.85rem;
  color: var(--pink);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

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

.expand-icon {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.service-card:hover .expand-icon {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
  transform: rotate(-45deg);
}

/* ── FEATURED PROJECTS SECTION (PORTFOLIO) ────────────────────────── */
#projects {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(8, 9, 20, 0.9);
  border: 1px solid rgba(0,245,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,245,255,0.06);
  transition: var(--transition-smooth);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0,245,255,0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6),
              0 0 30px rgba(0,245,255,0.08),
              inset 0 1px 0 rgba(0,245,255,0.1);
}

.project-media {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: #0f1016;
}

.project-svg-mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-svg-mockup {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,12,16,0.8) 0%, transparent 100%);
  z-index: 1;
}

.project-info {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.project-link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.project-link i {
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--cyan);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* ── DEVELOPMENT PROCESS TIMELINE ────────────────────────── */
#process {
  background: var(--bg);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--glass-border);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--pink));
  box-shadow: 0 0 10px var(--cyan);
  transition: height 0.1s ease-out;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3.5rem 3.5rem;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 3;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -16px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -16px;
}

.timeline-item.active .timeline-dot {
  border-color: var(--cyan);
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 0 15px var(--cyan);
}

.timeline-card {
  background: rgba(26, 27, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.timeline-item.active .timeline-card {
  border-color: rgba(134, 93, 255, 0.3);
  box-shadow: 0 15px 30px rgba(134, 93, 255, 0.1);
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.timeline-item:nth-child(odd) .timeline-card-header {
  flex-direction: row-reverse;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.1em;
}

.step-icon {
  font-size: 1.2rem;
  color: var(--cyan);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── TECH STACK GRID (HUD ICON SLOTS) ──────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-card {
  background: rgba(6, 7, 18, 0.9);
  border: 1px solid rgba(0,245,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,245,255,0.06);
  transition: var(--transition-smooth);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.tech-card::before {
  content: attr(data-tech);
  position: absolute;
  bottom: 0.3rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: rgba(0,245,255,0.2);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.tech-card:hover {
  transform: scale(1.06) translateY(-3px);
  border-color: rgba(0,245,255,0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5),
              0 0 20px rgba(0,245,255,0.08);
}

.tech-icon {
  font-size: 2.5rem;
  transition: var(--transition-smooth);
}

.tech-card:hover .tech-icon {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 10px currentColor);
}

.tech-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* ── ABOUT SECTION REDESIGN ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.about-f-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-f-item i {
  color: var(--cyan);
  font-size: 1.1rem;
}

.about-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-visual-card {
  width: 100%;
  max-width: 380px;
  background: rgba(26, 27, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.about-visual-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(134,93,255,0.4), rgba(0,245,255,0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.focus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.focus-label {
  color: var(--text-light);
}

.focus-value {
  color: var(--pink);
  font-family: var(--font-mono);
}

.focus-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.focus-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 10px;
}

/* ── TESTIMONIALS SECTION ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: rgba(26, 27, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: 0 15px 35px rgba(134, 93, 255, 0.15);
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 3px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.client-meta {
  display: flex;
  flex-direction: column;
}

.client-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.client-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CONTACT & MAP ────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(134, 93, 255, 0.08);
  border: 1px solid rgba(134, 93, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.contact-value a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-value a:hover {
  color: var(--cyan);
}

.gmap-container {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
}

.gmap-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.15);
  pointer-events: none;
}

/* ── CONTACT FORM UPGRADES (FLOATING LABELS) ────────────────────────── */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .form-group {
  position: relative;
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  padding: 1.1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .form-label {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 0 0.4rem;
  background: var(--bg);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(134, 93, 255, 0.2);
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--electric) 100%);
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(134,93,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: var(--transition-smooth);
}

.form-submit:hover {
  box-shadow: 0 5px 25px rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}

.form-submit i {
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.form-submit:hover i {
  transform: translateX(4px) translateY(-2px);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-feedback.success {
  opacity: 1;
  color: #27c93f;
}

.form-feedback.error {
  opacity: 1;
  color: #ff5f56;
}

/* ── MODAL STRUCTURE & DESIGN ────────────────────────── */
#service-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#service-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#service-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 800px;
  background: rgba(26, 27, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 40px rgba(134, 93, 255, 0.2);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#service-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
  user-select: none;
  z-index: 10;
}

.modal-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.visual-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: rgba(11, 12, 16, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.sm-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#sm-icon-wrap.service-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(134, 93, 255, 0.1);
  border: 1px solid rgba(134, 93, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

#sm-title {
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

#sm-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.tw-cursor {
  color: var(--cyan);
  font-weight: bold;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── MODAL ANIMATED VISUALS STYLE ── */
.anim-browser {
  width: 220px;
  height: 140px;
  background: #12131c;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.anim-b-head {
  height: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
}

.anim-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.anim-b-body {
  flex: 1;
  display: flex;
}

.anim-sidebar {
  width: 45px;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid var(--glass-border);
}

.anim-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.anim-block {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  transform-origin: left;
  animation: barGrow 1.5s infinite ease-in-out alternate;
}

.a-b1 { width: 85%; animation-delay: 0.1s; }
.a-b2 { width: 60%; animation-delay: 0.3s; }
.a-b3 { width: 75%; animation-delay: 0.5s; }

@keyframes barGrow {
  0% { transform: scaleX(0.7); }
  100% { transform: scaleX(1); }
}

.anim-design-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-shape {
  position: absolute;
  border: 1.5px solid var(--purple);
  opacity: 0.7;
}

.circle-shape {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  animation: floatCircle 4s infinite ease-in-out alternate;
}

.square-shape {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  border-color: var(--pink);
  animation: floatSquare 4s infinite ease-in-out alternate;
}

.anim-cursor {
  position: absolute;
  color: var(--cyan);
  font-size: 1.1rem;
  animation: moveCursor 4s infinite ease-in-out alternate;
  filter: drop-shadow(0 0 5px var(--cyan));
}

@keyframes floatCircle {
  0% { transform: translate(-30px, -15px) scale(0.9); }
  100% { transform: translate(30px, 15px) scale(1.1); }
}

@keyframes floatSquare {
  0% { transform: translate(30px, -20px) rotate(0deg); }
  100% { transform: translate(-30px, 20px) rotate(180deg); }
}

@keyframes moveCursor {
  0% { transform: translate(-50px, 30px); }
  50% { transform: translate(20px, -30px); }
  100% { transform: translate(-10px, 10px); }
}

.anim-phone {
  width: 110px;
  height: 180px;
  background: #12131c;
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  justify-content: center;
}

.anim-phone::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background: var(--glass-border);
  border-radius: 10px;
}

.anim-code-stream {
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  line-height: 1.3;
}

.anim-code-stream div {
  opacity: 0;
  animation: codeFade 2.5s infinite;
}

@keyframes codeFade {
  0%, 100% { opacity: 0; transform: translateY(5px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
}

.anim-ui-card {
  height: 25px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  margin-top: 10px;
  animation: uiSlide 3s infinite ease-in-out alternate;
}

.anim-ui-card.c1 { width: 100%; animation-delay: 0.1s; }
.anim-ui-card.c2 { width: 85%; animation-delay: 0.4s; background: rgba(134,93,255,0.05); }
.anim-ui-card.c3 { width: 95%; animation-delay: 0.7s; }

@keyframes uiSlide {
  0% { transform: translateY(10px); opacity: 0; }
  50%, 100% { transform: translateY(0); opacity: 1; }
}

.anim-chart-wrap {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--glass-border);
}

.anim-bar {
  width: 18px;
  background: linear-gradient(0deg, var(--purple), var(--pink));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: barScale 1.8s infinite ease-in-out alternate;
}

.anim-bar.b1 { height: 35%; animation-delay: 0.1s; }
.anim-bar.b2 { height: 60%; animation-delay: 0.3s; }
.anim-bar.b3 { height: 45%; animation-delay: 0.5s; }
.anim-bar.b4 { height: 85%; animation-delay: 0.7s; }

@keyframes barScale {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.anim-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.anim-doc {
  width: 130px;
  height: 120px;
  background: #12131c;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.anim-text-line {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.anim-text-line.t1 { width: 100%; }
.anim-text-line.t2 { width: 90%; }
.anim-text-line.t3 { width: 75%; }
.anim-text-line.t4 { width: 45%; background: var(--pink); opacity: 0.8; }

/* ── MODAL RESPONSIVENESS OVERRIDES ── */
@media (max-width: 768px) {
  #service-modal {
    padding: 2rem 1.25rem;
    width: 95%;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .visual-container {
    min-height: 160px;
  }
  #sm-title {
    font-size: 1.25rem;
  }
  #sm-desc {
    font-size: 0.85rem;
  }
}

/* ── PREMIUM FOOTER (HUD STYLE) ────────────────────────────── */
footer.glass-footer {
  background: rgba(6, 7, 16, 0.92);
  border-top: 1px solid rgba(0,245,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4.5rem 5% 4rem; /* extra bottom pad for HUD bar */
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-motto {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(134, 93, 255, 0.4);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── MOBILE NAVBAR TOGGLE (HAMBURGER) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 600;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

/* Active Hamburger State (Transform to 'X') */
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--cyan);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--cyan);
}

/* ── MOBILE DRAWER OVERLAY ── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 499;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger transition delays for links */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) a { transition-delay: 0.10s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) a { transition-delay: 0.20s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) a { transition-delay: 0.30s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) a { transition-delay: 0.35s; }

.mobile-nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

.mobile-cta {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--purple), var(--electric));
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(134, 93, 255, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.active .mobile-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.mobile-cta:hover {
  box-shadow: 0 5px 25px rgba(0, 245, 255, 0.4);
  transform: scale(1.03);
}

/* ── TABLET & MOBILE RESPONSIVENESS ────────────────────────────────── */
@media (max-width: 1024px) {
  nav.glass-nav {
    left: 2%;
    right: 2%;
    padding: 0.8rem 1.5rem;
  }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.75rem; }
  
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-sub { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  
  .hero-right {
    min-height: 350px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-card-header {
    flex-direction: row;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 4px;
    right: auto;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-brand, .footer-links-wrap, .footer-contact-info {
    align-items: center;
  }
  .footer-motto { margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Disable cursor effects on touchscreen devices */
  #cursor, #cursor-ring, #spotlight {
    display: none !important;
  }
  
  nav.glass-nav {
    top: 0.5rem;
    padding: 0.6rem 1.2rem;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-logo {
    margin: 0;
  }
  
  #hero { padding-top: 7rem; }
  
  .capabilities-tabs {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .stat-number { font-size: 2.4rem; }
}
