/* ==========================================================================
   3D GALAXY PORTFOLIO - STYLESHEET
   Author: Hammadullah
   Theme: Deep Space / Cosmic Neon Glassmorphism
   ========================================================================== */

:root {
  /* Realistic Premium Dark Slate Palette */
  --bg-space: #090c15;
  --bg-space-secondary: #0f1422;
  --bg-card: rgba(15, 20, 34, 0.75);
  --bg-card-hover: rgba(22, 30, 50, 0.88);
  --bg-card-border: rgba(255, 255, 255, 0.09);
  --bg-card-border-glow: rgba(56, 189, 248, 0.45);

  /* Refined High-Tech Modern Accents */
  --neon-cyan: #38bdf8;
  --neon-purple: #6366f1;
  --neon-magenta: #8b5cf6;
  --neon-blue: #2563eb;
  --neon-gold: #f59e0b;
  --neon-emerald: #10b981;

  /* Current Active Theme Primary/Secondary */
  --theme-primary: #38bdf8;
  --theme-secondary: #6366f1;
  --theme-glow: rgba(56, 189, 248, 0.35);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  /* Gradients */
  --grad-galaxy: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-nebula: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.12));
  --grad-card-border: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.2), transparent);
  --grad-glow-btn: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);

  /* Typography */
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-sub: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout & Transitions */
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE LAYOUT (FLUID 100DVH VERTICAL FLOW)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-space);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

body {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  background: var(--bg-space);
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

/* Custom Cosmic Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* ==========================================================================
   THREE.JS 3D CANVAS CONTAINER
   ========================================================================== */
#galaxy-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  touch-action: pan-y;
}

#galaxy-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle Vignette & Holographic Grid Overlay */
.cosmic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, transparent 40%, rgba(9, 12, 21, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.cosmic-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   CUSTOM CELESTIAL CURSOR (DESKTOP ONLY)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--neon-cyan);
    transition: transform 0.05s ease, background-color 0.3s;
  }

  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, border-color 0.3s;
  }
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   MAIN CONTENT WRAPPER & CONTAINER
   ========================================================================== */
#content-wrapper {
  flex: 1 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   HOLOGRAPHIC NAVIGATION (HUD HEADER)
   ========================================================================== */
.hud-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 12, 21, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.hud-navbar.scrolled {
  background: rgba(9, 12, 21, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Logo */
.cosmic-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.brand-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-core {
  width: 16px;
  height: 16px;
  background: var(--grad-galaxy);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--neon-cyan);
  animation: pulse-core 3s infinite alternate;
}

.brand-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px dashed var(--neon-cyan);
  border-radius: 50%;
  animation: rotate-orbit 8s linear infinite;
}

.brand-text {
  background: linear-gradient(90deg, #ffffff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.brand-suffix {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-family: var(--font-sub);
  letter-spacing: 1px;
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.nav-link-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.08);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--grad-galaxy);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* HUD Controls: Audio & Theme */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-btn {
  background: rgba(13, 8, 38, 0.8);
  border: 1px solid rgba(120, 90, 255, 0.3);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
  outline: none;
}

.hud-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.audio-visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-bar {
  width: 2.5px;
  height: 4px;
  background: var(--neon-cyan);
  border-radius: 1px;
  transition: height 0.1s ease;
}

.audio-playing .audio-bar:nth-child(1) { animation: soundBar 0.6s infinite ease-in-out alternate; }
.audio-playing .audio-bar:nth-child(2) { animation: soundBar 0.8s 0.2s infinite ease-in-out alternate; }
.audio-playing .audio-bar:nth-child(3) { animation: soundBar 0.5s 0.4s infinite ease-in-out alternate; }
.audio-playing .audio-bar:nth-child(4) { animation: soundBar 0.9s 0.1s infinite ease-in-out alternate; }

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION: GALACTIC CORE
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.hero-container-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* ==========================================================================
   3D HOLOGRAPHIC CIRCULAR PORTRAIT SCENE (RIGHT SIDE)
   ========================================================================== */
