/* ==========================================================================
   JAVOHIRBEK ABDULLAYEV — PRINCIPAL SYSTEMS ARCHITECT
   ULTRA-LUXURY EXECUTIVE DESIGN SYSTEM
   Palette: Cosmic Obsidian • Liquid Titanium • Champagne Gold • Frosted Sapphire
   Quality Standard: Top 1% Luxury Executive (Linear / Apple Spatial Class)
   ========================================================================== */

/* --- LUXURY ROOT TOKENS --- */
:root {
  /* Deep Obsidian Backgrounds */
  --bg-deep: #030508;
  --bg-space: #060911;
  --bg-surface: rgba(10, 14, 26, 0.7);
  
  /* Text & Metals */
  --text-pure: #FFFFFF;
  --text-platinum: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Refined Luxury Accents */
  --gold-primary: #D4AF37;
  --gold-light: #F6E05E;
  --gold-glow: rgba(212, 175, 55, 0.2);
  --platinum-glow: rgba(241, 245, 249, 0.15);
  
  --sapphire: #38BDF8;
  --sapphire-glow: rgba(56, 189, 248, 0.2);
  --cobalt: #6366F1;
  --cobalt-glow: rgba(99, 102, 241, 0.18);
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --amethyst: #A855F7;

  /* Frosted Glassmorphic Layers */
  --glass-bg: rgba(255, 255, 255, 0.022);
  --glass-bg-elevated: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.065);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(212, 175, 55, 0.35);
  --glass-border-gold: rgba(212, 175, 55, 0.25);
  --glass-blur: 28px;
  --glass-blur-heavy: 40px;
  
  /* Shadows & Depth */
  --shadow-luxury: 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  --shadow-luxury-hover: 0 30px 70px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 0 30px rgba(212, 175, 55, 0.12);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & FOUNDATION --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent !important;
}

a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

html {
  background-color: var(--bg-deep);
  color: var(--text-platinum);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #00f2fe rgba(5, 8, 18, 0.9);
}

/* ========================================================
   LENIS MODERN SMOOTH MOMENTUM SCROLL ENGINE RULES
   ======================================================== */
html.lenis, html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

html.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ========================================================
   BESPOKE CYBER-GLASS NEON SCROLLBAR (Top 1% Precision)
   ======================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f2fe 0%, #38bdf8 30%, #818cf8 65%, #c084fc 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #00f2fe 45%, #ec4899 100%);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.9), inset 0 0 6px rgba(255, 255, 255, 0.7);
}

::-webkit-scrollbar-corner {
  background: rgba(4, 7, 15, 0.95);
}

/* Internal Components Scrollbars (Modal, Terminal, Code) */
.modal-body-scroll::-webkit-scrollbar,
.term-screen::-webkit-scrollbar,
pre::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.modal-body-scroll::-webkit-scrollbar-thumb,
.term-screen::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover,
.term-screen::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.85);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: #020408;
  background-image: radial-gradient(circle at 50% 10%, rgba(15, 23, 42, 0.4) 0%, #020408 80%);
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* --- AMBIENT LUXURY ATMOSPHERE --- */
.spatial-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.glass-noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 25%, transparent 35%, rgba(3, 5, 8, 0.5) 70%, rgba(3, 5, 8, 0.95) 100%);
  background-size: 32px 32px, 100% 100%;
  background-position: 0 0, center center;
  z-index: 1;
  pointer-events: none;
}

/* Dynamic Interactive Spotlight Beam (Tracks Mouse Coordinates) */
.arch-spotlight-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.06), transparent 75%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.2s ease;
}

/* --- PRECISION ARCHITECTURAL CURSOR (DESKTOP) --- */
.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15), inset 0 0 8px rgba(56, 189, 248, 0.08);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
  will-change: transform, width, height;
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: rgba(56, 189, 248, 0.85);
  background-color: rgba(56, 189, 248, 0.06);
  backdrop-filter: blur(1px);
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF, 0 0 16px rgba(56, 189, 248, 0.9);
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (max-width: 1024px) {
  .cursor-ring, .cursor-dot, .arch-spotlight-layer { display: none; }
}

