/* ============================================
   NEXUS AI — Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-tertiary: #141428;
  --bg-card: rgba(15, 15, 30, 0.6);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a8;
  --text-muted: #555570;
  --accent-cyan: #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-magenta: #d946ef;
  --accent-green: #10b981;
  --gradient-1: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-2: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
  --gradient-3: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  --border-color: rgba(136, 136, 168, 0.12);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --font-primary: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 72px;
  --container-max: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: none;
  color: inherit;
}

img { max-width: 100%; }

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── Skeleton Layout ─── */
.skeleton-layout {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 5%;
}

.skeleton-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.skeleton-nav-links {
  display: flex;
  gap: 24px;
}

.skeleton-bone {
  background: linear-gradient(90deg,
    var(--bg-tertiary) 25%,
    rgba(255,255,255,0.04) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.skeleton-hero-btns {
  display: flex;
  gap: 16px;
}

.skeleton-status {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skeleton-status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-1);
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(3);
  background: var(--accent-magenta);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-elastic), height 0.3s var(--ease-elastic),
              border-color 0.3s ease, opacity 0.3s ease;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(217, 70, 239, 0.6);
}

.cursor-trail {
  position: fixed;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
}

/* --- Background Canvas --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-1);
  transition: width 0.1s linear;
  box-shadow: var(--glow-cyan);
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  gap: 2px;
  z-index: 1001;
}

.logo-bracket {
  color: var(--accent-cyan);
  transition: transform 0.3s var(--ease-elastic);
}

.nav-logo:hover .logo-bracket:first-child {
  transform: translateX(-4px);
}

.nav-logo:hover .logo-bracket:last-child {
  transform: translateX(4px);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

.nav-link-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.4s var(--ease-out-expo);
  box-shadow: var(--glow-cyan);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
  transform-origin: center;
}

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

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

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

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

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-menu.active .mobile-menu-bg {
  opacity: 1;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.mobile-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.3s ease, opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

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

/* --- Section Base --- */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 3rem) clamp(1.5rem, 4vw, 3rem) 4rem;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  box-shadow: var(--glow-cyan);
}

/* --- Hero Section --- */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-green);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  position: relative;
}

.title-line.accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Scramble */
.scramble-char {
  display: inline;
  white-space: pre;
  transition: color 0.15s;
}
.scramble-char.scrambling {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
}


.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.25);
  pointer-events: none;
  animation: btnRipple 0.5s ease-out forwards;
}