.hero-portrait-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
  perspective: 1200px;
  position: relative;
  width: 100%;
}

.hologram-3d-scene {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  flex-shrink: 0;
}

/* Rotating Cosmic Orbital Rings */
.portrait-orbital-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px dashed;
  transform-style: preserve-3d;
}

.portrait-orbital-ring.ring-1 {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  animation: orbitRing3D 16s linear infinite;
}

.portrait-orbital-ring.ring-2 {
  width: 360px;
  height: 360px;
  border-color: rgba(121, 40, 202, 0.4);
  box-shadow: 0 0 20px rgba(121, 40, 202, 0.2);
  animation: orbitRing3DReverse 22s linear infinite;
}

.portrait-orbital-ring.ring-3 {
  width: 290px;
  height: 290px;
  border-color: rgba(255, 0, 127, 0.35);
  animation: orbitRing3D 28s linear infinite;
}

@keyframes orbitRing3D {
  0% { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes orbitRing3DReverse {
  0% { transform: rotateX(-60deg) rotateY(-20deg) rotateZ(360deg); }
  100% { transform: rotateX(-60deg) rotateY(-20deg) rotateZ(0deg); }
}

/* Glowing Nebula Core Backdrop */
.portrait-nebula-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.35) 0%, rgba(121, 40, 202, 0.25) 55%, transparent 75%);
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
  animation: nebulaPulse 6s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* 3D Hologram Circular Portal Frame - Fixed Size */
.hologram-circle-3d {
  position: relative;
  width: 260px;
  height: 260px;
  min-width: 260px;
  min-height: 260px;
  max-width: 260px;
  max-height: 260px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(56, 189, 248, 0.4),
    0 0 50px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: float3DCircle 5s ease-in-out infinite alternate;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hologram-circle-3d:hover {
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(56, 189, 248, 0.6),
    0 0 60px rgba(99, 102, 241, 0.4);
}

@keyframes float3DCircle {
  0% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
  50% { transform: translateY(-12px) rotateY(5deg) rotateX(-3deg); }
  100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
}

/* Outer Glowing Energy Ring */
.circle-energy-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: rotateEnergyRing 12s linear infinite;
  z-index: 3;
}

@keyframes rotateEnergyRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Circular Image Container & Image */
.circle-img-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #080321;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-circle-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  display: block;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hologram-circle-3d:hover .hologram-circle-img {
  transform: scale(1.06);
}

.circle-hologram-glaze {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Holographic Laser Scanning Line Across Circle */
.hologram-circle-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), #ffffff, var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-cyan), 0 0 25px var(--neon-cyan);
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  animation: circleLaserScan 3.5s ease-in-out infinite;
}

