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

/* --- Root & 2 Curated Warm Themes --- */
:root,
[data-theme="dark"] {
  /* Dark: Warm Evening Colors (Deep Espresso, Burnt Orange, Amber Glow) */
  --bg-primary: #120b07;
  --bg-secondary: #1a100a;
  --bg-tertiary: #271910;
  --bg-glass: rgba(26, 16, 10, 0.82);
  --bg-glass-card: rgba(36, 23, 15, 0.74);
  --bg-glass-hover: rgba(54, 34, 22, 0.9);

  --border-glass: rgba(245, 158, 11, 0.16);
  --border-glass-glow: rgba(255, 120, 73, 0.55);
  --border-accent: rgba(234, 88, 12, 0.4);

  --text-primary: #fdfaf6;
  --text-secondary: #d8c7b8;
  --text-muted: #9e8979;
  --text-dim: #635245;

  --accent-amber: #f59e0b;
  /* Sunset Amber */
  --accent-coral: #ea580c;
  /* Burnt Orange */
  --accent-gold: #fbbf24;
  /* Golden Horizon */
  --accent-terracotta: #c2410c;
  /* Rich Brown-Orange */
  --accent-sunset: #ff7849;
  /* Evening Glow */
  --accent-cyan: #f59e0b;
  /* Alias */
  --accent-green: #10b981;

  --glow-amber: 0 0 28px rgba(245, 158, 11, 0.45);
  --glow-coral: 0 0 28px rgba(234, 88, 12, 0.45);
  --glow-cyan: 0 0 28px rgba(245, 158, 11, 0.4);

  --gradient-laser: linear-gradient(135deg, #c2410c 0%, #ea580c 40%, #f59e0b 80%, #fbbf24 100%);
  --gradient-card: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(234, 88, 12, 0.03) 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.22), transparent 70%);
  --gradient-shimmer: linear-gradient(90deg, #c2410c 0%, #ea580c 25%, #f59e0b 50%, #fbbf24 75%, #c2410c 100%);

  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --nav-height: 78px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light: Warm Cream & Terracotta Theme */
[data-theme="light"] {
  --bg-primary: #faf6f0;
  --bg-secondary: #f2eae0;
  --bg-tertiary: #e6dbcd;
  --bg-glass: rgba(250, 246, 240, 0.9);
  --bg-glass-card: rgba(255, 252, 247, 0.95);
  --bg-glass-hover: #ffffff;

  --border-glass: rgba(180, 83, 9, 0.16);
  --border-glass-glow: rgba(217, 119, 6, 0.48);
  --border-accent: rgba(194, 65, 12, 0.35);

  --text-primary: #24160d;
  /* Dark Espresso */
  --text-secondary: #5c4331;
  /* Warm Hazelnut */
  --text-muted: #8a6e5a;
  /* Muted Earth */
  --text-dim: #b8a290;

  --accent-amber: #d97706;
  /* Cinnamon Amber */
  --accent-coral: #c2410c;
  /* Warm Terracotta */
  --accent-gold: #b45309;
  /* Bronze Gold */
  --accent-terracotta: #9a3412;
  /* Deep Clay */
  --accent-sunset: #ea580c;
  /* Sunset Orange */
  --accent-cyan: #d97706;
  /* Alias */
  --accent-green: #059669;

  --glow-amber: 0 0 22px rgba(217, 119, 6, 0.3);
  --glow-coral: 0 0 22px rgba(194, 65, 12, 0.3);
  --glow-cyan: 0 0 22px rgba(217, 119, 6, 0.3);

  --gradient-laser: linear-gradient(135deg, #9a3412 0%, #c2410c 45%, #d97706 85%, #b45309 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 238, 228, 0.92) 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.16), transparent 70%);
  --gradient-shimmer: linear-gradient(90deg, #9a3412 0%, #c2410c 25%, #d97706 50%, #b45309 75%, #9a3412 100%);
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  cursor: none;
}

[data-theme="light"] html {
  color-scheme: light;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

/* Custom Selection */
::selection {
  background: var(--accent-amber);
  color: #000;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   Animated Custom Cursor Engine
   ========================================================================== */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.2s ease;
  box-shadow: 0 0 10px var(--accent-amber);
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease-out;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Hovering interactive elements */
body.cursor-hover #cursor-ring {
  width: 58px;
  height: 58px;
  border-color: var(--accent-coral);
  background-color: rgba(245, 158, 11, 0.08);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 25px rgba(255, 107, 74, 0.35);
}

body.cursor-hover #cursor-dot {
  transform: translate(-50%, -50%) scale(1.6);
  background: var(--accent-coral);
}

/* Clicking ripple */
body.cursor-click #cursor-ring {
  transform: translate(-50%, -50%) scale(0.85);
  border-color: #fff;
}

@media (hover: none) and (pointer: coarse) {

  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

/* Interactive Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.38;
  transition: background var(--transition-normal);
}

.ambient-glow-1 {
  top: 5%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-coral), transparent 70%);
}

.ambient-glow-2 {
  bottom: 15%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-amber), transparent 70%);
}

/* Top Scroll Progress Line */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--gradient-laser);
  z-index: 10000;
  box-shadow: 0 0 16px var(--accent-amber);
  transition: width 0.08s ease-out;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Common Styling */
section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Reveal On Scroll Animation Base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border var(--transition-normal);
}

header.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--gradient-laser);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  box-shadow: var(--glow-amber);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--text-primary);
}

