/* =========================================
   VARIABLES
   ========================================= */
:root {
  /* CRISP HD GRADIENT PALETTE */
  --bg-color: #050505; /* Pitch dark base */
  --surface-color: #0a0a0c; /* Solid crisp dark */
  --surface-elevated: #121215;
  --ink: #f0f0f0;
  --ink-dim: #a0a0a0;
  --ink-faint: #505050;
  --line-border: #1c1c20;
  --accent-color: #9d4edd; /* Vibrant purple */
  --accent-glow: rgba(157, 78, 221, 0.4);
  --silver: #C0C0C0; 
  --silver-glow: rgba(192, 192, 192, 0.2);
  --tint-color: #e0e0e0; /* Light Silver/White */
  --primary: var(--accent-color);
  --ink-muted: var(--ink-dim);

  /* Apple Design Language Tokens */
  --apple-subtext: #86868b;
  --apple-titanium: linear-gradient(180deg, #FFFFFF 15%, #A1A1A6 85%);
  --apple-titanium-dark: linear-gradient(180deg, #E5E5EA 0%, #636366 100%);
  --apple-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --apple-glass-border: rgba(255, 255, 255, 0.12);
  --apple-glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  --apple-card-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.75), inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
  --apple-green: #34c759;
  --apple-green-glow: rgba(52, 199, 89, 0.5);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --sp-2: 0.5rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border Radius */
  --br-sm: 4px;
  --br-md: 8px;
  --br-lg: 16px;
  --br-pill: 9999px;

  /* Shadows */
  --shadow-color: rgba(0, 0, 0, 0.8);
  --shadow-hover: rgba(255, 255, 255, 0.1);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-med: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

section[id], header[id] {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   Precision Cyber Reticle Cursor (Hardware Accelerated, Zero Lag)
   ========================================================================== */
@media (pointer: fine) {
  body, a, button, select, [role="button"] {
    cursor: none !important;
  }
  input, textarea {
    cursor: text !important;
  }
}

/* =========================================
   APPLE / LINEAR MINIMAL HALO CURSOR
   ========================================= */
.custom-cursor,
.cyber-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
  will-change: transform;
  mix-blend-mode: difference;
}

@media (pointer: fine) {
  .custom-cursor,
  .cyber-cursor {
    display: block;
  }
}

/* Precision Center Dot */
.custom-cursor .cursor-dot,
.cyber-cursor .cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 14px rgba(168, 85, 247, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
}

/* Minimal Frosted Halo Ring - Compact & Distinctly Visible */
.custom-cursor .cursor-halo,
.cyber-cursor .cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22), 0 0 20px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hovering Buttons / Links / Interactive CTAs */
.custom-cursor.hover-btn .cursor-halo,
.cyber-cursor.hover-btn .cursor-ring {
  width: 38px;
  height: 38px;
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35), 0 0 28px rgba(139, 92, 246, 0.35);
}

.custom-cursor.hover-btn .cursor-dot,
.cyber-cursor.hover-btn .cursor-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 1);
}

/* Hovering Cards / Containers */
.custom-cursor.hover-card .cursor-halo,
.cyber-cursor.hover-card .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
}

.custom-cursor.hover-card .cursor-dot,
.cyber-cursor.hover-card .cursor-dot {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Click / Active Tap Spring Physics */
.custom-cursor.is-active .cursor-halo,
.cyber-cursor.is-active .cursor-ring {
  transform: translate(-50%, -50%) scale(0.78);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.35);
}

.custom-cursor.is-active .cursor-dot,
.cyber-cursor.is-active .cursor-dot {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 1);
}

/* Offscreen fade */
.custom-cursor.is-hidden,
.cyber-cursor.is-hidden {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* =========================================
   LENIS SMOOTH SCROLL CORE RULES
   ========================================= */
html.lenis, html.lenis-smooth {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Custom HD Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: var(--br-pill);
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #040406;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(157, 78, 221, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  background-size: 100% 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -moz-osx-font-smoothing: grayscale;
}

#webgl-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Pure Crystal HD Glass - Noise Overlay Removed */
body::before {
  display: none;
}

/* =========================================
   CINEMATIC FILM GRAIN NOISE
   ========================================= */
.noise-overlay-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6,
.headline,
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.18;
}

.headline,
.section-title {
  background: var(--apple-titanium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  color: var(--apple-subtext) !important;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--trans-fast);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: var(--br-sm);
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-sm {
  max-width: 800px;
}

.section {
  padding: var(--sp-24) 0;
}

.bg-tint {
  background-color: var(--surface-color);
  border-top: 1px solid var(--line-border);
  border-bottom: 1px solid var(--line-border);
}

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

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--br-md);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
  cursor: pointer;
  border: none;
}

.btn-pill {
  border-radius: var(--br-pill);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--line-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--ink-faint);
}

