/* ==========================================================================
   SHARAN RAJ — CINEMATIC PORTFOLIO
   Modern Glassmorphism & Cyberpunk Neon Theme (Red / Blue / Purple)
   Inspired by mzcode01 Glass Morphism Navbar & $7000 Portfolio Aesthetic
   ========================================================================== */

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

:root {
  --bg: #06050a;
  --bg-secondary: #0c0a14;
  
  /* Glass Variables */
  --glass-bg: rgba(16, 12, 28, 0.45);
  --glass-bg-hover: rgba(26, 18, 44, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.22);
  --glass-border-glow: rgba(168, 85, 247, 0.35);
  --glass-blur: 24px;
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  
  /* Neon Accents */
  --neon-red: #ff2d55;
  --neon-blue: #4d7cff;
  --neon-purple: #a855f7;
  --neon-cyan: #22d3ee;
  --neon-pink: #ec4899;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, #ff2d55, #a855f7, #4d7cff);
  --gradient-text: linear-gradient(90deg, #ff2d55 0%, #c084fc 50%, #4d7cff 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255,45,85,0.35), rgba(168,85,247,0.3), rgba(77,124,255,0.35));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  
  /* Typography & Layout */
  --text: #f3f0f9;
  --text-secondary: rgba(243, 240, 249, 0.68);
  --text-muted: rgba(243, 240, 249, 0.38);
  --font-cyber: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

::selection {
  background: rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

/* Universal Custom Glass Scrollbar (Desktop, Tablet, Mobile & Cross-Browser) */
html, body {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-purple) var(--bg);
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  display: block;
}

::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-red), var(--neon-purple), var(--neon-blue));
  border-radius: 10px;
  border: 1.5px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4070, #c084fc, #60a5fa);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ===== AMBIENT BACKGROUND GLOW ORBS ===== */
.glass-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  will-change: transform, opacity;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: 10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ff2d55 0%, rgba(255,45,85,0) 70%);
}

.orb-2 {
  top: 35%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #4d7cff 0%, rgba(77,124,255,0) 70%);
  animation-delay: -5s;
  animation-duration: 22s;
}

.orb-3 {
  top: 65%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168,85,247,0) 70%);
  animation-delay: -10s;
  animation-duration: 20s;
}

.orb-4 {
  bottom: 5%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff2d55 0%, #a855f7 60%, rgba(168,85,247,0) 70%);
  animation-delay: -14s;
  animation-duration: 24s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.12); }
  100% { transform: translate(-30px, -40px) scale(0.92); }
}

/* ===== SHARED GLASS UTILITIES ===== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

/* Dynamic Cursor Spotlight Effect */
.glass-card::before,
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

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

.glass-highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
  z-index: 2;
}

.glass-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* ===== GRADIENT TEXT ===== */
.neon-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(90px, 14vh, 150px) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.text-center {
  text-align: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--neon-purple);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
  animation: pulseDot 2s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 4px var(--neon-red); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px var(--neon-red), 0 0 18px var(--neon-purple); }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-desc.centered {
  margin: 0 auto;
}

/* ==========================================================================
   MODERN FLOATING GLASSMORPHISM NAVBAR (mzcode01 style)
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
  height: 60px;
  box-sizing: border-box;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 24px);
  padding: 0 16px 0 22px;
  height: 60px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  flex-shrink: 0;
  
  background: rgba(14, 10, 24, 0.55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  
  box-shadow:
    0 20px 45px -10px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(168, 85, 247, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
    
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.glass-nav:hover {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 24px 55px -10px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(168, 85, 247, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Nav Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cyber);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-nav-icon {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.75));
  transition: transform 0.35s var(--ease-spring), filter 0.35s var(--ease);
  animation: logoPulse 4s ease-in-out infinite;
}

.nav-logo:hover .portfolio-nav-icon {
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 18px rgba(255, 45, 85, 0.9));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.75)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(255, 45, 85, 0.9)); }
}

/* Nav Links - Glass Capsule Pills */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid transparent;
  box-sizing: border-box;
  transform-origin: center center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Buttery Smooth Text Rendering & GPU Layer Stabilization */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform, color, background-color, border-color, box-shadow;
  
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.25s ease,
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform: translate3d(0, 0, 0) scale(1.04);
}