.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-laser);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-item-link:hover::after,
.nav-item-link.active::after {
  width: 100%;
}

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

/* Audio Toggle Button with Animated Wave */
.audio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.audio-btn:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.sound-bar {
  width: 2px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: height 0.2s ease, background 0.2s ease;
}

.audio-btn.active .sound-bar {
  background: var(--accent-amber);
  animation: soundBarPulse 1s ease-in-out infinite alternate;
}

.audio-btn.active .sound-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 10px;
}

.audio-btn.active .sound-bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 14px;
}

.audio-btn.active .sound-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 8px;
}

@keyframes soundBarPulse {
  0% {
    transform: scaleY(0.4);
  }

  100% {
    transform: scaleY(1.2);
  }
}

/* Theme Switcher Button */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-btn:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.btn-cta-nav {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  background: var(--gradient-laser);
  color: #000;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
}

/* Mobile Nav Toggle (Animated 3-Bar to 'X' Morph) */
.mobile-menu-btn {
  display: none;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  border-color: var(--accent-amber);
  background: var(--bg-glass-hover);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, background-color 0.25s ease;
  transform-origin: center;
}

.mobile-menu-btn.active {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* Morph into 'X' when active */
.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-amber);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-amber);
}

/* ==========================================================================
   BOLD & EYE-CATCHING HERO SECTION (WARM EDITORIAL)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 12px);
  padding-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .hero-section {
    height: 100vh;
    max-height: 100vh;
  }
}

/* Interactive Cursor Spotlight with Smooth Fade */
.hero-interactive-spotlight {
  position: absolute;
  top: var(--spotlight-y, 50%);
  left: var(--spotlight-x, 50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(255, 107, 74, 0.06) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: var(--spotlight-opacity, 0);
  transition: top 0.08s ease-out, left 0.08s ease-out, opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

/* Time-aware Greeting Capsule */
.hero-greeting-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.sun-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--accent-coral);
}

.sun-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-amber);
  opacity: 0.5;
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Hero Huge Bold Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-gold);
}

.gradient-text-shimmer {
  background: var(--gradient-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s linear infinite;
}

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

.typewriter-container {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 10px;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1.15em;
  background: var(--accent-coral);
  animation: blink 0.9s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-bio {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.52;
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--gradient-laser);
  color: #000;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255, 107, 74, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--accent-amber);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Quick Metrics Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Hero Visual / 3D Interactive Student Profile Card
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.avatar-card-3d {
  width: 100%;
  max-width: 290px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 10px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(245, 158, 11, 0.12),
    inset 0 1px 0 rgba(251, 191, 36, 0.2);
  transition: transform 0.2s ease-out, border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.avatar-card-3d::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient-laser);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0.25;
  filter: blur(14px);
  transition: opacity var(--transition-normal), filter var(--transition-normal);
}

.avatar-card-3d:hover::before {
  opacity: 0.55;
  filter: blur(20px);
}

.avatar-card-3d:hover {
  border-color: var(--border-glass-glow);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(245, 158, 11, 0.25),
    inset 0 1px 0 rgba(251, 191, 36, 0.35);
}

.avatar-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-card-3d:hover .avatar-img-wrapper img {
  transform: scale(1.04);
}

.avatar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 0px;
}