/* --- SCROLL PROGRESS HUD --- */
.scroll-progress-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #818cf8, #c084fc, #ec4899);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.65), 0 0 20px rgba(129, 140, 248, 0.45);
  position: relative;
  transition: width 0.04s linear;
}

.scroll-progress-glow {
  position: absolute;
  right: 0;
  top: -3px;
  width: 12px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #00f2fe, 0 0 20px #38bdf8, 0 0 30px #ffffff;
  transform: translateX(50%);
}

/* ========================================================
   VERTICAL SPATIAL SCROLL COMPASS RAIL (Desktop)
   ======================================================== */
.spatial-scroll-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 10px;
  background: rgba(6, 10, 22, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

@media (max-width: 1200px) {
  .spatial-scroll-rail {
    display: none !important;
  }
}

.rail-line-track {
  position: absolute;
  top: 26px;
  bottom: 48px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: 1;
}

.rail-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #00f2fe, #38bdf8, #818cf8);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
  border-radius: 2px;
  transition: height 0.08s linear;
}

.rail-dots-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.rail-dot-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-dot {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.rail-dot .dot-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-dot .dot-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-dot:hover .dot-core {
  background: #00f2fe;
  transform: scale(1.4);
  box-shadow: 0 0 10px #00f2fe;
}

.rail-dot-item.active .rail-dot .dot-core {
  background: #00f2fe;
  transform: scale(1.6);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.9), 0 0 20px rgba(56, 189, 248, 0.6);
}

.rail-dot-item.active .rail-dot .dot-pulse {
  border-color: rgba(0, 242, 254, 0.65);
  animation: railPulse 2.2s infinite ease-out;
}

@keyframes railPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Tooltip on hover */
.rail-dot-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 32px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #00f2fe;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 5px 11px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rail-dot-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.rail-telemetry-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.rail-telemetry-badge .badge-idx {
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
}

/* --- FRAMELESS FLOATING DOCK --- */
.floating-dock-container {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 20px;
  pointer-events: none;
}

.glass-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  box-shadow: var(--shadow-luxury);
  transition: all 0.3s var(--ease-smooth);
}

.glass-dock:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-luxury-hover);
}

.dock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  transition: transform 0.3s var(--ease-spring);
}

.dock-logo:hover .logo-symbol {
  transform: scale(1.08);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

.accent-dot {
  color: var(--gold-primary);
}

.dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.dock-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dock-link {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dock-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

.dock-link.active {
  color: #FFFFFF;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--glass-border-gold);
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-icon-btn, .dock-lang-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dock-icon-btn:hover, .dock-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.dock-icon-btn.active {
  color: var(--gold-primary);
  border-color: var(--glass-border-gold);
}

.dock-svg {
  width: 15px;
  height: 15px;
}

.dock-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border-gold);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transition: all 0.25s var(--ease-spring);
}

.dock-cta-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(255, 255, 255, 0.15));
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-platinum);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Mobile Drawer */
.mobile-drawer-glass {
  display: none;
  pointer-events: auto;
  position: absolute;
  top: 60px;
  width: calc(100% - 40px);
  max-width: 380px;
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid var(--glass-border-gold);
  border-radius: 20px;
  padding: 20px;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-luxury-hover);
}

.mobile-drawer-glass.open {
  display: flex;
}

.mobile-drawer-link {
  color: var(--text-platinum);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mobile-drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-socials {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-pill {
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
  border: 1px solid var(--glass-border-gold);
}

/* --- FRAMELESS MAIN VIEWPORT & SECTIONS --- */
.frameless-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.spatial-section {
  padding: 120px 0 80px 0;
  position: relative;
  overflow-x: clip;
}

/* Section Header Block */
.section-header-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--glass-border-gold);
  border-radius: 9999px;
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge-svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-spatial-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

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

.glass-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border-gold);
  border-radius: 9999px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.03em;
}