@keyframes btnRipple {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

.btn-primary {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover .btn-bg {
  opacity: 0.1;
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.btn-submit {
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(139,92,246,0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-submit:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

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

.btn-text, .btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gradient-1);
  animation: scroll-bounce 2s infinite;
  transform-origin: top;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --- Floating Shapes --- */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 1px solid var(--border-color);
  opacity: 0.3;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 10%;
  border-radius: 12px;
  animation: float-1 12s ease-in-out infinite;
  transform: rotate(45deg);
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 25%;
  right: 15%;
  border-radius: 50%;
  animation: float-2 10s ease-in-out infinite;
  border-color: rgba(139, 92, 246, 0.2);
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation: float-3 14s ease-in-out infinite;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border: none;
  background: rgba(0, 240, 255, 0.05);
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  right: 10%;
  border-radius: 20px;
  animation: float-1 16s ease-in-out infinite reverse;
  border-color: rgba(217, 70, 239, 0.15);
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 5%;
  animation: float-2 8s ease-in-out infinite;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border: none;
  background: rgba(0, 240, 255, 0.08);
}

@keyframes float-1 {
  0%, 100% { transform: rotate(45deg) translateY(var(--parallax-y, 0)); }
  50% { transform: rotate(55deg) translateY(calc(-30px + var(--parallax-y, 0))); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(var(--parallax-y, 0)) scale(1); }
  50% { transform: translateY(calc(-20px + var(--parallax-y, 0))) scale(1.1); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(var(--parallax-y, 0)) rotate(0deg); }
  50% { transform: translateY(calc(-25px + var(--parallax-y, 0))) rotate(10deg); }
}

/* ─── Matrix Rain (Konami Easter Egg) ─── */
.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

/* ─── Click & Hold Burst ─── */
.hold-indicator {
  position: fixed;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  pointer-events: none;
  z-index: 9999;
  animation: holdRing 0.8s ease-out forwards;
}

@keyframes holdRing {
  from { transform: scale(0); opacity: 0.8; }
  to { transform: scale(1); opacity: 0; }
}

.hold-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Page Transition ─── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.active {
  transform: scaleY(1);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.2rem !important;
  color: var(--text-primary) !important;
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: var(--glow-cyan);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Marquee --- */
.marquee-container {
  margin-top: 5rem;
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.marquee span {
  flex-shrink: 0;
}

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

/* --- Technology Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tech-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

.tech-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease;
  height: 100%;
}

.tech-card:hover .tech-card-inner {
  border-color: rgba(0, 240, 255, 0.25);
}

.tech-card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tech-card:hover .tech-card-glow {
  opacity: 1;
}

.tech-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tech-card-icon {
  position: relative;
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  animation: icon-pulse 3s ease-in-out infinite;
}

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

.tech-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-card:hover .tag {
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--text-secondary);
}

/* --- Terminal --- */
.terminal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

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

.terminal-body {
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.8;
}

.terminal-line {
  opacity: 0;
  transform: translateX(-10px);
}

.terminal-line.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prompt {
  color: var(--accent-cyan);
}

.cmd {
  color: var(--text-primary);
}

.output {
  color: var(--text-muted);
}

.output.success {
  color: var(--accent-green);
}

.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.typing-effect {
  animation: blink 0.8s step-end infinite;
}

/* --- Projects Section --- */
.project-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: rgba(0, 240, 255, 0.3);
}

.filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsla(var(--hue), 80%, 50%, 0.2),
    hsla(calc(var(--hue) + 60), 80%, 50%, 0.1)
  );
  transition: transform 0.6s var(--ease-out-expo);
}

.project-image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.project-card:hover .project-image-bg {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-view {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out-expo);
}

.project-card:hover .project-view {
  transform: translateY(0);
}

.project-info {
  padding: 1.25rem;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.project-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Lab Section --- */
.lab-description {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.lab-description p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lab-experiment {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.lab-experiment:hover {
  border-color: rgba(0, 240, 255, 0.2);
}

.lab-experiment h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.lab-experiment canvas {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: block;
  margin-bottom: 1rem;
}

.lab-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lab-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.lab-btn:hover, .lab-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.lab-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.lab-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  min-width: 60px;
}

.lab-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-cyan);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  z-index: 1;
}

.form-group:has(.custom-select.open) {
  z-index: 100;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
  outline: none;
}

.custom-select-value {
  flex: 1;
}

.custom-select-value[data-placeholder="true"] {
  color: transparent;
}

.custom-select-arrow {
  color: var(--accent-cyan);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  align-items: center;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scaleY(0.96);
  transform-origin: top center;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo), visibility 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.05);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
}

.custom-select-option {
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.3s var(--ease-out-expo);
  overflow: hidden;
}

.custom-select-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gradient-1);
  transition: width 0.3s var(--ease-out-expo);
}

.custom-select-option:hover {
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.06);
  padding-left: 1.6rem;
}

.custom-select-option:hover::before {
  width: 3px;
}

