/* ==========================================================================
   VishvaX Design System & Core Stylesheet
   Modern, Technology-First, High-Performance Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-space: #020408;
  --bg-obsidian: #03060c;
  --bg-navy: #050914;
  --bg-surface: #080e1e;
  --bg-card: #0b1326;
  --bg-card-hover: #0e1a33;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-subtle-hover: rgba(0, 240, 255, 0.35);
  --border-card: rgba(255, 255, 255, 0.07);
  
  --brand-cyan: #00f0ff;
  --brand-cyan-glow: rgba(0, 240, 255, 0.15);
  --brand-blue: #2563eb;
  --brand-purple: #8b5cf6;
  --brand-violet: #7c3aed;
  --brand-magenta: #d946ef;
  --brand-orange: #f97316;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: #152238;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1f3254;
}

/* Ambient Background Canvas & Glows */
.ambient-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
}

.blob-cyan {
  width: 600px;
  height: 600px;
  background: var(--brand-cyan);
  top: -100px;
  left: 20%;
}

.blob-purple {
  width: 650px;
  height: 650px;
  background: var(--brand-purple);
  top: 30%;
  right: -100px;
}

.blob-orange {
  width: 550px;
  height: 550px;
  background: var(--brand-orange);
  bottom: 10%;
  left: 10%;
}

/* Subtle Matrix Grid */
.subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

.font-mono {
  font-family: var(--font-mono);
}

/* VishvaX Brand Logo & Lockup */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.brand-logo-link:hover {
  opacity: 0.92;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #02050b;
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.brand-logo-link:hover .brand-emblem {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: scale(1.04);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.brand-wordmark .accent-x {
  background: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-cyan);
  margin-left: 3px;
  display: inline-block;
}

/* Gradient Texts & Accents */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #00f0ff 85%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-bar {
  height: 2px;
  background: linear-gradient(90deg, #00f0ff 0%, #2563eb 35%, #8b5cf6 70%, #f97316 100%);
  border-radius: var(--radius-full);
}

/* Header & Navigation */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

#main-header.scrolled {
  background: rgba(2, 4, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 14, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.5rem 1.25rem;
  transition: all var(--transition-normal);
}

#main-header.scrolled .nav-shell {
  background: transparent;
  border-color: transparent;
  padding: 0.25rem 0;
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-item {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: var(--brand-cyan);
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--brand-cyan);
}

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

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #2563eb 50%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(11, 19, 38, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
  background: var(--bg-card-hover);
}

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

.btn-ghost:hover {
  color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 0.45rem 0.875rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
}

/* Sound FX Toggle Button */
.sound-toggle-btn {
  background: rgba(11, 19, 38, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  color: var(--brand-cyan);
  border-color: rgba(0, 240, 255, 0.3);
}

.sound-toggle-btn.active {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
}

/* Mobile Menu Button & Drawer */
.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(11, 19, 38, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(2, 4, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 45;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--brand-cyan);
}

/* ==========================================================================
   Continuous Horizontal Scrolling Marquee
   ========================================================================== */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 34s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track.reverse {
  animation: marqueeScrollReverse 38s linear infinite;
}

.marquee-track.reverse:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  background: rgba(11, 19, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all var(--transition-normal);
  user-select: none;
}

.marquee-item:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(14, 26, 51, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.marquee-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

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

/* ==========================================================================
   Comprehensive Services Grid
   ========================================================================== */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--brand-cyan)), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.08);
}

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

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* ==========================================================================
   Product Development Lifecycle
   ========================================================================== */
.lifecycle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lifecycle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lifecycle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.lifecycle-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.lifecycle-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.lifecycle-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-cyan);
  opacity: 0.9;
}

.lifecycle-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.lifecycle-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.lifecycle-text {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.lifecycle-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.lifecycle-deliverables li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lifecycle-deliverables li::before {
  content: '→';
  color: var(--brand-cyan);
}

/* Card System & Common Containers */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 240, 255, 0.08);
}

.card-subtle {
  background: rgba(11, 19, 38, 0.5);
  border: 1px solid var(--border-subtle);
}

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

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brand-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--brand-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: var(--brand-cyan);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  background: rgba(8, 14, 30, 0.95);
}

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

.form-error-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  pointer-events: none;
}

.toast {
  background: rgba(8, 14, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 380px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  max-width: 650px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Section Spacing */
.page-hero {
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.page-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .page-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Accessibility & Reduced Motion */
@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;
  }
  .marquee-track {
    animation: none !important;
  }
}