.hero-display-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-sub {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.title-main {
  display: block;
}

.gradient-shimmer {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 45%, var(--gold-light) 80%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-paragraph {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Premium Button Styling */
.btn-glass-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border-gold);
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
}

.btn-glass-primary:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
}

.btn-glass-reflection {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: rotate(35deg) translateX(-100%);
  transition: transform 0.7s ease;
}

.btn-glass-primary:hover .btn-glass-reflection {
  transform: rotate(35deg) translateX(100%);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-platinum);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-glass-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-platinum);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-glass-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Metrics Strip */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 26px;
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-luxury);
  flex-wrap: wrap;
}

.glass-metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.metric-suffix {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

.metric-separator {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* --- 3D INTERACTIVE HERO CARD --- */
.hero-spatial-interactive {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.spatial-glass-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-luxury), 0 0 50px rgba(212, 175, 55, 0.08);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease-spring), border-color 0.3s ease;
}

.card-glass-specular {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.card-title-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.tag-svg {
  width: 12px;
  height: 12px;
  color: var(--gold-primary);
}

.badge-status-live {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-holo-visual {
  position: relative;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 16px 0;
}

.holo-core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  animation: rotateRing 20s linear infinite;
}

.ring-1 {
  width: 78px;
  height: 78px;
  border-top: 1.5px solid var(--gold-primary);
  border-right: 1px solid rgba(56, 189, 248, 0.4);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.holo-avatar-center {
  z-index: 3;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
  transition: transform 0.3s var(--ease-spring);
}

.holo-avatar-center:hover {
  transform: scale(1.05);
}

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

.card-telemetry-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.telem-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telem-key {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.telem-val {
  color: var(--text-platinum);
  font-weight: 500;
}

.highlight-cyan { color: var(--gold-primary); }
.highlight-violet { color: var(--sapphire); }
.highlight-green { color: var(--emerald); }

.card-bottom-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
}

/* Scroll Cue */
.spatial-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.spatial-scroll-cue:hover {
  opacity: 1;
}

.cue-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 3px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* --- SKILLS FRAMELESS GRID --- */
.skills-frameless-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.glass-skill-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.glass-skill-card:hover {
  border-color: var(--glass-border-gold);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-luxury-hover);
}

.skill-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glass-skill-card:hover .skill-card-glow {
  opacity: 0.4;
}

.orb-violet-glow { background: var(--gold-primary); }
.orb-cyan-glow { background: var(--sapphire); }
.orb-emerald-glow { background: var(--emerald); }
.orb-pink-glow { background: var(--cobalt); }
.orb-amber-glow { background: var(--gold-light); }
.orb-blue-glow { background: #38BDF8; }

.skill-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-icon-box svg {
  width: 26px;
  height: 26px;
}

.bg-violet { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); border: 1px solid var(--glass-border-gold); }
.bg-cyan { background: rgba(56, 189, 248, 0.1); color: #7DD3FC; border: 1px solid rgba(56, 189, 248, 0.25); }
.bg-emerald { background: rgba(16, 185, 129, 0.1); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.25); }
.bg-pink { background: rgba(99, 102, 241, 0.1); color: #A5B4FC; border: 1px solid rgba(99, 102, 241, 0.25); }
.bg-amber { background: rgba(246, 224, 94, 0.1); color: #FEFCBF; border: 1px solid rgba(246, 224, 94, 0.25); }
.bg-blue { background: rgba(59, 130, 246, 0.1); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.25); }

.skill-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.skill-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}

/* --- FLAGSHIP PROJECTS SECTION --- */
.project-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
  border-color: var(--glass-border-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.projects-frameless-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.glass-project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.glass-project-card:hover {
  border-color: var(--glass-border-gold);
  box-shadow: var(--shadow-luxury-hover);
}

.project-card-image-wrap {
  position: relative;
  height: 190px;
  background: #080C16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-gold);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.mockup-header-strip {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.strip-domain {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.project-preview-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Real Site Screenshot Thumbnail Container */
.project-real-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040711;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-spring), filter 0.3s ease;
  filter: brightness(0.9) contrast(1.05);
}

.glass-project-card:hover .real-thumb-img {
  transform: scale(1.06);
  filter: brightness(1.03) contrast(1.08);
}

.real-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.7) 0%, rgba(6, 9, 17, 0.1) 40%, rgba(6, 9, 17, 0.9) 100%);
  pointer-events: none;
  z-index: 2;
}