.custom-select-option.selected {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.custom-select-option + .custom-select-option {
  border-top: 1px solid rgba(136, 136, 168, 0.06);
}

/* Staggered entry animation for options */
.custom-select.open .custom-select-option {
  animation: optionSlideIn 0.3s var(--ease-out-expo) backwards;
}
.custom-select.open .custom-select-option:nth-child(1) { animation-delay: 0.03s; }
.custom-select.open .custom-select-option:nth-child(2) { animation-delay: 0.06s; }
.custom-select.open .custom-select-option:nth-child(3) { animation-delay: 0.09s; }
.custom-select.open .custom-select-option:nth-child(4) { animation-delay: 0.12s; }

@keyframes optionSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Label float when value is selected */
.custom-select.has-value ~ label {
  top: -0.5rem;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

/* Focus state */
.custom-select-trigger:focus ~ .input-line,
.custom-select.open ~ .input-line {
  width: 100%;
}

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

.form-group label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group .custom-select.has-value ~ label {
  top: -0.5rem;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
  width: 100%;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.btn-loading, .btn-success {
  display: none;
  position: relative;
  z-index: 1;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon { display: none; }
.btn-submit.loading .btn-loading { display: flex; }

.btn-submit.success .btn-text,
.btn-submit.success .btn-icon { display: none; }
.btn-submit.success .btn-loading { display: none; }
.btn-submit.success .btn-success {
  display: block;
  color: var(--accent-green);
}

.btn-error {
  display: none;
  position: relative;
  z-index: 1;
}

.btn-submit.error .btn-text,
.btn-submit.error .btn-icon { display: none; }
.btn-submit.error .btn-loading { display: none; }
.btn-submit.error .btn-error {
  display: block;
  color: #ef4444;
}

/* Form status toast */
.form-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.form-status.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.form-status-icon {
  font-size: 1rem;
  line-height: 1;
}

.form-status.success .form-status-icon::before { content: '✓'; }
.form-status.error .form-status-icon::before { content: '✗'; }

/* Input error shake */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.form-group.shake {
  animation: inputShake 0.4s ease;
}

.form-group.field-error input,
.form-group.field-error textarea {
  border-bottom-color: #ef4444;
}

.form-group.field-error .custom-select-trigger {
  border-bottom-color: #ef4444;
}

.form-group.field-error .input-line {
  width: 100%;
  background: #ef4444;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- Footer --- */
#footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo-bracket,
.footer-brand .logo-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

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

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

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.lab-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

.reaction-box {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  border: 1px solid var(--border-color);
}

.reaction-box.waiting {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.4);
}

.reaction-box.go {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

.reaction-box.result {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.reaction-box.too-early {
  background: rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.4);
}

.reaction-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reaction-message {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reaction-time {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reaction-scores {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.lab-color-btn {
  position: relative;
  padding-left: 1.5rem !important;
}

.lab-color-btn::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btn-color);
  box-shadow: 0 0 6px var(--btn-color);
}

.lab-color-btn.active {
  border-color: var(--btn-color) !important;
  color: var(--btn-color) !important;
}

/* --- Testimonials Section --- */
.testimonials-subtitle {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.testimonials-columns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  max-height: 740px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.testimonials-column {
  flex: 1;
  max-width: 340px;
  overflow: hidden;
}

.testimonials-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  animation: testimonials-scroll-up var(--scroll-duration, 15s) linear infinite;
}

@keyframes testimonials-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.testimonial-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.3;
}

/* Hide 3rd column on tablet, 2nd+3rd on mobile */
@media (max-width: 1024px) {
  .testimonials-column:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonials-column:nth-child(2) {
    display: none;
  }

  .testimonials-columns {
    max-height: 600px;
  }

  .testimonials-column {
    max-width: 100%;
  }
}

/* --- Pricing Section --- */
.pricing-subtitle {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
}

.pricing-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured .pricing-card-inner {
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  z-index: 2;
  text-transform: uppercase;
}

.pricing-tier-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-tier-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.pricing-value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: block;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.pricing-cta:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.pricing-cta.featured {
  background: var(--gradient-1);
  border-color: transparent;
  color: var(--bg-primary);
}

.pricing-cta.featured:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  color: var(--bg-primary);
}

.pricing-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-card:hover .pricing-card-glow {
  opacity: 1;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:last-child {
    grid-column: span 2;
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card:last-child {
    grid-column: span 1;
    max-width: none;
  }
}

/* --- Reveal Animations --- */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  body {
    cursor: auto;
  }

  .cursor-dot, .cursor-ring, .cursor-trail {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem;
  }

  .lab-controls {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Touch Ripple --- */
.touch-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  animation: touch-ripple-expand 0.7s ease-out forwards;
}

@keyframes touch-ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}

/* Touch-friendly active states */
@media (max-width: 768px) {
  .tech-card:active .tech-card-inner,
  .project-card:active,
  .about-card:active {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  }

  .btn:active {
    box-shadow: var(--glow-cyan);
  }

  /* Swipeable project grid on mobile */
  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .projects-grid .project-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  /* Scroll hint indicator dots */
  .projects-grid::after {
    content: '';
    flex: 0 0 1px;
  }

  /* Make lab experiment canvases taller for touch */
  .lab-experiment canvas {
    height: 250px;
    touch-action: none;
  }

  /* Larger touch targets for lab controls */
  .lab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .lab-slider input[type="range"] {
    height: 6px;
  }

  .lab-slider input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }

  /* Filter buttons easier to tap */
  .filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   NEW SECTIONS & FEATURES
   ============================================ */

/* --- Light Mode Variables --- */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8f0;
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a8;
  --accent-cyan: #0088aa;
  --accent-purple: #7c3aed;
  --accent-magenta: #c026d3;
  --accent-green: #059669;
  --border-color: rgba(0, 0, 0, 0.08);
  --glow-cyan: 0 0 20px rgba(0, 136, 170, 0.15);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] body {
  background: var(--bg-primary);
}

[data-theme="light"] #bg-canvas {
  opacity: 0.3;
}

[data-theme="light"] .skeleton-bone {
  background: linear-gradient(90deg, #e0e0e5 25%, #f0f0f5 50%, #e0e0e5 75%);
  background-size: 200% 100%;
}

[data-theme="light"] .terminal-window {
  background: #1a1a2e;
  color: #e8e8f0;
}

[data-theme="light"] .terminal-window .terminal-body,
[data-theme="light"] .terminal-window .terminal-header {
  color: #e8e8f0;
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-icon-moon { display: block; }
.theme-icon-sun { display: none; }

[data-theme="light"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }

/* --- Process Section --- */
.process-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-track {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.process-progress-line {
  width: 100%;
  height: 0%;
  background: var(--gradient-1);
  transition: height 0.3s ease;
  border-radius: 1px;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 58px;
}

.process-step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.process-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out-expo);
}

.process-step.active .process-step-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.process-step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  flex: 1;
  transition: all 0.4s var(--ease-out-expo);
}

.process-step-content:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateX(4px);
}

.process-step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.process-step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan);
}