.nav-link:active {
  transform: translate3d(0, 0, 0) scale(1.08);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(168, 85, 247, 0.22));
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translate3d(0, 0, 0) scale(1.04);
}

.nav-link.active:active {
  transform: translate3d(0, 0, 0) scale(1.08);
}

/* Nav Glass CTA Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.9), rgba(168, 85, 247, 0.9), rgba(77, 124, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  transform-origin: center center;
  
  /* Smooth Text Rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
  
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

.nav-cta-glass:hover {
  /* Stay at the same place while hovering — NO translation */
  transform: translate3d(0, 0, 0);
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.45), 0 0 25px rgba(168, 85, 247, 0.4);
}

.nav-cta-glass:active {
  /* Scale on click */
  transform: translate3d(0, 0, 0) scale(0.96);
}

.cta-shine {
  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 var(--ease);
}

.nav-cta-glass:hover .cta-shine {
  left: 100%;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.nav-cta-glass:hover .cta-icon {
  transform: scale(1.15);
}

/* ==========================================================================
   MOBILE HAMBURGER & FLOATING GLASS DROPDOWN MENU
   ========================================================================== */

/* Hidden on Desktop */
.hamburger-btn {
  display: none !important;
}

.mobile-glass-drawer {
  display: none !important;
}

/* ==========================================================================
/* ==========================================================================
   HERO — SCROLL VIDEO & FERRANDO-STYLE TYPOGRAPHIC TRANSITIONS
   ========================================================================== */
.hero {
  position: relative;
  height: 550vh;
  background: var(--bg);
}

.hero-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  will-change: transform;
  touch-action: pan-y;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-video-bg canvas,
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(168, 85, 247, 0.12), transparent 75%),
    linear-gradient(to bottom, rgba(6,5,10,0.45) 0%, transparent 35%, transparent 65%, var(--bg) 100%);
  pointer-events: none;
}

/* Typographic Story Beats — Flanked to Leave Center Face 100% Unobstructed */
.hero-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity, filter;
  text-wrap: balance;
  transition: none !important;
}

/* Left Flank Beat (Desktop) */
.hero-beat-left {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 520px;
  left: clamp(30px, 6vw, 100px);
  right: auto;
  padding: 0 clamp(16px, 2.5vw, 36px);
  margin: 0;
}

.hero-beat-left .hero-headline,
.hero-beat-left .hero-subline,
.hero-beat-left .hero-sub {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero-beat-left .hero-btns {
  justify-content: flex-start;
}

/* Right Flank Beat (Desktop) */
.hero-beat-right {
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  max-width: 520px;
  left: auto;
  right: clamp(30px, 6vw, 100px);
  padding: 0 clamp(16px, 2.5vw, 36px);
  margin: 0;
}

.hero-beat-right .hero-headline,
.hero-beat-right .hero-subline {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

/* Bottom Center Beat */
.hero-beat-bottom {
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  padding-bottom: clamp(65px, 10vh, 100px);
  left: 0;
  right: 0;
}

.hero-tag-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.25em;
  color: var(--neon-purple);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.6);
}