@keyframes circleLaserScan {
  0% { top: 5%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}

/* Floating 3D Micro-Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(13, 8, 38, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-sub);
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 6;
  white-space: nowrap;
  pointer-events: none;
  animation: floatBadgeItem 4s ease-in-out infinite alternate;
}

.floating-badge i {
  color: var(--neon-cyan);
}

.badge-top-right {
  top: -10px;
  right: -15px;
  animation-delay: 0.4s;
}

.badge-bottom-left {
  bottom: 10px;
  left: -25px;
  border-color: rgba(121, 40, 202, 0.5);
  animation-delay: 1.2s;
}

.badge-bottom-left i {
  color: #ff007f;
}

.badge-mid-left {
  top: 105px;
  left: -35px;
  border-color: rgba(255, 183, 3, 0.5);
  animation-delay: 0.8s;
}

.badge-mid-left i {
  color: var(--neon-gold);
}

@keyframes floatBadgeItem {
  0% { transform: translateY(0px) translateZ(30px); }
  100% { transform: translateY(-8px) translateZ(45px); }
}

/* Responsive adjustment for Hero grid */
@media (max-width: 992px) {
  .hero-container-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text-col {
    align-items: center;
    text-align: center;
  }

  .hero-portrait-col {
    order: -1;
    justify-content: center;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .hologram-3d-scene {
    width: 240px;
    height: 240px;
  }

  .hologram-circle-3d {
    width: 220px;
    height: 220px;
    min-width: 220px;
    min-height: 220px;
    max-width: 220px;
    max-height: 220px;
  }

  .portrait-orbital-ring.ring-1 { width: 260px; height: 260px; }
  .portrait-orbital-ring.ring-2 { width: 300px; height: 300px; }
  .portrait-orbital-ring.ring-3 { width: 240px; height: 240px; }

  .badge-top-right { right: -5px; }
  .badge-bottom-left { left: -10px; }
  .badge-mid-left { left: -15px; }
}

/* Holographic Badge */
.holo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(13, 8, 38, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: float-badge 4s ease-in-out infinite alternate;
}

.beacon-pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  position: relative;
}

.beacon-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-cyan);
  animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

/* Galactic Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.name-glow {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 45%, #818cf8 80%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.3));
  display: block;
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--text-highlight);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.typing-text {
  color: var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  white-space: nowrap;
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {
  from, to { border-color: transparent }
  50% { border-color: var(--neon-cyan); }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Starship Telemetry HUD Widget */
.hero-telemetry-hud {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13, 8, 38, 0.6);
  border: 1px solid rgba(120, 90, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  justify-content: center;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.telemetry-icon {
  color: var(--neon-cyan);
  font-size: 0.9rem;
}

.telemetry-val {
  color: #ffffff;
  font-weight: 600;
}

/* Hero CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cosmic-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--grad-glow-btn);
  color: #030014;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.cosmic-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.cosmic-btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.8), 0 0 20px rgba(121, 40, 202, 0.6);
}

.cosmic-btn-primary:hover::before {
  left: 100%;
}

.cosmic-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: rgba(13, 8, 38, 0.8);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.cosmic-btn-secondary:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Scroll Orbit Indicator */
.scroll-orbit-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast);
}

.scroll-orbit-indicator:hover {
  color: var(--neon-cyan);
}

.orbit-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.orbit-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

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

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.cosmic-section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(0, 242, 254, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION: ORBITAL TELEMETRY & CAPTAIN'S LOG
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.about-holo-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.about-holo-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.2);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(120, 90, 255, 0.2);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.card-hud-lights {
  display: flex;
  gap: 8px;
}

.hud-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hud-light.red { background: #ff5f56; box-shadow: 0 0 6px #ff5f56; }
.hud-light.yellow { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e; }
.hud-light.green { background: #27c93f; box-shadow: 0 0 6px #27c93f; }

.card-hud-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

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

.about-bio-text strong {
  color: #ffffff;
}

.about-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-pill {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Stats Counter Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-telemetry-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-telemetry-box:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.stat-telemetry-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-galaxy);
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.stat-counter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   SKILLS SECTION: TECH CONSTELLATIONS
   ========================================================================== */
.skills-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.skill-tab-btn {
  background: rgba(13, 8, 38, 0.7);
  border: 1px solid rgba(120, 90, 255, 0.25);
  color: var(--text-secondary);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.skill-tab-btn:hover {
  color: #ffffff;
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.skill-tab-btn.active {
  color: #030014;
  background: var(--grad-glow-btn);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.skills-constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.skill-orb-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.skill-orb-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.25);
}

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

.skill-icon-bubble {
  width: 48px;
  height: 48px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.skill-level-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.skill-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.skill-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skill-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar-fill {
  height: 100%;
  background: var(--grad-galaxy);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PROJECTS SECTION: DEEP SPACE ARTIFACTS
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.project-planet-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-planet-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.25), 0 0 20px rgba(121, 40, 202, 0.3);
}

.project-banner-preview {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #0d0826;
}

.project-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-planet-card:hover .project-banner-img {
  transform: scale(1.08);
}

.project-orbit-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(3, 0, 20, 0.85);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

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

.project-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  color: var(--text-highlight);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(120, 90, 255, 0.2);
  padding-top: 16px;
  margin-top: auto;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.06);
}

.project-link-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  color: #ffffff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

.project-inspect-btn {
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.project-inspect-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   WARP CORE SPACE LAB (INTERACTIVE CONTROLS)
   ========================================================================== */
.warp-lab-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 960px;
  margin: 0 auto;
}

.lab-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.lab-control-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lab-control-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-control-title i {
  color: var(--neon-cyan);
}

/* Range Slider */
.cosmic-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cosmic-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.cosmic-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--neon-cyan);
  transition: transform 0.1s ease;
}