.btn-primary-outline {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line-border);
}

.btn-primary-outline:hover {
  border-color: var(--accent-color);
  background-color: rgba(139, 92, 246, 0.05);
}

/* =========================================
   TRANSPARENT TEXT NAVBAR (EDGE-FEATHERED)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 74px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  /* Fading out smoothly towards both left and right ends */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.75) 3%, #000 7%, #000 93%, rgba(0, 0, 0, 0.75) 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.75) 3%, #000 7%, #000 93%, rgba(0, 0, 0, 0.75) 97%, transparent 100%);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, height 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}


.navbar.scrolled {
  height: 60px;
  background: rgba(10, 10, 15, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  top: 1.5rem !important;
  width: calc(100% - 3rem) !important;
  left: 1.5rem !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;

  height: 64px;
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.82) 0%, rgba(6, 6, 10, 0.45) 85%, transparent 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

/* Pure Minimal Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

/* Refined Minimal Action Buttons */
.nav-btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.nav-btn-resume:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.nav-btn-resume:hover .nav-btn-arrow {
  transform: translate(2px, -2px);
}

.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #06060a;
  padding: 0.48rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn-contact:hover {
  background: #f0f0f5;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.32);
}

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

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  color: var(--ink-dim);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 50%;
  text-decoration: none;
}

.nav-icon:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.nav-icon.linkedin:hover { color: #0a66c2; }
.nav-icon.github:hover { color: #ffffff; }
.nav-icon.mail:hover { color: #ea4335; }
.nav-icon.phone:hover { color: #10b981; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 6px;
}

.hamburger span:nth-child(2) {
  bottom: 6px;
}

.hamburger.open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  bottom: 11px;
  transform: rotate(-45deg);
}

/* Sleek Frosted Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  max-height: calc(100svh - 72px);
  overflow-y: auto;
  background: rgba(6, 6, 9, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 1.5rem max(2rem, calc(1.5rem + env(safe-area-inset-bottom)));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 99;
}

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

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-link span {
  font-size: 1rem;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.mobile-link:active,
.mobile-link:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

.mobile-menu-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mobile-menu-actions .btn-glass {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  justify-content: center;
}

.mobile-menu-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-socials .nav-icon {
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.menu-open {
  overflow: hidden !important;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  color: #FFFFFF;
}

/* Dynamic Background Glows (Disabled for Performance) */
.hero-glow {
  display: none;
}

#hero-glow-blue {
  display: none;
}

#hero-glow-purple {
  display: none;
}

/* 2.5D Character */
#hero-character-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none; /* Let mouse pass through to capture window events */
}

#hero-character {
  height: clamp(55vh, 65vh, 75vh);
  object-fit: contain;
  margin-left: 10%; /* Center slightly towards right */
  filter: drop-shadow(0 0 30px rgba(50, 120, 255, 0.20));
  will-change: transform;
}

/* Centered Typography Hero */
.hero-center-text {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  width: 100%;
  mix-blend-mode: difference;
}

.title-line {
  display: block;
  overflow: hidden;
  line-height: 0.95;
}

.char-wrap {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Apple Live Status Radar Pill */
.status-pill-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.38rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 6px 20px rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s var(--apple-spring);
  pointer-events: auto;
}

.status-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.status-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  background-color: var(--apple-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--apple-green-glow);
}

.status-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--apple-green);
  animation: appleRadar 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes appleRadar {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.status-pill-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #f2f2f7;
  text-transform: uppercase;
}