.hero-headline-compact {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-subline {
  font-size: clamp(15px, 1.4vw, 18.5px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  text-wrap: pretty;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

@media (max-width: 1024px) {
  .hero {
    height: 480vh;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 420vh;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  .hero-beat,
  .hero-beat-left,
  .hero-beat-right,
  .hero-beat-0,
  .hero-beat-story,
  .hero-beat-bottom {
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: left !important;
    padding: 0 clamp(20px, 5.5vw, 32px) clamp(115px, 18vh, 160px) clamp(20px, 5.5vw, 32px) !important;
  }

  .hero-beat-right .hero-headline,
  .hero-beat-right .hero-subline {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .hero-beat-0 .hero-btns {
    justify-content: flex-start !important;
    margin-top: 20px !important;
  }

  .hero-headline {
    font-size: clamp(26px, 6.8vw, 38px) !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
  }

  .hero-headline-compact {
    font-size: clamp(22px, 5.5vw, 30px) !important;
    margin-bottom: 10px !important;
  }

  .hero-subline,
  .hero-sub {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .hero-tag-mono,
  .hero-tag {
    font-size: 10.5px !important;
    margin-bottom: 14px !important;
  }

  .hero-scroll-indicator {
    margin-top: 14px !important;
  }
}

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.scroll-arrow-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--neon-purple);
  font-size: 20px;
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.story-card-compact {
  max-width: 520px;
  padding: 14px 28px;
  border-radius: 100px;
}

.story-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-purple);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  display: block;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.story-title-compact {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.story-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-bottom-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Glass Badge */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.25em;
  color: #f3f0f9;
  background: rgba(16, 12, 28, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: dotBlink 2s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 38px;
  line-height: 1.7;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Glass Buttons */
.glass-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--gradient-main);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 12px 35px rgba(255, 45, 85, 0.35), 0 0 30px rgba(168, 85, 247, 0.3);
  transition: all 0.3s var(--ease-spring);
}

.glass-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(255, 45, 85, 0.5), 0 0 40px rgba(168, 85, 247, 0.45);
}

.btn-arrow {
  transition: transform 0.25s var(--ease);
}

.glass-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.glass-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: rgba(16, 12, 28, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s var(--ease);
}

.glass-btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(30, 20, 50, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
}

/* Glass Hero Progress Pill */
.glass-pill {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
  background: rgba(14, 10, 24, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
}

.hero-progress-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  box-shadow: 0 0 12px var(--neon-purple);
  transition: width 0.05s linear;
}

.hero-progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-purple);
  white-space: nowrap;
}

/* ==========================================================================
   ABOUT SECTION — GLASS GRID
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.about-image:hover img {
  transform: scale(1.04);
  filter: contrast(1.04) brightness(1.03);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-bio {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.about-stat {
  padding: 22px 18px;
  text-align: center;
}

.about-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.about-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 4px;
  transition: text-shadow 0.3s var(--ease);
}

.about-stat:hover .about-stat-num {
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.7), 0 0 35px rgba(255, 45, 85, 0.45);
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(255, 45, 85, 0.35);
  transition: all 0.3s var(--ease-spring);
}

.resume-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(255, 45, 85, 0.5), 0 0 35px rgba(168, 85, 247, 0.4);
}

.resume-download-btn .submit-shine {
  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 var(--ease);
}

.resume-download-btn:hover .submit-shine {
  left: 100%;
}

.btn-icon-svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.resume-download-btn:hover .btn-icon-svg {
  transform: translateY(2px);
}

/* ==========================================================================
   PROJECTS SECTION — GLASS CARDS
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 28px;
  transition: all 0.4s var(--ease);
}

.project-row:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(168, 85, 247, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.project-row:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.project-row:nth-child(even) .project-thumb {
  order: 2;
}

.project-row:nth-child(even) .project-info {
  order: 1;
}

.project-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.project-row:hover .project-thumb img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.project-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-blue);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  display: inline-block;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Glass Tag */
.glass-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  color: #d8b4fe;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}

.project-row:hover .glass-tag {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--neon-red);
  transition: gap 0.25s var(--ease), color 0.25s;
}

.project-repo-link {
  color: var(--neon-purple);
}

.project-repo-link:hover {
  color: #d8b4fe;
}

.link-arrow {
  transition: transform 0.25s var(--ease);
}

.project-link:hover {
  gap: 12px;
}

.project-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SKILLS SECTION — FUNCTIONAL DOMAIN CATEGORIES
   ========================================================================== */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.skill-category-group {
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category-group:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.1);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-purple);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

/* Domain Distinct Category Accents */
.skill-category-group:nth-child(1) .category-icon-badge {
  background: rgba(77, 124, 255, 0.12);
  border-color: rgba(77, 124, 255, 0.3);
  color: var(--neon-blue);
}
.skill-category-group:nth-child(1):hover {
  border-color: rgba(77, 124, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(77, 124, 255, 0.12);
}

.skill-category-group:nth-child(2) .category-icon-badge {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--neon-cyan);
}
.skill-category-group:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(34, 211, 238, 0.12);
}

.skill-category-group:nth-child(3) .category-icon-badge {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--neon-purple);
}
.skill-category-group:nth-child(3):hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(168, 85, 247, 0.12);
}