.real-thumb-logo-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--glass-border-gold);
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.glass-project-card:hover .real-thumb-logo-badge {
  transform: scale(1.12) rotate(2deg);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.real-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Subtle Titanium & Midnight gradients */
.bg-gradient-chatgpt { background: radial-gradient(circle at center, #111827 0%, #060911 100%); }
.bg-gradient-korean { background: radial-gradient(circle at center, #1E1B4B 0%, #060911 100%); }
.bg-gradient-vortex { background: radial-gradient(circle at center, #0F2937 0%, #060911 100%); }
.bg-gradient-crypto { background: radial-gradient(circle at center, #06372B 0%, #060911 100%); }
.bg-gradient-help { background: radial-gradient(circle at center, #0C4A6E 0%, #060911 100%); }
.bg-gradient-safora { background: radial-gradient(circle at center, #064E3B 0%, #060911 100%); }
.bg-gradient-koreastiliga { background: radial-gradient(circle at center, #3B0764 0%, #060911 100%); }
.bg-gradient-kitobchi { background: radial-gradient(circle at center, #451A03 0%, #060911 100%); }
.bg-gradient-nexus { background: radial-gradient(circle at center, #2E1065 0%, #060911 100%); }
.bg-gradient-downloader { background: radial-gradient(circle at center, #311342 0%, #060911 100%); }
.bg-gradient-ai { background: radial-gradient(circle at center, #062B28 0%, #060911 100%); }

.art-symbol-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.glass-project-card:hover .art-symbol-box {
  transform: scale(1.08);
}

.art-symbol-box svg {
  width: 34px;
  height: 34px;
}

.modal-preview-wrap {
  width: 100%;
  max-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
}

.modal-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.p-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-project-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.btn-project-link svg {
  width: 16px;
  height: 16px;
}

.btn-project-modal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-platinum);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-project-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-gold);
  color: #FFFFFF;
}

/* --- ARCHITECTURE FLOW DIAGRAM --- */
.glass-architecture-canvas {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-luxury);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.arch-layer-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.arch-layer-card.active-flow {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--glass-border-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.arch-layer-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.layer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.layer-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

.layer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.layer-content h4 {
  font-size: 0.95rem;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.layer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.layer-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-accent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.arch-connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  transform: rotate(-90deg);
}

.arch-connector-arrow svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .glass-architecture-canvas {
    flex-direction: column;
  }
  .arch-connector-arrow {
    transform: rotate(0deg);
    padding: 10px 0;
  }
}

/* --- INTERACTIVE GLASS TERMINAL --- */
.glass-terminal-wrapper {
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury), 0 0 60px rgba(212, 175, 55, 0.06);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.term-dot.red { background: #EF4444; }
.term-dot.yellow { background: #F59E0B; }
.term-dot.green { background: #10B981; }

.terminal-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tab-icon svg {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
}

.terminal-actions {
  display: flex;
  gap: 8px;
}

.term-action-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.term-action-btn:hover {
  color: #FFFFFF;
}

.term-action-btn svg {
  width: 16px;
  height: 16px;
}

.terminal-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.pill-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.quick-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--gold-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-cmd:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--glass-border-gold);
  color: #FFFFFF;
}

.terminal-screen {
  padding: 24px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-line {
  color: #E2E8F0;
  word-break: break-word;
}

.term-line.success { color: #10B981; }
.term-line.muted { color: var(--text-dim); }
.term-line.error { color: #EF4444; }
.term-line.command-echo { color: var(--gold-primary); font-weight: 600; }

.ascii-art {
  color: var(--gold-primary);
  font-size: clamp(0.42rem, 0.9vw, 0.72rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 8px;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.prompt-user { color: var(--gold-primary); font-weight: 600; }
.prompt-separator { color: var(--text-dim); }
.prompt-path { color: var(--sapphire); }
.prompt-symbol { color: #FFFFFF; }

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}

.term-cursor {
  width: 8px;
  height: 16px;
  background: var(--gold-primary);
  animation: blinkCursor 1s infinite;
}

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

.term-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

.term-send-btn:hover {
  background: var(--gold-primary);
  color: #020408;
  transform: scale(1.05);
}

.term-send-btn svg {
  width: 16px;
  height: 16px;
}

/* --- CONTACT & DIRECT CONNECT --- */
.contact-spatial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.glass-connect-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-luxury);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

@media (hover: hover) {
  .glass-connect-card:hover {
    border-color: var(--glass-border-gold);
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury-hover);
  }
}

.glass-connect-card:active {
  transform: scale(0.98);
  border-color: var(--glass-border-gold);
}

.connect-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.15;
}

.connect-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect-icon-circle svg {
  width: 28px;
  height: 28px;
}

.connect-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.connect-channel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
}

.connect-handle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2px 0 4px 0;
}

.connect-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.connect-arrow {
  color: var(--gold-primary);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) {
  .glass-connect-card:hover .connect-arrow {
    opacity: 1;
    transform: translateX(4px);
  }
}

.connect-arrow svg {
  width: 22px;
  height: 22px;
}

/* Glass Message Box */
.glass-message-box {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-luxury);
}

.message-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.msg-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.msg-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #10B981;
}

.glass-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #CBD5E1;
}

.form-field input, .form-field textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-glass-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border-gold);
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
  transition: all 0.25s var(--ease-spring);
}

.btn-glass-submit:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
}

.btn-glass-submit svg {
  width: 18px;
  height: 18px;
}

.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.form-feedback.hidden { display: none; }

/* --- SPATIAL FRAMELESS FOOTER --- */
.spatial-footer {
  padding: 60px 0 40px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-glass-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-zero-rule {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: var(--glass-border-gold);
}

.back-to-top-btn svg {
  width: 14px;
  height: 14px;
}

/* --- PROJECT DEEP-DIVE MODAL --- */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-glass-container {
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--glass-border-gold);
  border-radius: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(212, 175, 55, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

.project-modal-backdrop.open .modal-glass-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-platinum);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: scale(1.05);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-body-scroll {
  padding: 36px;
  overflow-y: auto;
}

.modal-hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.modal-desc-full {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.m-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

.modal-btn-row {
  display: flex;
  gap: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-spatial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-spatial-interactive {
    order: -1;
  }
  .spatial-glass-card {
    max-width: 100%;
  }
  .dock-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .frameless-viewport {
    padding: 0 16px;
  }
  .glass-dock {
    padding: 6px 14px;
  }
  .dock-cta-text {
    display: none;
  }
  .hero-display-title {
    font-size: 2.5rem;
  }
  .hero-metrics-strip {
    gap: 16px;
    padding: 14px;
  }
  .skills-frameless-grid, .projects-frameless-grid {
    grid-template-columns: 1fr;
  }
  .footer-glass-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   LIVE SERVER TELEMETRY & AUDIO-REACTIVE DESIGN SYSTEM
   Standard: Top 1% Executive Glassmorphic Interface
   ========================================================================== */

/* --- DOCK AUDIO COMBO --- */
.dock-audio-combo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 2px 8px 2px 2px;
}

.dock-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
  padding-right: 2px;
}

.eq-bar {
  width: 2.5px;
  height: 4px;
  background: #38BDF8;
  border-radius: 1px;
  transition: height 0.08s ease;
}

.dock-eq-bars.animating .eq-bar {
  animation: eqPulse 0.6s infinite alternate ease-in-out;
}
.dock-eq-bars.animating .bar-1 { animation-delay: 0.0s; }
.dock-eq-bars.animating .bar-2 { animation-delay: 0.2s; }
.dock-eq-bars.animating .bar-3 { animation-delay: 0.4s; }
.dock-eq-bars.animating .bar-4 { animation-delay: 0.15s; }

@keyframes eqPulse {
  0% { height: 3px; background: #38BDF8; }
  50% { height: 14px; background: #818CF8; }
  100% { height: 7px; background: #F59E0B; }
}

/* --- LIVE SERVER TELEMETRY & CLUSTER HUD --- */
.telemetry-section {
  padding: 60px 0;
}

.telemetry-hud-card {
  position: relative;
  background: linear-gradient(145deg, rgba(12, 17, 34, 0.78), rgba(6, 9, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 26px;
}

.hud-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-pulse-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hud-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.hud-badge-node {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
}

.hud-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-ping-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #7DD3FC;
}

.hud-ping-badge svg {
  width: 14px;
  height: 14px;
  color: #38BDF8;
}

.hud-ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #6EE7B7;
}

.hud-ssl-badge svg {
  width: 13px;
  height: 13px;
  color: #10B981;
}

.hud-refresh-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: #38BDF8;
}

.hud-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.hud-refresh-btn.rotating svg {
  animation: spinSlow 0.7s linear;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 4 Executive Metric Boxes */
.hud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.hud-metric-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.hud-metric-box:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.metric-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m-hud-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m-hud-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 6px;
}

.tag-cyan { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.tag-emerald { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.tag-gold { background: rgba(212, 175, 55, 0.15); color: #D4AF37; }
.tag-green { background: rgba(34, 197, 94, 0.15); color: #22C55E; }

.metric-hud-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.m-hud-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.m-hud-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.hud-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.hud-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-cyan { background: linear-gradient(90deg, #38BDF8, #818CF8); }
.bar-emerald { background: linear-gradient(90deg, #10B981, #34D399); }
.bar-gold { background: linear-gradient(90deg, #F59E0B, #D4AF37); }
.bar-green { background: linear-gradient(90deg, #22C55E, #4ADE80); }




/* ==========================================================================
   📱 ULTRA-PRECISE MOBILE RESPONSIVE MASTER STYLES (320px - 768px)
   Zero-Overflow, Native Touch Ergonomics, 100% Viewport Integrity
   ========================================================================== */

/* Universal Mobile Container Isolation */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll globally */
  .frameless-viewport {
    padding: 0 14px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .spatial-section {
    padding: 70px 0 35px 0 !important;
    overflow-x: hidden !important;
  }

  /* --- 1. FLOATING NAVIGATION DOCK ON MOBILE --- */
  .floating-dock-container {
    top: 12px !important;
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .glass-dock {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    padding: 6px 12px !important;
    height: 48px !important;
    gap: 8px !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .dock-logo {
    gap: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-symbol {
    width: 28px !important;
    height: 28px !important;
  }

  .logo-text {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }

  .dock-divider {
    display: none !important;
  }

  .dock-links {
    display: none !important;
  }

  .dock-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .dock-audio-combo {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    gap: 0 !important;
  }

  .dock-eq-bars {
    display: none !important;
  }

  /* All 3 mobile buttons: Uniform 34px circular glass geometry */
  .dock-icon-btn,
  .dock-lang-btn,
  .mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-platinum) !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .dock-icon-btn:active,
  .dock-lang-btn:active,
  .mobile-menu-btn:active {
    transform: scale(0.92) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--glass-border-gold) !important;
  }

  .dock-lang-btn {
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }

  .dock-cta-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .dock-svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* --- 2. HERO SECTION ON MOBILE --- */
  .hero-spatial-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    width: 100% !important;
  }

  .hero-spatial-interactive {
    order: -1 !important;
    width: 100% !important;
  }

  .hero-display-title {
    font-size: 2.1rem !important;
    line-height: 1.18 !important;
    word-break: break-word !important;
  }

  .hero-display-title .title-sub {
    font-size: 1.05rem !important;
  }

  .hero-lead-paragraph {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* Hero Action Buttons - Full-width stacked on mobile */
  .hero-action-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .btn-glass-primary,
  .btn-glass-secondary,
  .btn-glass-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
  }

  /* Hero Metrics Strip - 2x2 Grid on Mobile */
  .hero-metrics-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .metric-separator {
    display: none !important;
  }

  .metric-number {
    font-size: 1.35rem !important;
  }

  .metric-label {
    font-size: 0.72rem !important;
  }

  /* 3D Hologram Card */
  .spatial-glass-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .tilt-card {
    transform: none !important;
  }

  .card-top-bar {
    margin-bottom: 12px !important;
  }

  .card-holo-visual {
    height: 80px !important;
    margin: 4px 0 10px 0 !important;
  }

  .ring-1 {
    width: 60px !important;
    height: 60px !important;
  }

  .holo-avatar-center {
    width: 44px !important;
    height: 44px !important;
  }

  .holo-avatar-center .avatar-svg {
    width: 44px !important;
    height: 44px !important;
  }

  .card-telemetry-lines {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .telem-row {
    font-size: 0.72rem !important;
  }

  .card-bottom-pills {
    gap: 5px !important;
    margin-top: 12px !important;
  }

  .tech-chip {
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
  }

  /* --- 3. LIVE SERVER TELEMETRY ON MOBILE --- */
  .telemetry-section {
    padding: 45px 0 25px 0 !important;
    width: 100% !important;
  }

  .telemetry-hud-card {
    padding: 16px 12px !important;
    border-radius: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hud-top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
  }

  .hud-identity {
    gap: 8px !important;
    width: 100% !important;
  }

  .hud-title {
    font-size: 0.85rem !important;
  }

  .hud-badge-node {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .hud-status-group {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .hud-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }

  .hud-metric-box {
    padding: 14px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .m-hud-number {
    font-size: 1.35rem !important;
  }

  /* --- 4. TERMINAL SECTION ON MOBILE --- */
  .terminal-section {
    padding: 40px 0 20px 0 !important;
    width: 100% !important;
  }

  .glass-terminal-wrapper {
    padding: 14px 10px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .terminal-titlebar {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .terminal-tab span {
    font-size: 0.72rem !important;
  }

  .terminal-quick-pills {
    gap: 5px !important;
    padding-bottom: 10px !important;
    overflow-x: auto !important;
  }

  .quick-cmd {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }

  .terminal-screen {
    max-height: 280px !important;
    font-size: 0.76rem !important;
    overflow-x: hidden !important;
  }

  /* Hide huge ASCII banner on mobile to prevent horizontal viewport stretch */
  .ascii-art {
    display: none !important;
  }

  /* --- 5. PROJECTS & SKILLS GRIDS ON MOBILE --- */
  .skills-frameless-grid,
  .projects-frameless-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .project-glass-card {
    border-radius: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .real-thumb-container {
    height: 170px !important;
  }

  .project-card-content {
    padding: 16px !important;
  }

  .projects-filter-bar {
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    justify-content: flex-start !important;
  }

  .filter-pill {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* --- 6. CONTACT & DIRECT CONNECT ON MOBILE --- */
  .contact-spatial-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
  }

  .glass-connect-card {
    padding: 18px 16px !important;
    gap: 14px !important;
    border-radius: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .connect-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
  }

  .connect-info {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .connect-title {
    font-size: 0.95rem !important;
  }

  .connect-handle {
    font-size: 0.85rem !important;
    word-break: break-all !important;
  }

  .connect-desc {
    font-size: 0.78rem !important;
  }

  .connect-arrow svg {
    width: 18px !important;
    height: 18px !important;
  }

  .glass-message-box {
    padding: 22px 16px !important;
    border-radius: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .message-box-header {
    margin-bottom: 18px !important;
  }

  .msg-title {
    font-size: 1.15rem !important;
  }

  .glass-form {
    gap: 16px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .form-field {
    gap: 6px !important;
  }

  .form-field label {
    font-size: 0.82rem !important;
  }

  .form-field input, .form-field textarea {
    font-size: 16px !important; /* Prevents auto-zoom on mobile */
    padding: 12px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-glass-submit {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
  }

}

@media (max-width: 380px) {
  .dock-icon-btn,
  .dock-lang-btn,
  .mobile-menu-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .hero-display-title {
    font-size: 1.85rem !important;
  }
}