.avatar-student-info h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.avatar-student-info p {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
}

.gpa-tag {
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Floating HUD Tags */
.floating-hud-badge {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatAnim 4s ease-in-out infinite;
  z-index: 10;
}


.hud-bottom-right {
  bottom: -4%;
  right: -6%;
  animation-delay: 2s;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Scroll Down Cue */
.scroll-cue {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.scroll-cue:hover {
  opacity: 1;
  color: var(--accent-amber);
}

.mouse-scroll-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 7px;
  background: var(--accent-amber);
  border-radius: 2px;
  animation: mouseWheelMove 1.8s infinite;
}

@keyframes mouseWheelMove {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 16px);
    opacity: 0;
  }
}

/* ==========================================================================
   Education & Student Journey (Scroll Laser Timeline)
   ========================================================================== */
.timeline-section {
  position: relative;
}

.timeline-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Vertical Laser Track */
.timeline-track-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0%;
  background: var(--gradient-laser);
  box-shadow: 0 0 18px var(--accent-amber);
  border-radius: 2px;
  transition: height 0.15s ease-out;
}

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

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

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

/* Timeline Node / Beacon */
.timeline-node {
  position: absolute;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--text-dim);
  z-index: 5;
  transition: all var(--transition-normal);
}

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

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

.timeline-item.active-node .timeline-node {
  border-color: var(--accent-amber);
  background: var(--accent-coral);
  box-shadow: 0 0 22px var(--accent-amber);
  transform: scale(1.3);
}

.timeline-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(245, 158, 11, 0.2);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

.tag-pill {
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   Projects Section (Bento Grid & 3D Tilt)
   ========================================================================== */
.projects-section {
  position: relative;
}

.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-laser);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
}