.skill-category-group:nth-child(4) .category-icon-badge {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.3);
  color: var(--neon-red);
}
.skill-category-group:nth-child(4):hover {
  border-color: rgba(255, 45, 85, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 45, 85, 0.12);
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.category-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

.category-grid .skill-item {
  padding: 18px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(14, 10, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.category-grid .skill-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.skill-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
}

.skill-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.category-grid .skill-item:hover .skill-icon {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}

.skill-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--neon-blue);
  background: rgba(77, 124, 255, 0.08);
  border: 1px solid rgba(77, 124, 255, 0.18);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CONTACT SECTION — GLASSMORPHISM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-link-card:hover {
  transform: translateX(6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
}

.resume-contact-card {
  border-color: rgba(255, 45, 85, 0.25);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.08), rgba(168, 85, 247, 0.08));
}

.resume-contact-card:hover {
  border-color: rgba(255, 45, 85, 0.5);
  box-shadow: 0 15px 35px rgba(255, 45, 85, 0.25), 0 0 30px rgba(168, 85, 247, 0.2);
}

.resume-icon-glow {
  background: rgba(255, 45, 85, 0.15);
  border-color: rgba(255, 45, 85, 0.35);
  color: var(--neon-red);
}

.resume-contact-card:hover .resume-icon-glow {
  background: rgba(255, 45, 85, 0.3);
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.5);
}

.glass-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-purple);
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-link-card:hover .glass-icon {
  background: rgba(168, 85, 247, 0.25);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-blue);
  letter-spacing: 0.12em;
}