.hero-main-title {
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  background: var(--apple-titanium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  perspective: 1000px; /* for 3d parallax */
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.gradient-name {
  background: linear-gradient(to right, #4EA1FF, #D06BFF, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-small-text {
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.dot-sep {
  color: var(--accent-color);
  margin: 0 0.5rem;
}

.hero-underline {
  width: 150px;
  height: 3px;
  background: linear-gradient(to right, transparent, #16A8FF, #E04DFF, transparent);
  box-shadow: 0 0 15px rgba(224, 77, 255, 0.6);
  border-radius: 50%;
}

/* Right Interaction Indicator */
.hero-right-interaction {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.interaction-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interaction-icon svg {
  width: 24px;
  height: 24px;
  animation: pulse-horizontal 2s infinite ease-in-out;
}

.interaction-icon .arrow-left { animation-delay: 0s; }
.interaction-icon .arrow-right { animation-delay: 1s; }

.cursor-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.interaction-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Bottom CTA Pill */
.hero-bottom-cta {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.pill-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 0 15px rgba(110, 80, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.pill-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(110, 80, 255, 0.4);
}

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



@keyframes pulse-horizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.interaction-icon .arrow-right {
  animation: pulse-horizontal-right 2s infinite ease-in-out;
}

@keyframes pulse-horizontal-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Responsive Overrides for Hero */
@media (max-width: 1024px) {
  #hero-character {
    height: 55vh;
    margin-left: 0;
  }
  .hero-left-text {
    top: 20%;
  }
  .hero-right-interaction {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-left-text {
    left: 5%;
    top: 15%;
  }
  .hero-main-title {
    font-size: clamp(48px, 10vw, 64px);
  }
}


/* Seamless Marquee Ribbon */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.25rem 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin: var(--sp-12) 0;
  /* Smooth edge fade mask */
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  user-select: none;
}

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

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.marquee-content span:hover {
  color: var(--ink);
}

.marquee-spark {
  color: var(--accent-color);
  font-size: 0.75rem;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-duration: 60s;
  }
}

/* About Section */
.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--sp-8);
}

.scramble-dud {
  color: var(--accent-color);
  opacity: 0.7;
}

/* About Section (Free-Standing Portrait & Content) */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: var(--sp-8);
}

.about-figure-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.about-figure-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(56, 189, 248, 0.22) 45%, transparent 70%);
  filter: blur(45px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-figure-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  display: block;
}

.about-figure-wrapper:hover .about-figure-img {
  transform: scale(1.03) translateY(-6px);
  filter: drop-shadow(0 25px 50px rgba(56, 189, 248, 0.35));
}

.about-figure-wrapper:hover .about-figure-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bio-card,
.about-stats-card {
  background: rgba(14, 14, 22, 0.48);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--br-md);
  padding: 2.25rem;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), 0 16px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--apple-spring), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about-bio-card:hover,
.about-stats-card:hover {
  background: rgba(22, 22, 34, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), 0 24px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(157, 78, 221, 0.15);
}

.bio-text {
  font-size: 1.12rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Work & Filter Section */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.filter-btn {
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line-border);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--surface-color);
  border-color: var(--ink);
}

/* Stack Section */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.stack-col {
  background-color: var(--surface-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-border);
  border-radius: var(--br-md);
  padding: var(--sp-6);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.1s ease-out, box-shadow var(--trans-fast), border-color var(--trans-fast);
}

.stack-col:hover {
  border-color: var(--accent-color);
}

.stack-heading {
  font-size: 1.1rem;
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-border), transparent) 1;
  padding-bottom: var(--sp-2);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.chip-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
}

/* Work Section */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.bg-tint {
  /* background-color: var(--surface-color); removed to let noise and gradient through */
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
}

.tilt-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.4s ease;
  z-index: 2;
}

.tilt-card:hover::after {
  width: 100%;
}

.tilt-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.tilt-card > * {
  position: relative;
  z-index: 1;
}

.work-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--br-lg);
  padding: var(--sp-8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.work-card:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-highlight {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-color);
  background-color: var(--accent-tint);
  padding: 0.25rem 0.75rem;
  border-radius: var(--br-pill);
}

.project-name {
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
}

.project-desc {
  color: var(--ink-dim);
  margin-bottom: var(--sp-6);
  max-width: 600px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  border: 1px solid var(--line-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--br-pill);
}

/* Experience Section */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-border), transparent) 1;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.role {
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}

.company {
  color: var(--ink-dim);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

.impact {
  color: var(--ink-dim);
}

/* Contact & Footer */
.contact-section {
  padding: var(--sp-32) 0;
}

.contact-section .headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-4);
}

.contact-section .subhead {
  margin: 0 auto var(--sp-8);
}

/* =========================================
   INTERACTIVE DIRECT EMAIL CAPSULE BAR
   ========================================= */
.direct-email-bar-wrapper {
  display: flex;
  justify-content: center;
  margin: -1.25rem auto 2.5rem;
  width: 100%;
}

.direct-email-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.55rem 0.65rem 0.55rem 1.25rem;
  background: rgba(14, 14, 22, 0.60);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 16px 36px -10px rgba(0, 0, 0, 0.65);
  max-width: 480px;
  width: 100%;
  transition: all 0.35s var(--apple-spring);
}

.direct-email-bar:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 32, 0.72);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 0 20px 45px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.email-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}

.email-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--apple-green);
  box-shadow: 0 0 10px var(--apple-green-glow);
  flex-shrink: 0;
  animation: appleRadar 2.5s infinite;
}

.email-bar-icon {
  color: var(--ink-dim);
  flex-shrink: 0;
}

.email-bar-address {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.email-bar-address:hover {
  color: #ffffff;
  text-decoration: underline;
}

.email-bar-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s var(--apple-spring);
}

.email-bar-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.04);
}

.email-bar-copy-btn:active {
  transform: scale(0.95);
}