.project-card {
  width: 100%;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-card.featured {
  grid-column: auto;
}

.project-card:hover {
  border-color: var(--border-glass-glow);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 35px rgba(245, 158, 11, 0.25);
}

.project-media-wrap {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media-wrap img {
  transform: scale(1.06);
}

.project-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(12, 9, 7, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
}

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

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.project-arrow-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.project-card:hover .project-arrow-icon {
  background: var(--accent-amber);
  color: #000;
  transform: translate(3px, -3px);
}

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

.project-stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mini-stat-pill {
  padding: 4px 10px;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-coral);
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.tech-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Skills Matrix & Interactive Radar
   ========================================================================== */
.skills-section {
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.skills-category-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.skills-category-card:hover {
  border-color: var(--border-glass-glow);
  transform: translateY(-3px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-amber);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skill-bar-item {
  margin-bottom: 18px;
}

.skill-bar-item:last-child {
  margin-bottom: 0;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-percentage {
  font-family: var(--font-mono);
  color: var(--accent-amber);
}

.skill-meter-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-laser);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-amber);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Radar HUD / Interactive Skill Badges */
.skills-interactive-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.interactive-hud-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.interactive-hud-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#skills-radar-canvas {
  width: 100%;
  max-width: 380px;
  height: 300px;
  margin: 0 auto 24px;
  display: block;
}

.interactive-chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.physics-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.physics-chip:hover {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Interactive Hacker Terminal Section
   ========================================================================== */
.terminal-section {
  position: relative;
}

.terminal-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: rgba(14, 10, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(245, 158, 11, 0.15);
  overflow: hidden;
}

.terminal-header {
  height: 44px;
  background: rgba(22, 16, 12, 0.85);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 10px;
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.terminal-status-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-chips-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(18, 13, 10, 0.7);
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.terminal-chips-bar::-webkit-scrollbar {
  display: none;
}

.terminal-chips-bar span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 2px;
}

.quick-cmd-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-amber);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
}

.quick-cmd-pill:hover {
  background: var(--accent-amber);
  color: #000;
  transform: translateY(-1px);
}

.terminal-body {
  height: 380px;
  padding: 16px 20px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.58;
  color: #fef3c7;
  -webkit-overflow-scrolling: touch;
}

.term-ascii {
  color: var(--accent-amber);
  font-size: clamp(0.32rem, 1.4vw, 0.54rem);
  line-height: 1.12;
  white-space: pre;
  margin-bottom: 12px;
  opacity: 0.95;
  letter-spacing: 0;
  word-spacing: 0;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.term-line {
  margin-bottom: 8px;
  color: var(--text-secondary);
  word-break: break-word;
}

.term-highlight {
  color: var(--accent-amber);
  font-weight: 700;
}

.term-cmd {
  color: var(--accent-coral);
  font-weight: 700;
  background: rgba(255, 107, 74, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.term-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

.term-link {
  color: var(--accent-amber);
  text-decoration: underline;
  word-break: break-all;
}

.term-error {
  color: #f87171;
}

.term-history-line {
  margin: 10px 0 4px;
  color: var(--text-secondary);
  word-break: break-word;
}

.term-prompt {
  color: var(--accent-green);
  font-weight: 700;
  margin-right: 6px;
  white-space: nowrap;
}

.term-entered-cmd {
  color: #fff;
  font-weight: 600;
}

.term-response {
  margin-bottom: 12px;
  color: var(--text-secondary);
  word-break: break-word;
}

.term-help-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 14px;
  margin: 8px 0;
}

.term-success-box {
  padding: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  color: #fffbeb;
  word-break: break-word;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 4px;
}

.terminal-input {
  flex-grow: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
}

/* ==========================================================================
   Terminal Cyber Dino Runner Game
   ========================================================================== */
.dino-game-wrapper {
  background: rgba(10, 6, 4, 0.95);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  margin: 12px 0 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(245, 158, 11, 0.08);
  animation: dinoFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes dinoFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dino-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.dino-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-amber);
}

.dino-icon {
  font-size: 1.1rem;
}

.dino-hud {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dino-hi {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.dino-score {
  color: #fff;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dino-exit-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dino-exit-btn:hover {
  background: #ef4444;
  color: #fff;
}

.dino-canvas-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #18100a;
  border: 1px solid rgba(245, 158, 11, 0.2);
  cursor: pointer;
}

.dino-canvas {
  width: 100%;
  height: 150px;
  display: block;
  image-rendering: pixelated;
}

.dino-mobile-controls {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  gap: 8px;
  z-index: 10;
}

.dino-ctrl-btn {
  background: rgba(26, 16, 10, 0.85);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.dino-ctrl-btn:active {
  background: var(--accent-amber);
  color: #000;
}

.dino-footer {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dino-footer b {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .dino-mobile-controls {
    display: flex;
  }
}

/* ==========================================================================
   Terminal Cyber Pong Game (Theme matching Dino Runner with amber border)
   ========================================================================== */
.pong-game-wrapper {
  background: rgba(10, 6, 4, 0.95);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  margin: 8px 0 12px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(245, 158, 11, 0.08);
  animation: dinoFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pong-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  gap: 8px;
  flex-wrap: wrap;
}

.pong-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 0.8rem;
}

.pong-icon {
  font-size: 1rem;
}

.pong-diff-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pong-diff-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pong-diff-btn:hover {
  color: #fff;
}

.pong-diff-btn.active {
  background: var(--accent-amber);
  color: #000;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

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

.pong-hi {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pong-score {
  color: #fff;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.8rem;
}

.pong-exit-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pong-exit-btn:hover {
  background: #ef4444;
  color: #fff;
}

.pong-canvas-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #18100a;
  border: 1px solid rgba(245, 158, 11, 0.2);
  cursor: pointer;
  box-sizing: border-box;
}

.pong-canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 600 / 140;
  max-height: 140px;
  display: block;
  image-rendering: pixelated;
}

.pong-mobile-controls {
  display: none;
  position: absolute;
  bottom: 6px;
  right: 6px;
  gap: 6px;
  z-index: 10;
}

.pong-ctrl-btn {
  background: rgba(26, 16, 10, 0.85);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.pong-ctrl-btn:active {
  background: var(--accent-amber);
  color: #000;
}

.pong-footer {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.pong-footer b {
  color: var(--accent-gold);
}

.pong-rally-tag {
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.76rem;
}

@media (max-width: 768px) {
  .pong-mobile-controls {
    display: flex;
  }

  .pong-header {
    gap: 6px;
  }
}

/* ==========================================================================
   Terminal Cyber Chess Game (3 AI Levels + 3 Timers, Matching Retro Theme)
   ========================================================================== */
.chess-game-wrapper {
  background: rgba(10, 6, 4, 0.96);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  margin: 4px 0 8px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(245, 158, 11, 0.08);
  animation: dinoFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.chess-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  gap: 6px;
  flex-wrap: wrap;
}

.chess-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--accent-amber);
  font-size: 0.78rem;
}

.chess-icon {
  font-size: 1rem;
}

.chess-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chess-selector-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.chess-sel-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.chess-diff-selector,
.chess-timer-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.chess-sel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chess-sel-btn:hover {
  color: #fff;
}

.chess-sel-btn.active {
  background: var(--accent-amber);
  color: #000;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.chess-exit-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chess-exit-btn:hover {
  background: #ef4444;
  color: #fff;
}

.chess-main-area {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 12px;
  align-items: start;
}

.chess-board-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 224px;
}

.chess-player-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 12, 8, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  height: 22px;
  box-sizing: border-box;
  overflow: hidden;
}

.chess-hud-profile {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.chess-player-name {
  font-size: 0.65rem;
  white-space: nowrap;
}

.chess-captured-box {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 16px;
  max-width: 80px;
  flex-wrap: wrap;
  overflow: hidden;
  margin: 0 4px;
  flex-shrink: 1;
}

.cap-piece {
  font-size: 0.72rem;
  line-height: 1;
  display: inline-block;
}

.cap-piece.white-cap {
  color: #fbbf24;
}

.cap-piece.black-cap {
  color: #f87171;
}

.chess-clock {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.74rem;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.chess-clock.low-time {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: clockPulse 1s infinite alternate;
}

@keyframes clockPulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.5;
  }
}

.chess-board-wrap {
  border: 1.5px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  background: #18100a;
  width: 224px;
  height: 224px;
  flex-shrink: 0;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  grid-template-rows: repeat(8, 28px);
  width: 224px;
  height: 224px;
  user-select: none;
}

.chess-square {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  box-sizing: border-box;
}

.chess-square.light-sq {
  background: #4a3222;
}

.chess-square.dark-sq {
  background: #24160e;
}

.chess-square:hover {
  filter: brightness(1.18);
}

.chess-square.selected-sq {
  background: rgba(245, 158, 11, 0.6) !important;
  box-shadow: inset 0 0 6px #f59e0b;
}

.chess-square.last-move-sq {
  background: rgba(251, 191, 36, 0.28) !important;
}

.chess-square.check-sq {
  background: rgba(239, 68, 68, 0.65) !important;
  box-shadow: inset 0 0 8px #ef4444;
}

.chess-square.capture-target-sq {
  box-shadow: inset 0 0 0 2.5px #ef4444, inset 0 0 8px rgba(239, 68, 68, 0.5) !important;
}

.chess-move-dot {
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.95), inset 0 0 3px #ffffff;
  pointer-events: none;
  display: block;
  animation: dotPulse 1.2s infinite alternate ease-in-out;
}

@keyframes dotPulse {
  from {
    transform: scale(0.85);
    opacity: 0.8;
  }

  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

.chess-piece {
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.12s ease-out;
  display: inline-block;
}

.chess-piece.white-piece {
  color: #fffbeb;
  text-shadow: 0 0 4px rgba(245, 158, 11, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.chess-piece.black-piece {
  color: #ff8c69;
  text-shadow: 0 0 4px rgba(239, 68, 68, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.chess-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-width: 0;
}

.chess-status-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-gold);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.chess-status-badge.alert {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  animation: badgePulse 1.2s infinite alternate;
}

@keyframes badgePulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.7;
  }
}

.chess-moves-container {
  background: rgba(14, 9, 6, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-height: 180px;
}

.chess-moves-header {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
  margin-bottom: 4px;
}

.chess-moves-list {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding-right: 2px;
}

.chess-moves-list::-webkit-scrollbar {
  width: 3px;
}

.chess-moves-list::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 3px;
}

.chess-no-moves {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.65rem;
  padding: 6px 0;
}

.chess-move-row {
  display: grid;
  grid-template-columns: 20px 1fr 1fr;
  gap: 3px;
  color: var(--text-secondary);
}

.chess-move-row .move-num {
  color: var(--text-muted);
}

.chess-move-row .move-w {
  color: #fff;
  font-weight: 600;
}

.chess-move-row .move-b {
  color: var(--accent-coral);
  font-weight: 600;
}

.chess-actions-bar {
  display: flex;
  gap: 6px;
}

.chess-action-btn {
  flex: 1;
  background: rgba(26, 16, 10, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chess-action-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  color: #fff;
}

.chess-footer {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px dashed rgba(245, 158, 11, 0.2);
  padding-top: 4px;
}

.chess-footer b {
  color: var(--accent-gold);
}

#chess-eval-tag {
  color: var(--accent-amber);
  font-weight: 700;
}

@media (max-width: 768px) {
  .chess-main-area {
    grid-template-columns: 1fr;
  }

  .chess-board-col {
    width: 100%;
  }

  .chess-board-wrap {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Achievements & Bento Awards Section
   ========================================================================== */
.awards-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-award-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transform-style: preserve-3d;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  will-change: opacity, transform;
  cursor: pointer;
}

.bento-award-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.bento-award-card:hover {
  border-color: var(--border-glass-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 30px rgba(245, 158, 11, 0.25);
}

.bento-icon-glow {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--gradient-laser);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #000;
  margin-bottom: 20px;
  box-shadow: var(--glow-amber);
}

.bento-award-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bento-award-org {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.bento-award-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Contact Section & Interactive Connect
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-size: 1.2rem;
}

.direct-meta h5 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.direct-meta p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-email-btn:hover {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

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

.form-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-laser);
  color: #000;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.4);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 107, 74, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Interactive Project Modal Drawer
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 6, 5, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 92%;
  max-width: 860px;
  max-height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), 0 0 45px rgba(245, 158, 11, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.45) transparent;
  overscroll-behavior: contain;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
  margin: 20px 0;
  /* Inset from rounded corners */
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 99px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;
}

.modal-content-inner {
  padding: 36px;
}

.modal-project-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.modal-project-tagline {
  font-size: 1.1rem;
  color: var(--accent-amber);
  margin-bottom: 24px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.modal-metric-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-glass);
}