.cosmic-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-metrics {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-val-readout {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* Nebula Color Selector */
.theme-selector-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-sub);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.swatch-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.swatch-btn:hover, .swatch-btn.active {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   EXPERIENCE SECTION: COSMIC ODYSSEY (TIMELINE)
   ========================================================================== */
.timeline-track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.timeline-node-item {
  position: relative;
  margin-bottom: 48px;
  width: 50%;
}

.timeline-node-item:nth-child(odd) {
  left: 0;
  padding-right: 48px;
  text-align: right;
}

.timeline-node-item:nth-child(even) {
  left: 50%;
  padding-left: 48px;
  text-align: left;
}

.timeline-pulsar-dot {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 18px;
  background: #030014;
  border: 3px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--neon-cyan);
  z-index: 5;
}

.timeline-node-item:nth-child(odd) .timeline-pulsar-dot {
  right: -9px;
}

.timeline-node-item:nth-child(even) .timeline-pulsar-dot {
  left: -9px;
}

.timeline-card-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.timeline-card-box:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
  transform: translateY(-4px);
}

.timeline-date-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.timeline-role-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.timeline-org-name {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--text-highlight);
  margin-bottom: 12px;
}

.timeline-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS SECTION: STELLAR TRANSMISSIONS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.transmission-beacon-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition-smooth);
}

.transmission-beacon-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 2rem;
  color: rgba(0, 242, 254, 0.25);
  margin-bottom: 16px;
}

.testimonial-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-galaxy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #030014;
  box-shadow: 0 0 12px var(--neon-cyan);
}

.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.author-designation {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION: DEEP SPACE UPLINK
   ========================================================================== */
.contact-uplink-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-comms-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comms-channel-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.comms-channel-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
  transform: translateX(6px);
}

.comms-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--neon-cyan);
}

.comms-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.comms-value {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

/* /* Futuristic Uplink Form */
.terminal-form-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text-highlight);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.holo-input, .holo-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(9, 12, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.holo-input:focus, .holo-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: rgba(9, 12, 21, 0.9);
}

.holo-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  background: var(--grad-glow-btn);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.transmission-status-msg {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  display: none;
  text-align: center;
  box-sizing: border-box;
}

.transmission-status-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--neon-emerald);
  color: var(--neon-emerald);
}

/* ==========================================================================
   FOOTER: FLUID VERTICAL ALIGNMENT & BOTTOM POSITIONING
   ========================================================================== */
.cosmic-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 21, 0.95);
  backdrop-filter: blur(16px);
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

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

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

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--neon-cyan);
  color: #030014;
  box-shadow: 0 0 15px var(--neon-cyan);
  transform: translateY(-3px);
}

.warp-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: var(--transition-fast);
}

.warp-top-btn:hover {
  background: var(--neon-cyan);
  color: #030014;
  box-shadow: 0 0 20px var(--neon-cyan);
}

/* ==========================================================================
   MODAL: PROJECT DEEP DIVE EXPLORER (FLUID 100% WIDTH)
   ========================================================================== */