.email-bar-copy-btn.copied {
  background: rgba(52, 199, 89, 0.2);
  border-color: rgba(52, 199, 89, 0.6);
  color: #34c759;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.25s var(--apple-spring);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Footer Styles */
footer, .footer, #footer {
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.back-to-top:hover,
.back-to-top:active {
  color: var(--ink);
  background: rgba(157, 78, 221, 0.15);
  border-color: rgba(157, 78, 221, 0.4);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.88rem;
  color: var(--ink-dim);
  text-align: center;
  margin: 0;
  width: 100%;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
  margin: 0;
  letter-spacing: 0.06em;
  width: 100%;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--trans-slow), transform var(--trans-slow);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .packet {
    display: none;
    /* Hide animated dots if reduced motion */
  }
}

/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   ========================================= */

/* Mobile Utility Classes */
.desktop-only {
  display: flex !important;
}



/* Base Body & Viewport Safety */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Tablet & Large Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--sp-6);
  }

  .hero-main-title {
    font-size: clamp(54px, 10vw, 100px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile & Tablet Portrait (<= 900px) */
@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  .navbar {
    top: 0;
    width: 100%;
    height: 68px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .navbar.scrolled {
    height: 60px;
    background: linear-gradient(180deg, rgba(6, 6, 10, 0.85) 0%, rgba(6, 6, 10, 0.5) 85%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .mobile-menu {
    top: 74px;
    width: calc(100% - 2rem);
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: calc(100svh - 96px);
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Standard Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --sp-12: 2rem;
    --sp-16: 2.5rem;
    --sp-24: 3.5rem;
    --sp-32: 4.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Mobile Header - Transparent Edge-Faded */
  .navbar {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 62px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.8) 2%, #000 6%, #000 94%, rgba(0, 0, 0, 0.8) 98%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.8) 2%, #000 6%, #000 94%, rgba(0, 0, 0, 0.8) 98%, transparent 100%);
  }

  .navbar.scrolled {
    top: 0;
    height: 58px;
    background: linear-gradient(180deg, rgba(6, 6, 10, 0.88) 0%, rgba(6, 6, 10, 0.6) 85%, transparent 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .mobile-menu {
    top: 78px;
    width: calc(100% - 1.5rem);
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: calc(100svh - 90px);
  }

  .nav-socials {
    display: flex !important;
    gap: 0.35rem !important;
  }

  .nav-socials .nav-icon {
    padding: 0.35rem !important;
    color: var(--ink-dim) !important;
  }

  .nav-socials .nav-icon:hover,
  .nav-socials .nav-icon:active {
    color: var(--ink) !important;
  }

  .mobile-menu {
    top: 64px;
    left: 0;
    width: 100%;
    border-radius: 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding: calc(64px + 2rem) 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-center-text {
    text-align: left;
    align-items: flex-start;
    width: 100%;
  }

  .hero-left-text {
    width: 100%;
    left: 0 !important;
    top: 0 !important;
  }

  .hero-main-title {
    font-size: clamp(34px, 11vw, 56px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    word-break: break-word;
  }

  .hero-role-text {
    font-size: clamp(14px, 4.2vw, 19px) !important;
    line-height: 1.4 !important;
    margin-top: 1.25rem !important;
    word-break: break-word;
  }

  .hero-description {
    font-size: clamp(13px, 3.8vw, 15px) !important;
    line-height: 1.55 !important;
    margin-top: 0.75rem !important;
    max-width: 100%;
  }



  /* Marquee Ribbon Mobile */
  .marquee-container {
    margin: 1.75rem 0;
    padding: 0.85rem 0;
  }

  .marquee-content {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }

  .marquee-content span {
    font-size: 0.78rem;
    gap: 0.5rem;
  }

  /* Brutalist About Section Mobile */
  .brutalist-about-section {
    padding: 3.5rem 0 !important;
  }

  .brutalist-bio-large {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .brutalist-bio-large p {
    margin-bottom: 1.5rem !important;
    line-height: 1.35 !important;
  }

  .brutalist-bio-large .bio-xl {
    font-size: clamp(24px, 7vw, 38px) !important;
    line-height: 1.15 !important;
    display: inline-block;
    word-break: break-word;
  }

  .brutalist-bio-large .bio-lg {
    font-size: clamp(18px, 5.2vw, 26px) !important;
    line-height: 1.25 !important;
  }

  .brutalist-bio-large .bio-md {
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1.4 !important;
  }

  .brutalist-bio-large .bio-sm {
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.45 !important;
  }

  .brutalist-bio-divider {
    margin-bottom: 2rem !important;
  }

  .brutalist-stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    text-align: center;
  }

  .brutalist-stat {
    align-items: center;
  }

  .brutalist-stat .stat-number {
    font-size: clamp(28px, 8.5vw, 48px) !important;
    line-height: 1;
  }

  .brutalist-stat .stat-label {
    font-size: clamp(0.68rem, 2.5vw, 0.8rem) !important;
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
  }

  /* Stack Terminal Grid Mobile */
  .terminal-grid-wrapper {
    border-left: none !important;
    border-right: none !important;
  }

  .terminal-section-title {
    padding: 1.25rem 1rem !important;
    font-size: 1rem !important;
    letter-spacing: 0.15em !important;
  }

  .terminal-grid {
    grid-template-columns: 1fr !important;
  }

  .terminal-cell {
    padding: 1.5rem 1.25rem !important;
  }

  .terminal-heading {
    font-size: 1.15rem !important;
    margin-bottom: 1rem !important;
  }

  .terminal-list li {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Work Rows Mobile */
  .work-list {
    margin-top: 1.5rem;
  }

  .work-row {
    padding: 2rem 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  .work-row:hover {
    padding: 2rem 0 !important;
    background-color: transparent !important;
  }

  .work-row-info {
    max-width: 100% !important;
    width: 100%;
  }

  .work-row-category {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }

  .work-row-title {
    font-size: clamp(24px, 6.8vw, 40px) !important;
    line-height: 1.1 !important;
    word-break: break-word;
  }

  .work-row-desc {
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
    line-height: 1.5 !important;
  }

  .work-row-challenge {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .work-row-meta {
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  .work-row-tech {
    justify-content: flex-start !important;
    gap: 0.4rem !important;
  }

  .tech-pill {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  .work-row-links {
    gap: 1rem !important;
  }

  .btn-text {
    font-size: 0.88rem !important;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Timeline / Education Mobile */
  .timeline-item {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    padding: 1.5rem 0 !important;
  }

  .timeline-date {
    font-size: 0.8rem !important;
    color: var(--accent-color) !important;
  }

  .role {
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .company {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
  }

  .impact {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding: 3.5rem 0 !important;
  }

  .contact-section .headline {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }

  .contact-section .subhead {
    font-size: 0.92rem !important;
    padding: 0 0.5rem;
    margin-bottom: 2rem !important;
  }

  .contact-form-container {
    padding: 1.5rem 1.25rem !important;
    margin: 0 auto !important;
    border-radius: var(--br-md) !important;
    width: 100% !important;
  }

  .form-btn-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .form-btn-group .btn-glass {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.75rem 1.25rem !important;
    text-align: center;
    justify-content: center;
  }

  .social-links {
    margin-top: 2rem !important;
    gap: 1.25rem !important;
    flex-wrap: wrap !important;
  }

  .social-link {
    font-size: 0.85rem !important;
  }

  /* Button sizing on mobile */
  .btn-glass {
    padding: 0.6rem 1.4rem;
    font-size: 0.92rem;
  }

  /* Footer Mobile */
  footer, .footer, #footer {
    padding: 2.5rem 1rem 2rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  footer .copyright, .footer .copyright, #footer .copyright,
  footer .tagline, .footer .tagline, #footer .tagline {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Small Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-main-title {
    font-size: clamp(30px, 10.5vw, 44px) !important;
  }

  .brutalist-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .brutalist-stat .stat-number {
    font-size: clamp(24px, 8vw, 36px) !important;
  }

  .contact-form-container {
    padding: 1.25rem 1rem !important;
  }

  /* 16px font-size prevents iOS Safari from automatically zooming into the form inputs */
  .form-control {
    font-size: 16px !important;
    padding: 0.8rem !important;
    -webkit-appearance: none;
    border-radius: 8px !important;
  }

  footer, .footer, #footer {
    padding: 2.25rem 1rem 2rem !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* =========================================
   SCROLLBAR & PROGRESS
   ========================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--line-border);
  border-radius: var(--br-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-faint);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--surface-elevated);
  border-top: 1px solid var(--line-border);
  border-bottom: 1px solid var(--line-border);
  padding: var(--sp-4) 0;
  display: flex;
  margin: var(--sp-12) 0;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0 var(--sp-8);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Magnetic Button Prep */
.magnetic {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   INTERACTIVE DIRECT EMAIL CAPSULE BAR
   ========================================= */
.direct-email-bar-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.75rem;
  width: 100%;
}

.direct-email-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0.65rem 0.55rem 1.35rem;
  background: rgba(14, 14, 22, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 16px 36px -10px rgba(0, 0, 0, 0.65);
  max-width: 490px;
  width: 100%;
  transition: all 0.35s var(--apple-spring);
}

.direct-email-bar:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 32, 0.8);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 0 20px 45px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.email-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.email-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--apple-green);
  box-shadow: 0 0 10px var(--apple-green-glow);
  flex-shrink: 0;
  animation: appleRadar 2.5s infinite;
}

.email-bar-icon {
  color: var(--ink-dim);
  flex-shrink: 0;
}

.email-bar-address {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.email-bar-address:hover {
  color: #ffffff;
}

.email-bar-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  user-select: none;
}

.email-bar-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.02);
}

.email-bar-copy-btn.copied {
  background: rgba(52, 199, 89, 0.2);
  border-color: rgba(52, 199, 89, 0.5);
  color: #34c759;
}

/* =========================================
   CONTACT FORM & ULTRA SUBMIT BUTTON
   ========================================= */
.contact-form-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.25s var(--apple-spring);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-group:focus-within label {
  color: #ffffff;
}

.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  margin-top: 0.5rem;
  background: #ffffff;
  color: #06060a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-submit-btn:hover {
  background: #f0f0f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.contact-submit-btn:active {
  transform: scale(0.98);
}/* Preloader */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: var(--bg-color, #0f0f11);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-text {
  font-family: var(--font-heading, sans-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main, #ffffff);
}
.preloader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color, #8b5cf6);
}

/* =========================================
   BRUTALIST ABOUT SECTION
   ========================================= */
.brutalist-about-section {
  padding: var(--sp-32) 0;
  background-color: transparent;
}

.brutalist-about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.brutalist-bio-large {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-12);
}

.brutalist-bio-divider {
  width: 100%;
  height: 2px;
  background-color: var(--line-border);
  margin-bottom: var(--sp-12);
}

.brutalist-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.brutalist-stat {
  display: flex;
  flex-direction: column;
}

.brutalist-stat .stat-number {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--accent-color);
  line-height: 1;
}

.brutalist-stat .stat-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-top: var(--sp-2);
}

/* =========================================
   REVEAL FOOTER
   ========================================= */
.reveal-footer {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line-border);
  background: transparent;
  padding: var(--sp-12) var(--sp-6);
  margin-top: 10vh;
}

.reveal-footer-content {
  text-align: center;
  width: 100%;
}

.reveal-huge-text {
  font-family: var(--font-heading);
  font-size: clamp(50px, 10vw, 200px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
  /* Brutalist color */
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.reveal-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* =========================================
   INTRO CURTAIN
   ========================================= */
.intro-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  will-change: transform;
}
.intro-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.scroll-indicator {
  margin-top: 2rem;
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent-color);
  animation: scrollDownAnim 1.5s infinite;
}
@keyframes scrollDownAnim {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.hero-role-text {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 36px);
  color: var(--ink);
  margin-top: 1.5rem;
}
.hero-description {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--ink-dim);
  margin-top: 1rem;
  max-width: 600px;
  line-height: 1.6;
}
.hero-role-text span,
.hero-description span {
  color: var(--tint-color);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Animated Bio Text Formatting */
.brutalist-bio-large p {
  margin-bottom: var(--sp-6);
  line-height: 1.2;
  font-family: var(--font-heading);
}
.brutalist-bio-large .bio-sm {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.brutalist-bio-large .bio-md {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--ink-dim);
  margin-right: 0.5rem;
}
.brutalist-bio-large .bio-lg {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.5rem;
}
.brutalist-bio-large .bio-xl {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-right: 0.5rem;
}
.brutalist-bio-large .accent-text {
  color: var(--accent-color);
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--tint-color);
  border-radius: 0; /* Brutalist sharp edges */
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* =========================================
   TERMINAL GRID (STACK SECTION)
   ========================================= */
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.terminal-cell {
  padding: 2.25rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: -1px;
  margin-left: -1px;
  transition: all 0.35s var(--apple-spring);
  background: rgba(12, 12, 18, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.terminal-cell:hover {
  background: rgba(25, 25, 38, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.35), 0 12px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}
.terminal-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.terminal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.terminal-list li {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.terminal-list span {
  color: var(--tint-color);
  font-weight: bold;
}


/* =========================================
   WORK SECTION ROWS (CURSOR REVEAL)
   ========================================= */
.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-border);
  margin-top: 2rem;
}
.work-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--br-md);
  cursor: pointer;
  transition: all 0.35s var(--apple-spring);
}
.work-row:hover {
  background-color: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}
.work-row:active {
  transform: scale(0.985);
}
.work-row-info {
  flex: 1;
  max-width: 50%;
}
.work-row-category {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--tint-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.work-row-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.work-row:hover .work-row-title {
  color: var(--ink);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.work-row-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin-top: 1rem;
  line-height: 1.5;
}
.work-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  z-index: 5;
}
.work-row-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tech-pill {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.work-row-links {
  display: flex;
  gap: 1.5rem;
}
.btn-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.btn-text:hover {
  color: var(--tint-color);
}
.work-hover-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0.8);
  overflow: hidden;
  will-change: transform, opacity;
}
.work-hover-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .work-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .work-row-info { max-width: 100%; }
  .work-row-meta { align-items: flex-start; }
  .work-row-tech { justify-content: flex-start; }
  .work-hover-reveal { display: none; }
}