.modal-metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-amber);
}

.modal-metric-lbl {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-section-h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.modal-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-bullet-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal-bullet-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-amber);
  font-size: 1.1rem;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   Toast Notification & Confetti Overlay
   ========================================================================== */
#toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-amber);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(245, 158, 11, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999998;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#matrix-canvas.active {
  opacity: 0.92;
}

/* ==========================================================================
   Responsive Design System for All Screens, Tablets & Mobile Devices
   Breakpoints:
   - Extra Large / Desktop (> 1200px)
   - Large Tablet / Small Laptop (992px - 1200px)
   - Tablet Portrait (768px - 991px)
   - Mobile Landscape / Large Phone (481px - 767px)
   - Mobile Small (<= 480px)
   ========================================================================== */

/* --- Tablet Landscape & Small Laptop (<= 1200px) --- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 20px;
  }

  .hero-grid {
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .project-card,
  .project-card.featured {
    grid-column: span 1;
  }

  .awards-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-featured {
    grid-column: span 2;
  }
}

/* --- Tablet Portrait & Smaller (<= 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    padding: calc(var(--nav-height) + 30px) 0 55px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    margin: 0 auto;
    max-width: 680px;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats-row {
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-interactive-container {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-info-col {
    padding-right: 0;
  }
}

/* --- Tablets / Medium Screens (<= 900px) --- */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card,
  .project-card.featured {
    grid-column: span 1;
  }
}