.contact-link-value {
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Glass Contact Form */
.contact-form-card {
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  border-color: rgba(255, 45, 85, 0.25);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 50px rgba(255,45,85,0.1);
  width: 100%;
  box-sizing: border-box;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form-sub {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 26px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Glass Inputs */
.glass-input {
  background: rgba(10, 8, 18, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: all 0.28s var(--ease);
}

.glass-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(14, 10, 24, 0.75);
}

.glass-input:focus {
  border-color: var(--neon-purple);
  border-top-color: #d8b4fe;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4), 0 0 50px rgba(255, 45, 85, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  background: rgba(22, 16, 36, 0.92);
}

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

/* Glass Submit Button */
.glass-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--gradient-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(255, 45, 85, 0.35);
  transition: all 0.3s var(--ease-spring);
}

.glass-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(255, 45, 85, 0.5), 0 0 35px rgba(168, 85, 247, 0.4);
}

.submit-shine {
  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 var(--ease);
}

.glass-submit:hover .submit-shine {
  left: 100%;
}

#form-msg {
  display: none;
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   FOOTER
   ========================================================================= */
.footer {
  padding: 50px 0;
  position: relative;
  z-index: 2;
}

.footer-glass-box {
  padding: 24px;
  border-radius: 20px;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
/* Compact Desktop / Tablet Landscape (901px - 1040px) */
@media (max-width: 1040px) and (min-width: 901px) {
  .glass-nav {
    gap: 12px;
    padding: 0 12px 0 18px;
  }
  .nav-logo {
    font-size: 14px;
    gap: 6px;
  }
  .portfolio-nav-icon {
    width: 24px;
    height: 24px;
  }
  .nav-links {
    gap: 4px;
    padding: 3px 5px;
  }
  .nav-link {
    font-size: 12px;
    padding: 5px 10px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-terminal-btn {
    padding: 0 10px;
    height: 38px;
    font-size: 11.5px;
  }
  .nav-terminal-btn .terminal-kbd {
    display: none;
  }
  .nav-cta-glass {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 900px) {
  /* On Mobile: Hide desktop links, desktop CTA button, and desktop terminal button */
  .nav-links,
  .nav-cta-glass,
  .nav-terminal-btn {
    display: none !important;
  }
  
  .nav-wrapper {
    top: 14px;
    padding: 0 16px;
    height: 56px;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .glass-nav {
    padding: 0 7px 0 18px;
    height: 56px;
    gap: 12px;
    width: 100%;
    position: relative;
  }
  
  .nav-logo {
    font-size: 14px;
    gap: 8px;
  }
  
  .portfolio-nav-icon {
    width: 24px;
    height: 24px;
  }
  
  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  
  /* In-Place Morphing Hamburger to Close Button (Borderless & Transparent) */
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: transform 0.35s var(--ease-spring);
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
  }
  
  .hamburger-btn:hover,
  .hamburger-btn:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .burger-line {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background 0.25s ease;
    transform-origin: center;
  }
  
  .hamburger-btn:hover .burger-line {
    background: var(--neon-purple);
  }

  /* Morph in-place into X on click (Borderless & Transparent) */
  .hamburger-btn.open {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: rotate(90deg);
  }

  .hamburger-btn.open .burger-line {
    background: #ffffff;
  }

  .hamburger-btn.open:hover .burger-line {
    background: var(--neon-red);
  }

  .hamburger-btn.open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .hamburger-btn.open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Floating Glass Dropdown Menu (Previous Commit Style) */
  .mobile-glass-drawer {
    display: flex !important;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    background: rgba(14, 10, 24, 0.88);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.2);
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

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

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-nav-link {
    display: block;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-cyber);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
  }

  .mobile-glass-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: var(--gradient-main);
    color: #ffffff;
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.35);
    transition: transform 0.25s var(--ease-spring);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
  }

  .mobile-glass-cta * {
    pointer-events: none;
  }

  .mobile-glass-cta:hover {
    transform: scale(1.03);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .project-row:nth-child(even) .project-thumb {
    order: 0;
  }
  .project-row:nth-child(even) .project-info {
    order: 0;
  }
  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    width: 100%;
  }
  .contact-link-card {
    padding: 14px 18px;
    gap: 14px;
  }
  .contact-link-value {
    font-size: 14px;
  }
  .contact-form-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .form-group.full {
    grid-column: span 1;
    margin-bottom: 14px;
  }
  
  /* Mobile Hero Beats optimization */
  .hero-beat-intro {
    padding: 0 20px;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(34px, 8.5vw, 56px);
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-btns {
    gap: 10px;
  }
  .glass-btn-primary, .glass-btn-ghost {
    padding: 12px 22px;
    font-size: 13.5px;
  }
  .hero-beat-left,
  .hero-beat-right {
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 85px 16px;
  }
  .hero-story-card {
    max-width: 100%;
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
  }
  .story-title {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .story-desc {
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-progress {
    bottom: 20px;
    padding: 6px 14px;
    gap: 10px;
  }
  .hero-progress-bar {
    width: 110px;
    height: 3px;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
    width: 100%;
  }
}

@media (max-width: 550px) {
  .nav-wrapper {
    top: 12px;
    padding: 0 12px;
    height: 54px;
  }
  .glass-nav {
    padding: 0 7px 0 16px;
    height: 54px;
  }
  .nav-logo {
    font-size: 13px;
    gap: 6px;
  }
  .portfolio-nav-icon {
    width: 22px;
    height: 22px;
  }
  .hamburger-btn {
    width: 40px;
    height: 40px;
  }
  .mobile-glass-drawer {
    left: 12px;
    right: 12px;
    padding: 16px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .about-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .about-actions .btn-primary,
  .about-actions .btn-ghost {
    justify-content: center;
    width: 100%;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-link-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .glass-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .contact-link-label {
    font-size: 10px;
  }
  .contact-link-value {
    font-size: 13px;
  }
  .contact-form-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .contact-form-title {
    font-size: 24px;
  }
  .glass-input {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .glass-submit {
    padding: 14px;
    font-size: 14px;
  }
}

.cta-chat-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  transition: transform 0.35s var(--ease-spring);
}

.nav-cta-glass:hover .cta-chat-icon,
.mobile-glass-cta:hover .cta-chat-icon {
  transform: scale(1.25);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

/* ==========================================================================
   VERCEL WEB INTERFACE GUIDELINES & ACCESSIBILITY COMPLIANCE
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--neon-purple) !important;
  outline-offset: 3px !important;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6, .hero-headline, .hero-title, .section-title, .category-title {
  text-wrap: balance;
}

p, .hero-sub, .hero-subline, .section-desc, .about-bio, .project-desc {
  text-wrap: pretty;
}

/* Accessible minimum hit target of 44px */
.mobile-nav-link,
.hamburger-btn,
.mobile-glass-cta,
.form-submit,
.btn-primary,
.btn-ghost {
  min-height: 44px;
}

/* Prevent iOS Safari auto-zoom on input focus */
@media (max-width: 768px) {
  .form-input,
  .form-textarea,
  .glass-input {
    font-size: 16px !important;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-grid .skill-item {
    padding: 14px 10px;
  }
  .skill-icon {
    width: 32px;
    height: 32px;
  }
  .skill-icon img {
    width: 28px;
    height: 28px;
  }
  .skill-name {
    font-size: 12px;
  }
  .skill-tag {
    font-size: 8.5px;
    padding: 1px 5px;
  }
}

/* ==========================================================================
   INTERACTIVE CYBERPUNK TERMINAL BUTTONS (NAVBAR & MOBILE DRAWER)
   ========================================================================== */
.nav-terminal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform: none !important;
  user-select: none;
}

.nav-terminal-btn:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: none !important;
}

.nav-terminal-btn:active {
  transform: scale(0.97) !important;
}

.terminal-trigger-icon {
  color: #fbbf24;
  font-size: 13px;
  filter: drop-shadow(0 0 6px #fbbf24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.terminal-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Mobile Glass Drawer Terminal Trigger */
.mobile-glass-terminal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform: none !important;
  width: 100%;
  box-sizing: border-box;
}

.mobile-glass-terminal-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transform: none !important;
}

.mobile-glass-terminal-btn:active {
  transform: scale(0.98) !important;
}

/* Mobile Glass Drawer Resume Button */
.mobile-glass-resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-glass-resume-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.mobile-glass-resume-btn:active {
  transform: scale(0.98);
}

/* Terminal Modal Backdrop */
.cyber-terminal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 3, 7, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.cyber-terminal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Terminal Window */
.cyber-terminal-window {
  width: 100%;
  max-width: 680px;
  height: 480px;
  max-height: 85vh;
  background: rgba(10, 8, 18, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s var(--ease-spring);
}

.cyber-terminal-backdrop.active .cyber-terminal-window {
  transform: scale(1) translateY(0);
}

/* Scanlines overlay */
.cyber-terminal-window::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.6;
  z-index: 10;
}

/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(18, 14, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s;
}

.terminal-dot:hover {
  transform: scale(1.15);
}

.dot-close {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.6);
}

.dot-minimize {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.6);
}

.dot-maximize {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.6);
}

.terminal-title {
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.terminal-title-icon {
  color: var(--neon-cyan);
}

.terminal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}

.terminal-close-btn:hover {
  color: #ff5f56;
}

/* Terminal Body */
.terminal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.terminal-body::-webkit-scrollbar {
  width: 5px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}

.terminal-banner {
  color: var(--neon-purple);
  font-size: 10px;
  line-height: 1.15;
  margin-bottom: 8px;
  user-select: none;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.terminal-intro {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 6px;
}

.term-highlight {
  color: #4ade80;
  font-weight: 600;
}

.terminal-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-command-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.term-command-line .terminal-prompt {
  color: var(--neon-purple);
  font-weight: 600;
}

.term-command-line .term-cmd-text {
  color: #fff;
  font-weight: 600;
}

.term-output {
  color: #cbd5e1;
  font-size: 12.5px;
  padding-left: 14px;
  border-left: 2px solid rgba(168, 85, 247, 0.3);
}

.term-output-success {
  color: #4ade80;
}

.term-output-info {
  color: #38bdf8;
}

.term-output-warning {
  color: #fbbf24;
}

.term-output-accent {
  color: #f472b6;
}

.term-link-action {
  color: var(--neon-cyan);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.term-link-action:hover {
  color: #fff;
}

/* Terminal Input Line */
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.terminal-prompt {
  color: var(--neon-purple);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: #22d3ee;
}

/* Matrix Digital Rain Fullscreen Overlay */
.matrix-rain-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  background: #000;
  display: none;
  pointer-events: none;
}

.matrix-rain-canvas.active {
  display: block;
  pointer-events: auto;
}

.cyber-terminal-backdrop[hidden],
.matrix-rain-canvas[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.matrix-exit-badge {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #22c55e;
  border-radius: 50px;
  color: #22c55e;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}


@media (max-width: 600px) {
  .cyber-terminal-window {
    height: 80vh;
  }
  .terminal-banner {
    display: none;
  }
}
