/* ==========================================================================
   METIOR DESIGN SYSTEM v3.0 - LUXURY COSMIC & LUMINOUS HYBRID
   Awwwards / Silicon Valley SaaS Grade (Stripe, Linear, Vercel, Supabase standard)
   60-120 FPS Hardware-Accelerated Rendering & Micro-Interactions
   ========================================================================== */

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

/* --------------------------------------------------
 * 1. CSS CUSTOM VARIABLES & COLOR PALETTES
 * -------------------------------------------------- */
:root {
  /* Luminous Light Luxury Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-inner: rgba(241, 245, 249, 0.7);
  
  --text-main: #090d16;
  --text-muted: #334155;
  --text-light: #64748b;
  --text-subtle: #94a3b8;
  
  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-card: rgba(99, 102, 241, 0.14);
  --border-card-hover: rgba(99, 102, 241, 0.4);
  --border-glass: rgba(255, 255, 255, 0.9);

  --accent-primary: #4f46e5;
  --accent-secondary: #0284c7;
  --accent-violet: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #059669;

  --shadow-sm: 0 2px 10px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 36px -12px rgba(79, 70, 229, 0.1), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 50px -15px rgba(79, 70, 229, 0.16), 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.3);
  --shadow-glow-cyan: 0 0 40px -10px rgba(6, 182, 212, 0.35);

  --grid-line-color: rgba(99, 102, 241, 0.05);
  --noise-opacity: 0.025;
  --terminal-bg: #0b0f19;
  --terminal-text: #e2e8f0;
}

/* Deep Cosmic Obsidian Dark Theme (Default Recommended Standard) */
html.dark {
  --bg-primary: #030712;
  --bg-secondary: #080d1a;
  --bg-tertiary: #0f172a;
  --bg-card: rgba(13, 19, 36, 0.72);
  --bg-card-hover: rgba(19, 27, 50, 0.88);
  --bg-card-inner: rgba(8, 13, 26, 0.75);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --text-subtle: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(139, 92, 246, 0.18);
  --border-card-hover: rgba(139, 92, 246, 0.5);
  --border-glass: rgba(255, 255, 255, 0.1);

  --accent-primary: #6366f1;
  --accent-secondary: #38bdf8;
  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-pink: #f43f5e;
  --accent-emerald: #10b981;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px -10px rgba(139, 92, 246, 0.25);
  --shadow-glow: 0 0 60px -10px rgba(99, 102, 241, 0.45);
  --shadow-glow-cyan: 0 0 50px -10px rgba(6, 182, 212, 0.45);

  --grid-line-color: rgba(255, 255, 255, 0.035);
  --noise-opacity: 0.04;
  --terminal-bg: #030712;
  --terminal-text: #f1f5f9;
}

/* --------------------------------------------------
 * 2. BASE RESETS & LUXURY TYPOGRAPHY
 * -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

/* Smooth selection */
::selection {
  background: #6366f1;
  color: #ffffff;
}

/* Luxury Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}
html.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography Helpers */
.font-display {
  font-family: 'Syne', 'Space Grotesk', sans-serif;
}
.font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------
 * 3. LUXURY GRADIENTS & SHIMMER TEXT
 * -------------------------------------------------- */
.gradient-text-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 45%, #0284c7 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.dark .gradient-text-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 45%, #22d3ee 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-vibrant {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.dark .gradient-text-vibrant {
  background: linear-gradient(135deg, #818cf8 0%, #d8b4fe 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-shimmer {
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 25%, #c084fc 50%, #67e8f9 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine-sweep 6s linear infinite;
}

@keyframes shine-sweep {
  to {
    background-position: 200% center;
  }
}

.gradient-badge-light {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
html.dark .gradient-badge-light {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------
 * 4. COSMIC AMBIENT BACKGROUNDS & GRID PATTERNS
 * -------------------------------------------------- */
.bg-luminous-mesh {
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(217, 70, 239, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
  background-size: 100% 100%;
}
html.dark .bg-luminous-mesh {
  background-image: 
    radial-gradient(at 15% 15%, rgba(59, 130, 246, 0.18) 0px, transparent 55%),
    radial-gradient(at 85% 10%, rgba(139, 92, 246, 0.16) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 10% 85%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(99, 102, 241, 0.16) 0px, transparent 55%);
}

.bg-pattern-grid {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
}

.bg-dots-pattern {
  background-image: radial-gradient(var(--grid-line-color) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* --------------------------------------------------
 * 5. BORDER-BEAM & ANIMATED LASER HOSHIYA
 * -------------------------------------------------- */
.border-beam-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.border-beam-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle, 0deg) at 50% 50%, transparent 0%, #6366f1 20%, #22d3ee 40%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: rotate-beam 8s linear infinite;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.border-beam-card:hover::before {
  opacity: 1;
  animation-duration: 4s;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-beam {
  0% {
    --beam-angle: 0deg;
  }
  100% {
    --beam-angle: 360deg;
  }
}

/* --------------------------------------------------
 * 6. GLASSMORPHISM & SPOTLIGHT CARDS
 * -------------------------------------------------- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-spotlight {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  overflow: hidden;
}

.glass-card-spotlight::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.glass-card-spotlight:hover::before {
  opacity: 1;
}

.glass-card-spotlight:hover {
  transform: translateY(-6px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* --------------------------------------------------
 * 7. BENTO GRID ARCHITECTURE STYLES
 * -------------------------------------------------- */
.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg);
}

.bento-inner-panel {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem;
}

/* --------------------------------------------------
 * 8. LIVE ARCHITECTURE PIPELINE STYLES
 * -------------------------------------------------- */
.pipeline-node {
  position: relative;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.pipeline-node.active-pulse {
  border-color: #22d3ee;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
  transform: scale(1.04);
}

.pipeline-beam-line {
  height: 3px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.pipeline-beam-laser {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #22d3ee 50%, #ffffff 100%);
  box-shadow: 0 0 12px #22d3ee;
  border-radius: 999px;
  opacity: 0;
}

.pipeline-beam-laser.fire-pulse {
  animation: laser-dash 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 1;
}

@keyframes laser-dash {
  0% {
    left: -40%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0.2;
  }
}

/* --------------------------------------------------
 * 9. BUTTONS & INTERACTIVE MAGNETICS
 * -------------------------------------------------- */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.btn-primary-vivid {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 50%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 25px -2px rgba(79, 70, 229, 0.4), 0 0 20px -3px rgba(59, 130, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-primary-vivid:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px 0px rgba(124, 58, 237, 0.5), 0 0 30px 2px rgba(59, 130, 246, 0.45);
}
.btn-primary-vivid:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-glass {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.btn-secondary-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--accent-primary);
}

/* Theme Switcher Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}
.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------
 * 10. FORM INPUTS & SELECTORS
 * -------------------------------------------------- */
.input-luminous {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.input-luminous:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 0 25px -5px rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------
 * 11. INTERACTIVE CALCULATOR STYLES
 * -------------------------------------------------- */
.calc-option-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
}
.calc-option-card.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
  box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}
.calc-addon-pill {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
}
.calc-addon-pill.selected {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 18px -3px rgba(79, 70, 229, 0.45);
}

/* Range Slider */
input[type="range"].luminous-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #4f46e5 0%, #06b6d4 100%);
  outline: none;
}
input[type="range"].luminous-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #4f46e5;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(79, 70, 229, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"].luminous-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.9);
}

/* --------------------------------------------------
 * 12. DEMO SHOWCASE & TABS
 * -------------------------------------------------- */
.showcase-tab-btn {
  transition: all 0.25s ease;
  border: 1px solid transparent;
  color: var(--text-light);
}
.showcase-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-primary);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------
 * 13. ACCORDION (FAQ)
 * -------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.accordion-item.open {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-md);
}
.accordion-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.accordion-item.open .accordion-content {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.accordion-item .icon-chevron {
  transition: transform 0.35s ease;
}
.accordion-item.open .icon-chevron {
  transform: rotate(180deg);
}

/* --------------------------------------------------
 * 14. COMPARISON TABLE STYLES
 * -------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-align: left;
}

/* --------------------------------------------------
 * 15. KEYFRAME ANIMATIONS & PULSES
 * -------------------------------------------------- */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
.animate-float-gentle {
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes pulse-halo {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}
.animate-pulse-halo {
  animation: pulse-halo 6s ease-in-out infinite;
}

/* Status Beacon */
@keyframes beacon-light {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.status-beacon-live {
  animation: beacon-light 2s infinite;
}

/* Tech Marquee */
.marquee-wrapper-modern {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-content-modern {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 100%;
  animation: scroll-marquee-fast 28s linear infinite;
}
.marquee-wrapper-modern:hover .marquee-content-modern {
  animation-play-state: paused;
}
@keyframes scroll-marquee-fast {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 1.5rem));
  }
}

.marquee-content-reverse {
  animation: scroll-marquee-reverse 32s linear infinite;
}
@keyframes scroll-marquee-reverse {
  from {
    transform: translateX(calc(-100% - 1.5rem));
  }
  to {
    transform: translateX(0);
  }
}

/* Floating Action Hub */
.floating-hub {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.floating-hub-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
}
.floating-hub-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   15. RETRO TERMINAL & SHATTER MORPH DESIGN SYSTEM
   ========================================================================== */

/* CRT Scanlines and CRT Glow Vignette */
.crt-scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  z-index: 5;
}

.crt-glow-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at center, transparent 60%, rgba(3, 7, 18, 0.9) 100%);
  z-index: 6;
}

/* Blinking Block Cursor */
.animate-blink {
  animation: terminal-blink 0.8s infinite steps(1);
}

@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Terminal Glitch & Shatter Keyframes */
.terminal-glitch-active {
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    filter: drop-shadow(2px 0 0 rgba(34, 211, 238, 0.8)) drop-shadow(-2px 0 0 rgba(236, 72, 153, 0.8));
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
    filter: drop-shadow(-3px 0 0 rgba(34, 211, 238, 0.9)) drop-shadow(3px 0 0 rgba(16, 185, 129, 0.9));
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

/* Shattering Overlay Fade Out */
#terminal-intro-overlay.shatter-disperse {
  transform: scale(1.08);
  opacity: 0;
  filter: blur(12px) contrast(150%);
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism Futuristic UI Component Styles */
.glass-card-futuristic {
  background: rgba(13, 19, 36, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-futuristic:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px 0 rgba(34, 211, 238, 0.25), inset 0 0 20px rgba(139, 92, 246, 0.15);
  transform: translateY(-4px);
}

/* Custom Scrollbar for Terminal Code Stream */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(6, 78, 59, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.8);
}