/* --- Mobile Landscape & Standard Tablets (<= 768px) --- */
@media (max-width: 768px) {
  section {
    padding: 65px 0;
  }

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

  .section-title {
    font-size: clamp(2rem, 5.5vw, 2.6rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.2vw, 2.6rem);
    line-height: 1.18;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1;
    min-width: 130px;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .avatar-card-3d {
    max-width: 270px;
    margin: 0 auto;
  }

  /* Projects Filter Bar */
  .projects-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .projects-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card,
  .project-card.featured {
    grid-column: span 1;
  }

  .project-card-header {
    height: 185px;
  }

  /* Timeline */
  .timeline-track-bg,
  .timeline-track-fill {
    left: 18px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 48px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-bottom: 28px;
  }

  .timeline-node {
    left: 10px !important;
    right: auto !important;
    width: 18px;
    height: 18px;
  }

  .timeline-card {
    padding: 18px 16px;
  }

  .timeline-role {
    font-size: 1.1rem;
  }

  .timeline-org {
    font-size: 0.88rem;
  }

  .timeline-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
  }

  .timeline-tags {
    justify-content: flex-start !important;
  }

  /* Awards Bento Grid */
  .awards-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card-featured {
    grid-column: span 1;
  }

  .bento-award-card {
    padding: 20px 18px;
  }

  /* Terminal Section */
  .terminal-wrapper {
    border-radius: var(--radius-lg);
  }

  .terminal-header {
    height: 38px;
    padding: 0 12px;
  }

  .terminal-status-badge {
    display: none;
  }

  .terminal-title {
    font-size: 0.76rem;
  }

  .terminal-chips-bar {
    padding: 6px 10px;
    gap: 6px;
  }

  .terminal-body {
    height: 320px;
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .term-help-grid {
    grid-template-columns: 95px 1fr;
    gap: 4px 8px;
    font-size: 0.78rem;
  }

  .term-prompt {
    font-size: 0.8rem;
  }

  .terminal-input {
    font-size: 0.82rem;
  }

  .dino-game-wrapper {
    padding: 8px 10px;
    margin: 8px 0 12px;
  }

  .dino-header {
    font-size: 0.75rem;
  }

  .dino-hud {
    gap: 8px;
    font-size: 0.74rem;
  }

  .dino-canvas-container {
    width: 100%;
    overflow: hidden;
  }

  .dino-canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 1;
  }

  .dino-mobile-controls {
    display: flex;
  }

  .dino-footer {
    font-size: 0.68rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Project Modal */
  .modal-backdrop {
    padding: 14px;
  }

  .modal-container {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-hero-img {
    height: 180px;
  }

  .modal-content-inner {
    padding: 20px 16px;
  }

  .modal-project-title {
    font-size: 1.35rem;
  }

  .modal-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-actions-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .modal-actions-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Contact Form */
  .contact-form {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

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

  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 35px 20px;
  }

  .footer-social-links {
    justify-content: center;
  }

  /* Centered Toast on Mobile */
  #toast-notification {
    bottom: 20px;
    right: auto;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 380px;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.88rem;
    transform: translate(-50%, 80px);
  }

  #toast-notification.show {
    transform: translate(-50%, 0);
  }
}

/* --- Mobile Small & Ultra-Compact Screens (<= 480px) --- */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 14px;
  }

  .logo-link {
    font-size: 0.98rem;
    gap: 8px;
  }

  .logo-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* Compact Audio Toggle on Tiny Screens */
  .audio-btn {
    padding: 5px 8px;
  }

  .audio-btn span {
    display: none;
  }

  .btn-cta-nav {
    display: none;
  }

  .hero-greeting {
    font-size: 0.76rem;
    padding: 4px 12px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .hero-typing-wrapper {
    font-size: 0.92rem;
  }

  .hero-bio {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 6px;
  }

  .stat-num {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .skills-radar-canvas {
    max-width: 240px;
  }

  .physics-chip {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .terminal-body {
    height: 290px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .term-help-grid {
    grid-template-columns: 80px 1fr;
    font-size: 0.74rem;
    gap: 4px 6px;
  }

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

  .dino-title span:last-child {
    font-size: 0.7rem;
  }

  .dino-hud {
    gap: 6px;
  }

  .dino-exit-btn {
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  .dino-ctrl-btn {
    padding: 8px 14px;
    font-size: 0.72rem;
  }
}