.process-step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Industries / Who This Is For --- */
.industries-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
}

.industry-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.industry-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  margin-bottom: 1.25rem;
}

.industry-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
}

.industry-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Results / Metrics --- */
.results-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.result-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
}

.result-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.result-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.result-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(0, 240, 255, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out-expo), color 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.4s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Blog / Insights Section --- */
.blog-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.blog-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg,
    hsl(var(--hue, 180), 60%, 15%),
    hsl(calc(var(--hue, 180) + 40), 60%, 10%)
  );
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-read-more {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.blog-card:hover .blog-read-more {
  transform: translateX(4px);
}

/* --- Scroll to Top --- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
}

/* --- Cookie Notice --- */
.cookie-notice {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 9998;
  max-width: 550px;
  width: calc(100% - 2rem);
  backdrop-filter: blur(16px);
  transition: transform 0.6s var(--ease-out-expo);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-notice.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-notice p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.cookie-accept {
  padding: 8px 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  color: var(--accent-cyan);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cookie-accept:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* --- FLIP Animation for Project Filters --- */
.project-card {
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

.project-card.hiding {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.project-card.showing {
  animation: flipIn 0.5s var(--ease-out-expo) forwards;
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Micro-Animations for Icons --- */
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.process-step-icon svg,
.industry-icon svg {
  animation: icon-float 3s ease-in-out infinite;
  animation-play-state: paused;
}

.process-step:hover .process-step-icon svg,
.industry-card:hover .industry-icon svg {
  animation-play-state: running;
}

/* Icon draw-in effect */
@keyframes icon-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.process-step-icon svg path,
.process-step-icon svg polyline,
.process-step-icon svg rect,
.process-step-icon svg circle,
.process-step-icon svg line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.process-step.in-view .process-step-icon svg path,
.process-step.in-view .process-step-icon svg polyline,
.process-step.in-view .process-step-icon svg rect,
.process-step.in-view .process-step-icon svg circle,
.process-step.in-view .process-step-icon svg line {
  animation: icon-draw 1s var(--ease-out-expo) forwards;
}

/* --- Skip to Main Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10001;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* --- Focus Visible for Keyboard Navigation --- */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE — NEW SECTIONS
   ============================================ */

@media (max-width: 768px) {
  .process-track {
    left: 18px;
  }

  .process-step-marker {
    width: 38px;
  }

  .process-step {
    gap: 1.25rem;
  }

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

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

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

  .cookie-notice {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .theme-toggle {
    display: none;
  }
}

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

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shapes { display: none; }
  .marquee { animation: none; }

  .process-step-icon svg path,
  .process-step-icon svg polyline,
  .process-step-icon svg rect,
  .process-step-icon svg circle,
  .process-step-icon svg line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