/* About Section Glowing Orb Effect */
.about-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--tint-color) 0%, var(--accent-color) 30%, transparent 70%);
  opacity: 0.15;
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  animation: orbitPulse 10s infinite ease-in-out alternate;
}

@keyframes orbitPulse {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.1; }
  100% { transform: translate(-50%, -50%) scale(1.2) rotate(45deg); opacity: 0.25; }
}

/* =========================================
   NAME AURA GLOW
   ========================================= */
.name-aura-wrapper {
  position: relative;
  display: inline-block;
}

.name-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(37, 99, 235, 0.4) 60deg,  /* Deep Blue */
    transparent 120deg,
    transparent 180deg,
    rgba(234, 88, 12, 0.4) 240deg, /* Warm Orange/Silver */
    transparent 300deg,
    transparent 360deg
  );
  filter: blur(50px);
  z-index: 1;
  border-radius: 50%;
  animation: spinAura 10s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes spinAura {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* =========================================
   BENTO GRID
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.bento-card {
  background: rgba(14, 14, 22, 0.48);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 20px 40px -15px rgba(0, 0, 0, 0.75);
  border-radius: var(--br-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--apple-spring);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bento-card:hover {
  background: rgba(22, 22, 34, 0.65);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.4), 0 28px 60px -15px rgba(0, 0, 0, 0.85);
  transform: translateY(-4px);
}

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

.bento-card:active {
  transform: scale(0.985);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.bento-desc {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Col spans */
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

@media (max-width: 1024px) {
  .col-span-8, .col-span-6, .col-span-4 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .col-span-3 { grid-column: span 6; }
}
@media (max-width: 480px) {
  .col-span-3 { grid-column: span 12; }
}

/* Awwwards Updates */
.preloader-counter {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 500;
  color: var(--ink-faint);
  line-height: 1;
}

.intro-text {
  opacity: 0;
  position: absolute;
}

.stagger-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.stagger-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* Pure Crystal HD Glass - Film Grain Removed */
body::after {
  display: none;
}

/* =========================================
   GLOW LOADER
   ========================================= */
.glow-loader-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
}

.glow-loader-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.6em;
  color: var(--ink-faint);
  text-transform: uppercase;
  z-index: 2;
  margin-left: 0.6em;
}

.glow-loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 60%, rgba(139, 92, 246, 0.15) 80%, rgba(200, 150, 255, 1) 100%);
  -webkit-mask: radial-gradient(transparent 68%, black 70%);
  mask: radial-gradient(transparent 68%, black 70%);
  animation: glowSpin 1s linear infinite;
}

