/* ==========================================================================
   TECXGEN — TECHNOLOGY • AI • SOFTWARE • DIGITAL SOLUTIONS (2026 EDITION)
   Aesthetic: Midnight Dark / Cybernetic Indigo / Electric Violet / Cyber Cyan
   Strictly Vanilla CSS3 — Zero Frameworks / Zero Dependencies
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
  /* Color Palette: Deep Space Midnight */
  --bg-primary: #05060c;
  --bg-secondary: #0a0c18;
  --bg-tertiary: #101326;
  --bg-card: rgba(14, 18, 38, 0.65);
  --bg-card-hover: rgba(22, 28, 58, 0.85);
  --bg-glass: rgba(10, 13, 28, 0.72);
  --bg-glass-heavy: rgba(6, 8, 18, 0.92);

  /* Accents & Glows */
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.4);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.45);
  --accent-violet: #a855f7;
  --accent-violet-glow: rgba(168, 85, 247, 0.4);
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Linear Gradients */
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --grad-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.25) 50%, rgba(168, 85, 247, 0.25) 100%);
  --grad-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(99, 102, 241, 0.25) 50%, rgba(56, 189, 248, 0.1) 100%);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(99, 102, 241, 0.18);
  --border-focus: rgba(56, 189, 248, 0.6);

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.2);
  --shadow-glow-cyan: 0 0 40px rgba(56, 189, 248, 0.25);

  /* Layout & Geometry */
  --max-width: 1320px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cybernetic Noise Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 100% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 2;
}

/* --- Custom Futuristic Cursor (Desktop Only) --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 9990;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18), inset 0 0 6px rgba(56, 189, 248, 0.08);
  pointer-events: none;
  z-index: 9991;
  opacity: 0;
  will-change: transform, border-color, background-color, box-shadow;
  transition: opacity 0.25s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9992;
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px rgba(99, 102, 241, 0.8);
  opacity: 0;
  will-change: transform;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Hover expansion state for interactive elements */
.cursor-ring.cursor-hover {
  border-color: rgba(56, 189, 248, 0.85);
  background-color: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(1px);
}

.cursor-dot.cursor-hover {
  background-color: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--accent-cyan);
}