.cosmic-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(9, 12, 21, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

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

.cosmic-modal-card {
  background: #0f1422;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cosmic-modal-backdrop.open .cosmic-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--neon-magenta);
  box-shadow: 0 0 15px var(--neon-magenta);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes rotate-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-core {
  0% { transform: scale(0.85); box-shadow: 0 0 10px var(--neon-cyan); }
  100% { transform: scale(1.15); box-shadow: 0 0 24px var(--neon-cyan), 0 0 40px var(--neon-purple); }
}

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

/* Reveal on scroll */
.cosmic-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cosmic-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE SMARTPHONES)
   ========================================================================== */
@media (max-width: 992px) {
  /* Prevent Any Horizontal Overflow from Top to Bottom */
  html, body, #content-wrapper, main, section, .hero-section, .cosmic-footer, .hud-navbar {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Navigation: Switch to Mobile Drawer */
  .hud-navbar {
    padding: 0 12px;
  }

  .nav-container {
    padding: 0 !important;
    width: 100%;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 4px;
    flex-shrink: 0;
  }

  .hud-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-suffix {
    display: none;
  }

  .cosmic-brand {
    font-size: 1rem;
    gap: 8px;
    flex-shrink: 1;
    overflow: hidden;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(9, 12, 21, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 14px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    transform: translateY(-160%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  /* Hero Section: Centered & Fully Contained */
  .hero-section {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 36px;
    min-height: auto;
  }

  .hero-container-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Right Column (Avatar): Centered on Top */
  .hero-portrait-col {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 auto 10px auto;
    perspective: none;
  }

  .hologram-3d-scene {
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 0 auto;
    transform-style: flat;
  }

  .hologram-circle-3d {
    width: 170px;
    height: 170px;
    min-width: 170px;
    min-height: 170px;
    max-width: 170px;
    max-height: 170px;
    margin: 0 auto;
    padding: 4px;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.9),
      0 0 20px rgba(56, 189, 248, 0.4);
  }

  .portrait-orbital-ring.ring-1 { width: 200px; height: 200px; }
  .portrait-orbital-ring.ring-2 { width: 225px; height: 225px; }
  .portrait-orbital-ring.ring-3 { display: none; }

  .portrait-nebula-glow {
    width: 190px;
    height: 190px;
  }

  /* Micro Badges neatly contained */
  .floating-badge {
    padding: 4px 10px;
    font-size: 0.68rem;
    gap: 6px;
  }

  .badge-top-right { top: -6px; right: -5px; }
  .badge-bottom-left { bottom: -4px; left: -5px; }
  .badge-mid-left { display: none; }

  /* Left Column: Fully Contained Typography */
  .hero-text-col {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .holo-badge {
    max-width: 95%;
    margin: 0 auto 14px auto;
    padding: 5px 12px;
  }

  .badge-text {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.7rem);
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: 100%;
    word-break: break-word;
    text-align: center;
  }

  .name-glow {
    display: inline-block;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-description {
    font-size: 0.92rem;
    padding: 0 8px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
    max-width: 100%;
    text-align: center;
  }

  .hero-telemetry-hud {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    gap: 8px;
    margin: 0 auto 24px auto;
    flex-direction: column;
    border-radius: var(--radius-sm);
  }

  .telemetry-item {
    font-size: 0.76rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cosmic-btn-primary, .cosmic-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  /* Contact Uplink & Form Containment */
  .contact-uplink-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }

  .contact-comms-info,
  .terminal-form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .terminal-form-card {
    padding: 1.25rem 1rem !important;
    margin: 0 auto !important;
    border-radius: var(--radius-md) !important;
  }

  .card-header-bar {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
  }

  .card-hud-lights {
    flex-shrink: 0 !important;
    display: flex !important;
    gap: 6px !important;
  }

  .card-hud-title {
    font-size: 0.62rem !important;
    max-width: 68% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
  }

  .form-group {
    width: 100% !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
  }

  .form-label {
    font-size: 0.72rem !important;
    margin-bottom: 0.35rem !important;
  }

  .holo-input, .holo-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem 0.9rem !important;
    font-size: 0.88rem !important;
  }

  .form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
  }

  .comms-channel-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    gap: 12px !important;
  }

  .comms-value {
    font-size: 0.82rem !important;
    word-break: break-all !important;
  }

  /* About Section: Full Single-Column Flow */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .about-holo-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.25rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .about-bio-text {
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
  }

  .about-focus-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .focus-pill {
    font-size: 0.76rem !important;
    padding: 6px 12px !important;
    line-height: 1.3 !important;
  }

  .about-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-telemetry-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 10px !important;
  }

  .stat-counter {
    font-size: 1.65rem !important;
  }

  .stat-plus {
    font-size: 1.1rem !important;
  }

  .stat-label {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
  }

  /* Skills & Projects & Testimonials Stack */
  .skills-constellation-grid,
  .projects-grid,
  .testimonials-grid,
  .lab-controls-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .skill-orb-card,
  .project-planet-card,
  .transmission-beacon-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Timeline Single-Column Full Override (Resolves 50% Push) */
  .timeline-track {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .timeline-track::before {
    left: 14px !important;
    transform: none !important;
  }
  
  .timeline-node-item,
  .timeline-node-item:nth-child(odd),
  .timeline-node-item:nth-child(even) {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    padding-left: 38px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
  }
  
  .timeline-pulsar-dot,
  .timeline-node-item:nth-child(odd) .timeline-pulsar-dot,
  .timeline-node-item:nth-child(even) .timeline-pulsar-dot {
    left: 5px !important;
    right: auto !important;
    top: 18px !important;
  }

  .timeline-card-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem !important;
    box-sizing: border-box !important;
  }

  .timeline-role-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  .skills-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .skill-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .project-footer-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .project-inspect-btn, .project-link-btn {
    width: 100%;
    justify-content: center;
  }

  .theme-selector-swatches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .swatch-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .scroll-orbit-indicator {
    display: none !important;
  }

  /* Footer Mobile Containment */
  .cosmic-footer {
    padding: 30px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100%;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .cosmic-modal-card {
    padding: 20px 16px;
    max-height: 85vh;
    width: 95vw;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: calc(var(--nav-height) + 10px);
  }

  .hologram-3d-scene {
    width: 190px;
    height: 190px;
  }

  .hologram-circle-3d {
    width: 155px;
    height: 155px;
    min-width: 155px;
    min-height: 155px;
    max-width: 155px;
    max-height: 155px;
  }

  .portrait-orbital-ring.ring-1 { width: 180px; height: 180px; }
  .portrait-orbital-ring.ring-2 { width: 205px; height: 205px; }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .theme-selector-swatches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 10px !important;
  }

  .hud-navbar {
    padding: 0 8px;
  }

  .cosmic-brand {
    font-size: 0.88rem;
  }

  .hologram-3d-scene {
    width: 165px;
    height: 165px;
  }

  .hologram-circle-3d {
    width: 135px;
    height: 135px;
    min-width: 135px;
    min-height: 135px;
    max-width: 135px;
    max-height: 135px;
  }

  .portrait-orbital-ring.ring-1 { width: 155px; height: 155px; }
  .portrait-orbital-ring.ring-2 { width: 175px; height: 175px; }

  .floating-badge {
    display: none !important;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-counter {
    font-size: 1.4rem !important;
  }

  .about-holo-card,
  .terminal-form-card,
  .skill-orb-card,
  .project-planet-card,
  .transmission-beacon-card,
  .timeline-card-box {
    padding: 1rem 0.85rem !important;
  }

  .comms-channel-card {
    padding: 10px 8px !important;
  }
}