.glow-loader-ring::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
}

/* =========================================
   NAME AURA GLOW
   ========================================= */
.name-aura-wrapper {
  position: relative;
  display: inline-block;
}

.name-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(37, 99, 235, 0.4) 60deg,  /* Deep Blue */
    transparent 120deg,
    transparent 180deg,
    rgba(234, 88, 12, 0.4) 240deg, /* Warm Orange/Silver */
    transparent 300deg,
    transparent 360deg
  );
  filter: blur(50px);
  z-index: 1;
  border-radius: 50%;
  animation: spinAura 10s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes spinAura {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* =========================================




/* =========================================
   GLASSMORPHISM BUTTON
   ========================================= */
.btn-glass {
  position: relative;
  background: rgba(15, 15, 15, 0.4);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 30px -10px rgba(0, 0, 0, 0.8),
    inset 0 4px 10px rgba(255, 255, 255, 0.05),
    inset 0 -8px 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0.6rem 2.2rem;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.03) 25%, transparent 50%, rgba(255, 255, 255, 0.1) 75%, transparent 100%);
  animation: rotateSweep 6s linear infinite;
  pointer-events: none;
}

.btn-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(25, 25, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 15px 40px -10px rgba(0, 0, 0, 0.9),
    inset 0 4px 12px rgba(255, 255, 255, 0.1),
    inset 0 -8px 20px rgba(0, 0, 0, 0.9);
}