/* Active click state */
.cursor-ring.cursor-active {
  border-color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

/* Micro click shockwave ripple */
.cursor-ripple {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  pointer-events: none;
  z-index: 9993;
  transform: translate(-50%, -50%);
  animation: cursorRippleAnim 0.45s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes cursorRippleAnim {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.9;
    border-color: #38bdf8;
    box-shadow: 0 0 15px #38bdf8;
  }
  100% {
    width: 65px;
    height: 65px;
    opacity: 0;
    border-color: #818cf8;
    box-shadow: 0 0 30px rgba(129, 140, 248, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero.custom-cursor-active,
  .hero.custom-cursor-active a,
  .hero.custom-cursor-active button,
  .hero.custom-cursor-active .btn,
  .hero.custom-cursor-active [role="button"],
  .hero.custom-cursor-active .ai-singularity-core {
    cursor: none;
  }
  .cursor-glow.cursor-visible,
  .cursor-ring.cursor-visible,
  .cursor-dot.cursor-visible {
    opacity: 1;
  }
}

/* --- Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-indigo-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-indigo-glow), 0 0 15px var(--accent-cyan-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.tag-badge.pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--trans-base);
  border-bottom: 1px solid transparent;
}

.site-header.nav-scrolled {
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1010;
}

.logo-link img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--trans-base);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger button for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--trans-base), opacity var(--trans-base);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fullscreen Mobile Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-base);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: #ffffff;
}

/* --- Section Formatting --- */
.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

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

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

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

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.hero-headline span.grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  max-width: 650px;
}

.hero-stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-item .stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- Creative AI Hero Banner Animation --- */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
  min-height: 420px;
  margin-top: clamp(-1.5rem, -2vw, -0.5rem);
}

.ai-core-stage {
  position: relative;
  width: clamp(300px, 34vw, 440px);
  height: clamp(300px, 34vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-ambient-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(56, 189, 248, 0.18) 40%, rgba(168, 85, 247, 0.1) 60%, transparent 75%);
  filter: blur(55px);
  border-radius: 50%;
  pointer-events: none;
  animation: ai-glow-breathe 6s ease-in-out infinite alternate;
}

@keyframes ai-glow-breathe {
  0% { transform: scale(0.9); opacity: 0.65; }
  100% { transform: scale(1.18); opacity: 1; }
}

.ai-gyro-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* 3D Rotating Cybernetic Gyro Rings */
.ai-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ai-ring-outer {
  width: 90%;
  height: 90%;
  border: 1px dashed rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  transform: rotateX(68deg) rotateY(15deg);
  animation: gyro-outer-spin 22s linear infinite;
}

.ai-ring-middle {
  width: 74%;
  height: 74%;
  border: 1.5px solid transparent;
  border-top-color: rgba(99, 102, 241, 0.75);
  border-bottom-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  transform: rotateX(55deg) rotateY(-35deg);
  animation: gyro-middle-spin 14s linear infinite reverse;
}

.ai-ring-inner {
  width: 56%;
  height: 56%;
  border: 1px dotted rgba(56, 189, 248, 0.6);
  transform: rotateX(42deg) rotateZ(30deg);
  animation: gyro-inner-spin 10s linear infinite;
}

@keyframes gyro-outer-spin {
  from { transform: rotateX(68deg) rotateY(15deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes gyro-middle-spin {
  from { transform: rotateX(55deg) rotateY(-35deg) rotateZ(0deg); }
  to { transform: rotateX(55deg) rotateY(-35deg) rotateZ(360deg); }
}

@keyframes gyro-inner-spin {
  from { transform: rotateX(42deg) rotateZ(0deg); }
  to { transform: rotateX(42deg) rotateZ(360deg); }
}

/* Central Pulsing AI Singularity Core */
.ai-singularity-core {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: transform var(--trans-fast);
}

.ai-singularity-core:hover {
  transform: scale(1.15);
}

.core-plasma {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #6366f1 45%, #a855f7 80%, #05060c 100%);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.65), 0 0 65px rgba(56, 189, 248, 0.45);
  animation: plasma-pulse 3s ease-in-out infinite alternate;
}

.core-nucleus {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(5, 6, 14, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.ai-core-icon {
  width: 24px;
  height: 24px;
  animation: icon-spin 12s linear infinite;
}

.core-pulse-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
}

.core-pulse-wave.wave-1 {
  animation: core-wave-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.core-pulse-wave.wave-2 {
  animation: core-wave-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 1.5s;
}

@keyframes core-wave-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

@keyframes plasma-pulse {
  0% { transform: scale(0.95); filter: hue-rotate(0deg) brightness(1); }
  100% { transform: scale(1.08); filter: hue-rotate(45deg) brightness(1.25); }
}

@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Orbital Synaptic Nodes */
.ai-synapse-orbit {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  animation: orbit-spin 16s linear infinite;
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.orbit-node.node-1 { top: 0; left: 50%; transform: translate(-50%, -50%); background: #38bdf8; color: #38bdf8; }
.orbit-node.node-2 { top: 50%; right: 0; transform: translate(50%, -50%); background: #6366f1; color: #6366f1; }
.orbit-node.node-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); background: #a855f7; color: #a855f7; }
.orbit-node.node-4 { top: 50%; left: 0; transform: translate(-50%, -50%); background: #38bdf8; color: #38bdf8; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Holographic Telemetry HUD Cards */
.ai-hud-card {
  position: absolute;
  padding: 0.75rem 1.15rem;
  background: rgba(10, 14, 30, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 15;
  pointer-events: auto;
  transition: transform var(--trans-base), border-color var(--trans-base);
}

.ai-hud-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px) scale(1.03);
}

.hud-top-right {
  top: 5%;
  right: -4%;
  animation: hud-float-1 5s ease-in-out infinite alternate;
}

.hud-bottom-left {
  bottom: 8%;
  left: -4%;
  animation: hud-float-2 6s ease-in-out infinite alternate;
}

.ai-hud-pill {
  position: absolute;
  bottom: -4%;
  padding: 0.45rem 1.1rem;
  background: rgba(6, 8, 18, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 15;
  animation: hud-float-3 4.5s ease-in-out infinite alternate;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

.hud-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.hud-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.hud-val {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 2px;
}

@keyframes hud-float-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes hud-float-2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes hud-float-3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* --- Services Matrix (6 Interactive Pillars) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans-base);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: all var(--trans-base);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-indigo-glow);
  transform: scale(1.08);
}

.service-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '→';
  color: var(--accent-cyan);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-top: auto;
  transition: gap var(--trans-fast);
}

.service-link:hover {
  color: #ffffff;
  gap: 0.75rem;
}

/* --- Ecosystem Section (Interactive SVG Visualization) --- */
.ecosystem-section {
  background: radial-gradient(circle at 50% 50%, rgba(14, 18, 42, 0.8) 0%, var(--bg-primary) 70%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.ecosystem-visual-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.ecosystem-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

/* Concentric Radar Orbits (Smooth Dashoffset - Never shifts center!) */
.eco-orbit-inner {
  fill: none;
  stroke: rgba(99, 102, 241, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: orbit-dash-inner 40s linear infinite;
}

.eco-orbit-outer {
  fill: none;
  stroke: rgba(56, 189, 248, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 8 14;
  animation: orbit-dash-outer 50s linear infinite reverse;
}

@keyframes orbit-dash-inner {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 400; }
}

@keyframes orbit-dash-outer {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 500; }
}

/* Static Structural Conduits */
.eco-conduit-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.eco-conduit-line.highlight {
  stroke: var(--accent-cyan);
  stroke-width: 2.5;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

/* Active Flowing Data Pulses */
.eco-pulse-line {
  stroke: url(#eco-line-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 36 194;
  animation: pulse-stream 3.2s ease-in-out infinite;
  opacity: 0.65;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.eco-pulse-line:nth-child(1) { animation-delay: 0s; }
.eco-pulse-line:nth-child(2) { animation-delay: 0.4s; }
.eco-pulse-line:nth-child(3) { animation-delay: 0.8s; }
.eco-pulse-line:nth-child(4) { animation-delay: 1.2s; }
.eco-pulse-line:nth-child(5) { animation-delay: 1.6s; }
.eco-pulse-line:nth-child(6) { animation-delay: 2.0s; }
.eco-pulse-line:nth-child(7) { animation-delay: 2.4s; }
.eco-pulse-line:nth-child(8) { animation-delay: 2.8s; }

@keyframes pulse-stream {
  0% {
    stroke-dashoffset: 230;
    opacity: 0.15;
  }
  25% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.15;
  }
}

.eco-pulse-line.highlight {
  stroke-width: 4;
  opacity: 1;
  filter: drop-shadow(0 0 12px #38bdf8);
}

/* Node Elements (Safe in-place scaling using nested group transform-box) */
.eco-node {
  cursor: pointer;
  outline: none;
  transition: opacity 0.35s ease;
}

.eco-node.dimmed {
  opacity: 0.3;
}

.eco-node-content {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.eco-node:hover .eco-node-content,
.eco-node:focus-visible .eco-node-content,
.eco-node.active .eco-node-content {
  transform: scale(1.18);
}

.eco-node-aura {
  fill: rgba(56, 189, 248, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease, fill 0.3s ease;
  pointer-events: none;
}

.eco-node:hover .eco-node-aura,
.eco-node:focus-visible .eco-node-aura,
.eco-node.active .eco-node-aura {
  opacity: 1;
  fill: rgba(56, 189, 248, 0.18);
  filter: url(#eco-glow);
}

.eco-node-base {
  fill: #0c1024;
  stroke-width: 2;
  transition: stroke-width 0.3s ease, fill 0.3s ease, filter 0.3s ease;
}

.eco-node:hover .eco-node-base,
.eco-node:focus-visible .eco-node-base,
.eco-node.active .eco-node-base {
  fill: #141b3e;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
}

.eco-node-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  fill: #ffffff;
  text-anchor: middle;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.05em;
}

/* Central Core Hub */
.eco-center-core {
  cursor: pointer;
  outline: none;
}

.eco-core-content {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.eco-center-core:hover .eco-core-content,
.eco-center-core:focus-visible .eco-core-content {
  transform: scale(1.06);
}

.eco-core-halo {
  fill: none;
  stroke: rgba(99, 102, 241, 0.4);
  stroke-width: 2;
  animation: core-radar 3.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes core-radar {
  0% {
    r: 64;
    opacity: 0.8;
  }
  100% {
    r: 96;
    opacity: 0;
  }
}

.eco-core-outer {
  fill: #070918;
  stroke: url(#eco-line-grad);
  stroke-width: 3;
  filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.85));
}

.eco-core-inner {
  fill: #0e132e;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.eco-core-pulse-dot {
  fill: var(--accent-cyan);
  opacity: 0.4;
  animation: pulse-dot 2s infinite ease-in-out;
}

.eco-core-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: #ffffff;
  text-anchor: middle;
  user-select: none;
  pointer-events: none;
}

/* Node Info Card Display */
.eco-info-display {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--trans-base);
}

.eco-info-display.active-card {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.2);
}

.eco-active-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
  transition: color var(--trans-fast);
}

.eco-active-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: opacity var(--trans-fast);
}

/* --- Projects Showcase --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--trans-base);
}

.project-card:nth-child(even) {
  grid-template-columns: 1fr 1.15fr;
}

.project-card:nth-child(even) .project-media {
  order: 2;
}

.project-card:nth-child(even) .project-info {
  order: 1;
}

.project-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.project-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #090c1a;
  box-shadow: var(--shadow-lg);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.project-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tech-tag {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* --- About & Editorial --- */
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-editorial h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  color: #ffffff;
}

.about-editorial p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.editorial-quote {
  border-left: 2px solid var(--accent-indigo);
  padding-left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 2rem 0;
}

.stats-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--trans-base);
}

.stat-box:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --- Process Timeline (5-Steps) --- */
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(to right, #38bdf8, #6366f1, #a855f7);
  opacity: 0.3;
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-marker {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: all var(--trans-base);
}

.process-step:hover .step-marker {
  background: var(--grad-primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--accent-indigo-glow);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

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

/* --- AI Dedicated Section --- */
.ai-section {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(20, 14, 44, 0.9) 0%, var(--bg-primary) 75%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.ai-card-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 20, 48, 0.7) 0%, rgba(28, 18, 54, 0.7) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

.ai-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ai-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.ai-text {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Technologies Matrix --- */
.tech-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--trans-base);
}

.tech-group:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-4px);
}

.tech-group-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.tech-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.tech-pill-item:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.tech-pill-item .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

/* --- Contact Section (Strictly No Backend) --- */
.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all var(--trans-base);
}

.channel-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.channel-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.channel-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

/* Smart Client-Side Mailto Generator */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 3rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.contact-form-header {
  margin-bottom: 1.75rem;
}

.contact-form-header h4 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 14, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all var(--trans-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: rgba(14, 20, 42, 0.85);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Toast message for client actions */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--trans-base);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 320px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.status-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

/* --- Responsive Media Queries --- */

/* 4K & Ultra-Wide (2560px+) */
@media (min-width: 2560px) {
  :root {
    --max-width: 1800px;
  }
  html {
    font-size: 19px;
  }
}

/* Standard Desktop (1440px) */
@media (max-width: 1440px) {
  :root {
    --max-width: 1240px;
  }
}

/* Tablet Landscape / Small Desktop (1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-split,
  .about-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-ai-visual {
    margin-top: 1.5rem;
    min-height: 360px;
  }
  .hud-top-right {
    right: 0%;
  }
  .hud-bottom-left {
    left: 0%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-timeline::before {
    display: none;
  }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-card:nth-child(even) .project-media {
    order: 1;
  }
  .project-card:nth-child(even) .project-info {
    order: 2;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-channels {
    grid-template-columns: 1fr;
  }
  .stats-matrix {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (480px & 375px) */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .project-actions .btn {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #hero-canvas {
    display: none;
  }
  .cursor-glow, .cursor-ring, .cursor-dot, .cursor-ripple {
    display: none !important;
  }
}