.btn-glass:hover::after {
  opacity: 1;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

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

/* =========================================
   APPLE SPRING PHYSICS & TACTILE FEEDBACK
   ========================================= */
.btn-glass,
.btn,
.mobile-btn,
.back-to-top,
.social-link,
.nav-icon {
  transition: transform 0.36s var(--apple-spring), background 0.36s var(--apple-spring), border-color 0.36s var(--apple-spring), box-shadow 0.36s var(--apple-spring) !important;
}

.btn-glass:active,
.btn:active,
.mobile-btn:active,
.back-to-top:active {
  transform: scale(0.96) !important;
}

.work-row:active,
.bento-card:active {
  transform: scale(0.985);
}

/* Apple Milled Glass Contact Form */
.contact-form-container {
  background: rgba(14, 14, 22, 0.52) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 24px 50px -10px rgba(0, 0, 0, 0.85) !important;
  border-radius: var(--br-lg) !important;
}

/* Card Mouse Spotlight */
.bento-card,
.terminal-cell,
.tilt-card,
.contact-form-container {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* =========================================
   COMMAND PALETTE & AUDIO CONTROLS
   ========================================= */
.nav-cmd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.nav-cmd-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.footer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.sound-toggle-btn.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.22);
}

.sound-toggle-btn.active .sound-state {
  color: #a855f7;
}

.footer-cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.footer-cmd-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cmd-kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #ffffff;
}

/* VisionOS Command Palette Modal */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  width: 90%;
  max-width: 600px;
  max-height: 72vh;
  background: rgba(14, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 28px 65px -12px rgba(0, 0, 0, 0.95), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.open .cmd-palette-modal {
  transform: scale(1) translateY(0);
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-search-icon {
  color: var(--ink-dim);
  flex-shrink: 0;
}

.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.cmd-palette-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cmd-esc-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-dim);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  user-select: none;
}

.cmd-palette-list {
  flex: 1;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0.6rem 0.75rem;
  max-height: 48vh;
}

.cmd-palette-list::-webkit-scrollbar {
  width: 6px;
}

.cmd-palette-list::-webkit-scrollbar-track {
  background: transparent;
}

.cmd-palette-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.cmd-palette-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.cmd-group-title {
  padding: 0.65rem 0.85rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  user-select: none;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.15s ease;
  user-select: none;
}

.cmd-item svg {
  color: var(--ink-dim);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.cmd-item-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.cmd-item:hover svg,
.cmd-item.selected svg {
  color: #ffffff;
}

.cmd-item:hover .cmd-item-tag,
.cmd-item.selected .cmd-item-tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.cmd-palette-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  color: #ffffff;
}

@media (max-width: 640px) {
  .cmd-palette-backdrop {
    padding-top: 8vh;
  }
  .cmd-palette-modal {
    width: 95%;
  }
  .cmd-palette-footer {
    display: none;
  }
}

/* =========================================
   WORK ROW CASE STUDY TRIGGER BUTTON
   ========================================= */
.work-row {
  cursor: pointer;
}

.work-case-study-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s var(--apple-spring);
  user-select: none;
}

.work-case-study-trigger:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.work-case-study-trigger span {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.work-case-study-trigger:hover span {
  transform: translate(2px, -2px);
}

/* =========================================
   VISIONOS PROJECT CASE STUDY DRAWER MODAL
   ========================================= */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

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

.project-modal-drawer {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 18, 0.92);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(139, 92, 246, 0.12);
  overflow: hidden;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.open .project-modal-drawer {
  transform: scale(1) translateY(0);
}

.project-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 24, 0.6);
  flex-shrink: 0;
}

.project-drawer-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-category-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.project-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.project-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.project-drawer-close {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-drawer-close .close-kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.project-drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.project-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.project-drawer-content::-webkit-scrollbar {
  width: 6px;
}

.project-drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-section-block {
  margin-bottom: 2.25rem;
}

.project-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.block-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

/* Architecture Flow Nodes */
.architecture-flow-diagram {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem;
  background: rgba(6, 6, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.architecture-flow-diagram::-webkit-scrollbar {
  height: 5px;
}

.architecture-flow-diagram::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.flow-node {
  flex: 1;
  min-width: 170px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
}

.flow-node:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.flow-node-step {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.flow-node-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.flow-node-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Engineering Narrative Card */
.project-narrative-card {
  padding: 1.75rem;
  background: rgba(6, 6, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.narrative-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.narrative-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.narrative-text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

/* Video Walkthrough Container */
.project-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.project-video-container iframe,
.project-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #000000;
}

@media (max-width: 768px) {
  .project-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .project-modal-drawer {
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .project-drawer-header {
    padding: 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .project-drawer-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .project-drawer-content {
    padding: 1.25rem;
  }
  .architecture-flow-diagram {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

/* =========================================
   BENTO BOX GRID SYSTEM
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: transparent;
}

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), transparent);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.bento-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(157, 78, 221, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bento-heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.bento-desc {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

.bento-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-list li::before {
  content: '✦';
  color: var(--accent-color);
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
}

/* =========================================
   GLOBAL FLASHLIGHT (RAMX.IN)
   ========================================= */
#global-flashlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* =========================================
   SCROLL PROGRESS (ANIMESHH.ME)
   ========================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #f97316);
  z-index: 99999;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}



/* Bento Card Expansion States */
.bento-card {
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bento-card.expanded {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

/* GSAP Override for Modal */
.project-modal-backdrop {
  will-change: transform, opacity;
  transition: none !important;
}
