/* ==========================================================================
   LE NHUT KHANG VO - PORTFOLIO STYLESHEET
   Design Language: 2026 AI-Generated Generative Premium Dark-Mode
   Palette: Near-Black Base (#090a0f) + Electric Violet (#8b5cf6) + Cyber Cyan (#22d3ee)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Color Palette */
  --bg-base: #090a0f;
  --bg-surface-0: rgba(14, 16, 24, 0.7);
  --bg-surface-1: rgba(19, 22, 33, 0.65);
  --bg-surface-2: rgba(28, 32, 48, 0.75);
  --bg-surface-active: rgba(35, 40, 60, 0.85);

  --accent-violet: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-indigo: #4f46e5;
  --accent-magenta: #ec4899;
  --accent-emerald: #10b981;

  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  --card-border-glow: linear-gradient(135deg, rgba(34, 211, 238, 0.4) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(255, 255, 255, 0.05) 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Hairline Borders */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hairline-bright: rgba(255, 255, 255, 0.16);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --border-radius-pill: 9999px;

  /* Shadows & Glows */
  --glow-violet: 0 0 35px rgba(139, 92, 246, 0.25);
  --glow-cyan: 0 0 35px rgba(34, 211, 238, 0.25);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: #f1f5f9;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-base);
}

/* --- Grain / Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
}

/* --- Aurora Animated Glow Blobs --- */
.aurora-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.65;
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.blob-1 {
  top: -15%;
  left: 10%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(79, 70, 229, 0.15) 70%, transparent 100%);
  animation: blobDriftOne 22s infinite alternate ease-in-out;
}

.blob-2 {
  top: 25%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, rgba(16, 185, 129, 0.1) 70%, transparent 100%);
  animation: blobDriftTwo 26s infinite alternate ease-in-out;
}

.blob-3 {
  bottom: 10%;
  left: 5%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(139, 92, 246, 0.15) 60%, transparent 100%);
  animation: blobDriftThree 30s infinite alternate ease-in-out;
}

.blob-4 {
  top: 60%;
  right: 25%;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(34, 211, 238, 0.1) 70%, transparent 100%);
  animation: blobDriftOne 32s infinite alternate-reverse ease-in-out;
}

@keyframes blobDriftOne {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 45px) scale(1.08); }
  100% { transform: translate(-40px, 75px) scale(0.95); }
}

@keyframes blobDriftTwo {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.1); }
  100% { transform: translate(45px, 60px) scale(0.92); }
}

@keyframes blobDriftThree {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(50px, -60px) scale(1.05); }
  100% { transform: translate(-50px, 30px) scale(1); }
}

/* --- Custom Cursor Styles --- */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  box-shadow: 0 0 10px #22d3ee;
}

.custom-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(139, 92, 246, 0.04);
  transition: width 0.25s ease-out, height 0.25s ease-out, background-color 0.25s ease, border-color 0.25s ease;
}

.custom-cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.35);
}

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

/* --- Cursor FX Canvas (smoke trail + click/tap wave) --- */
.cursor-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
}

/* --- Typography & Utilities --- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan-400 { color: #22d3ee; }
.text-violet-400 { color: #a78bfa; }
.text-indigo-400 { color: #818cf8; }
.text-emerald-400 { color: #34d399; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-400 { color: #94a3b8; }
.w-full { width: 100%; }

/* --- Section Layout Container --- */
main {
  position: relative;
  z-index: 10;
}

.section-container {
  padding: 6.5rem 1.5rem;
  position: relative;
}

.section-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  backdrop-filter: blur(10px);
}

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

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  max-width: 800px;
}

.section-desc {
  font-size: 1.08rem;
  color: #94a3b8;
  margin-top: 1rem;
  max-width: 680px;
  line-height: 1.65;
}

/* --- Glassmorphism Cards Base --- */
.glass-card {
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--card-border-glow);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity var(--transition-normal);
}

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

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.12);
}

/* Card Spotlight Follower */
.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 92, 246, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover .card-spotlight {
  opacity: 1;
}

/* 3D Tilt Card Container */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Navigation Bar --- */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transition: padding var(--transition-normal), background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
}

.fixed-nav.scrolled {
  padding: 0.75rem 1.5rem;
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  padding: 0.2rem 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.22rem;
  color: #ffffff;
  letter-spacing: -0.025em;
  transition: all var(--transition-fast);
}

.nav-brand:hover .brand-name {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.85rem);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 1.4rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-hairline);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-cyan);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.social-row-mobile {
  display: flex;
  gap: 1.25rem;
  color: #94a3b8;
}

.social-row-mobile a:hover {
  color: #ffffff;
}

/* --- Button Styling (Magnetic & Holographic) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
  will-change: transform;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55), 0 0 20px rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border-color: var(--border-hairline-bright);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #f1f5f9;
  border-color: var(--border-hairline-bright);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border-color: transparent;
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 80%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.65s ease;
}

.glow-button:hover::after {
  transform: translateX(100%) rotate(25deg);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
}

/* Volumetric smoke canvas behind the hero content */
.hero-smoke-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.hero-badge-container {
  margin-bottom: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.beacon-indicator {
  position: relative;
  width: 10px;
  height: 10px;
}

.beacon-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
}

.beacon-wave {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.6;
  animation: pulseWave 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseWave {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
}

.hero-headline {
  font-size: clamp(2.05rem, 5.8vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #ffffff;
  max-width: 1050px;
  margin-bottom: 1.85rem;
}

.hero-gradient-text {
  background: linear-gradient(
    110deg,
    #22d3ee 0%,
    #8b5cf6 28%,
    #ec4899 50%,
    #8b5cf6 72%,
    #22d3ee 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: heroGradientShift 9s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: #94a3b8;
  max-width: 780px;
  margin-bottom: 2.75rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Lucide icon size constraints - applies to all <svg> injected from <i data-lucide> */
.btn svg, .btn i[data-lucide] { flex-shrink: 0; }
.btn svg { width: 1rem; height: 1rem; }
.btn-sm svg { width: 0.875rem; height: 0.875rem; }

/* Generic utility classes for Lucide icon sizes */
.w-3 svg,   i[data-lucide].w-3   { width: 0.75rem;  height: 0.75rem; }
.w-3\.5 svg, i[data-lucide].w-3\.5 { width: 0.875rem; height: 0.875rem; }
.w-4 svg,   i[data-lucide].w-4   { width: 1rem;     height: 1rem; }
.w-5 svg,   i[data-lucide].w-5   { width: 1.25rem;  height: 1.25rem; }
.w-6 svg,   i[data-lucide].w-6   { width: 1.5rem;   height: 1.5rem; }

i[data-lucide].w-3   { display: inline-flex; width: 0.75rem;  height: 0.75rem; }
i[data-lucide].w-3\.5{ display: inline-flex; width: 0.875rem; height: 0.875rem; }
i[data-lucide].w-4   { display: inline-flex; width: 1rem;     height: 1rem; }
i[data-lucide].w-5   { display: inline-flex; width: 1.25rem;  height: 1.25rem; }
i[data-lucide].w-6   { display: inline-flex; width: 1.5rem;   height: 1.5rem; }

/* After Lucide replaces <i> with <svg>, lock the SVG dimensions using parent class */
i[data-lucide].w-3 > svg,    i[data-lucide].w-3   { width: 0.75rem  !important; height: 0.75rem  !important; }
i[data-lucide].w-3\.5 > svg, i[data-lucide].w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
i[data-lucide].w-4 > svg,    i[data-lucide].w-4   { width: 1rem     !important; height: 1rem     !important; }
i[data-lucide].w-5 > svg,    i[data-lucide].w-5   { width: 1.25rem  !important; height: 1.25rem  !important; }
i[data-lucide].w-6 > svg,    i[data-lucide].w-6   { width: 1.5rem   !important; height: 1.5rem   !important; }

.hero-socials-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  width: 100%;
}

.social-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.8rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-hairline);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.scroll-down-arrow {
  position: absolute;
  bottom: -2rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.scroll-down-arrow:hover {
  color: var(--accent-cyan);
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.about-narrative-card {
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.narrative-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.narrative-p {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

/* Visa Callout Card */
.visa-callout-card {
  margin-top: 1.75rem;
  padding: 1.4rem;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.visa-icon-box {
  padding: 0.5rem;
  background: rgba(34, 211, 238, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visa-details {
  flex: 1;
}

.visa-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.visa-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.badge-status-green {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--border-radius-pill);
}

.visa-description {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* About Stats Bento */
.about-stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748b;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.stat-prefix,
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-suffix {
  font-size: 1.15rem;
  margin-left: 0.25rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.stat-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* --- INFINITE MARQUEE STRIP --- */
.marquee-strip-container {
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 1rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

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

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.tech-icon-circle {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

/* --- SKILLS BENTO GRID --- */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.col-span-md-2 {
  grid-column: span 1;
}

@media (min-width: 900px) {
  .col-span-md-2 {
    grid-column: span 2;
  }
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.bento-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 1.35rem;
  line-height: 1.5;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-pill);
  transition: all var(--transition-fast);
}

.tech-pill .tech-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-pill.highlight {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.tech-pill:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  color: #ffffff;
}

.tech-pill-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.65rem;
  border-radius: var(--border-radius-pill);
}

.tech-pill-sm .tech-icon-img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

/* --- EXPERIENCE VERTICAL TIMELINE --- */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-spine {
  position: absolute;
  top: 1.5rem;
  bottom: 2rem;
  left: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-violet) 60%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-node {
  position: absolute;
  /* Centre the dot on the spine (spine sits at 0.75rem inside a 2rem padded track) */
  left: -1.25rem;
  top: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid var(--bg-base);
  z-index: 2;
}

.node-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.node-ring {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  animation: pulseNode 3s infinite ease-out;
}

@keyframes pulseNode {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.timeline-content {
  padding: 2.5rem;
}

.timeline-header-block {
  margin-bottom: 1.25rem;
}

.role-location {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline-date-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-pill);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #64748b;
}

.timeline-role {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 500;
  color: #a78bfa;
  margin-top: 0.2rem;
}

.timeline-summary {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.experience-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.experience-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.6;
}

.experience-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1.3;
}

.bullet-highlight {
  color: #e2e8f0;
  font-weight: 600;
}

.timeline-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
}

/* --- TIER 1: FEATURED PROJECT SHOWCASE --- */
.featured-project-card {
  padding: 3.5rem 3rem;
  margin-bottom: 4.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.15);
}

.featured-project-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.featured-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge-featured {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  padding: 0.3rem 0.85rem;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.06em;
}

.badge-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: var(--border-radius-pill);
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--border-radius-pill);
}

.featured-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.featured-pitch {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.85rem;
}

.featured-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.highlight-icon {
  padding: 0.45rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.highlight-text {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
}

.highlight-text strong {
  color: #f1f5f9;
}

.featured-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.featured-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.featured-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: 0.45rem 0.9rem;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.featured-link-pill:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* --- MOCKUP VISUAL CONTAINER (Browser + Phone) --- */
.featured-mockup-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Browser Chrome Frame */
.browser-frame-mockup {
  width: 100%;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.browser-top-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: #141824;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.light.red { background: #ef4444; }
.light.yellow { background: #f59e0b; }
.light.green { background: #10b981; }

.browser-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-actions-dummy {
  display: flex;
  gap: 4px;
}

.dummy-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}

/* Mockup Screen Content (Browser) */
.mockup-screen-content {
  position: relative;
  background: #090b10;
  overflow: hidden;
  border-bottom-left-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
  line-height: 0;
}

.browser-img-wrapper {
  position: relative;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}

.browser-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-img-wrapper:hover .browser-screenshot-img {
  transform: scale(1.02);
}

.browser-overlay-hint {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #e2e8f0;
  line-height: 1;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 2;
}

.browser-img-wrapper:hover .browser-overlay-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Overlapping Phone Frame Mockup */
.phone-frame-mockup {
  position: absolute;
  right: -1.25rem;
  bottom: -2.25rem;
  width: 200px;
  background: #0f121d;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(34, 211, 238, 0.2);
  padding: 7px;
  z-index: 10;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-frame-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(34, 211, 238, 0.3);
}

.phone-notch {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.notch-island {
  width: 44px;
  height: 8px;
  background: #000000;
  border-radius: 6px;
}

.phone-screen-content {
  background: #000000;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}

.phone-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.96);
  cursor: zoom-in;
}

.phone-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* Screenshot Lightbox Modal */
.screenshot-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.screenshot-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.screenshot-modal-card {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.screenshot-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #141926;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-modal-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.screenshot-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.screenshot-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.screenshot-modal-body {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(92vh - 60px);
}

.screenshot-modal-body img {
  max-width: 100%;
  max-height: calc(92vh - 80px);
  object-fit: contain;
  border-radius: 4px;
}

/* --- TIER 2: SUPPORTING PROJECTS & FILTER TAB BAR --- */
.tier-two-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.tier-two-h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

.filter-tab-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: 0.3rem;
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(12px);
}

.filter-indicator-pill {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-pill);
  transition: transform var(--transition-spring), width var(--transition-spring);
  pointer-events: none;
  z-index: 1;
}

.filter-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.45rem 1.15rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
}

.filter-btn.active {
  color: #ffffff;
}

/* Supporting Projects Grid */
.supporting-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), opacity var(--transition-normal);
}

.project-card.is-hidden {
  display: none !important;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
}

.project-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.pro-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-violet);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.tag-pill-mono {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.65rem;
  border-radius: var(--border-radius-sm);
}

.tag-pill-mono .tech-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-hairline);
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-case-study:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.link-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: #94a3b8;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.link-icon-btn:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

/* --- ACHIEVEMENTS SECTION --- */
.achievement-featured-card {
  padding: 3.5rem 3rem;
  position: relative;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.achievement-aurora-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, rgba(139, 92, 246, 0.08) 60%, transparent 100%);
  pointer-events: none;
}

.achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  align-items: center;
}

.trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1.5rem;
}

.trophy-icon {
  color: #fbbf24;
  flex-shrink: 0;
}

.trophy-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.06em;
}

.stat-big-prize {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.prize-currency {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
}

.prize-val {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 5.5vw, 4.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.prize-caption {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.75rem;
}

.achievement-meta-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 0.3rem 0.75rem;
  border-radius: var(--border-radius-sm);
}

.achievement-proof {
  margin-top: 1.25rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.achievement-proof-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.achievement-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.achievement-sub {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-cyan);
  margin-bottom: 1.35rem;
}

.achievement-narrative {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.achievement-takeaways {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.55;
}

.takeaway-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.achievement-action-row {
  margin-top: 1.75rem;
}

/* --- EDUCATION SECTION --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.education-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.edu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.edu-crest {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}

.edu-status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-pill);
}

.edu-status-badge.completed {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.edu-degree {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.edu-major {
  font-size: 1rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 0.35rem;
}

.edu-institution {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.edu-desc {
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  padding: 3.5rem;
  margin-bottom: 3.5rem;
}

.contact-card-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-headline {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-subtext {
  font-size: 1.02rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.c-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.contact-social-icons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.35rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.social-icon-row {
  display: flex;
  gap: 0.85rem;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.icon-bubble:hover {
  color: #ffffff;
  border-color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.icon-bubble img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.icon-bubble:hover img {
  transform: scale(1.15);
}

.social-pill img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.link-icon-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-row-mobile a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Contact Form */
.contact-form {
  background: rgba(10, 12, 18, 0.65);
  border: 1px solid var(--border-hairline);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-header {
  margin-bottom: 0.5rem;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
}

.form-status-msg {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-align: center;
  min-height: 1.2rem;
}

/* --- FOOTER BAR --- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--accent-cyan);
}

/* --- CASE STUDY MODAL OVERLAY --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  background: rgba(14, 17, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-meta-header {
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-pill);
  display: inline-block;
  margin-bottom: 0.65rem;
}

.modal-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 1rem;
  color: #a78bfa;
  margin-top: 0.35rem;
}

.modal-content-section {
  margin-top: 2rem;
}

.modal-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.modal-bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.modal-bullet-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* --- TOAST NOTIFICATION --- */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-spring), opacity 0.3s ease;
  backdrop-filter: blur(16px);
}

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

/* --- ROADMAP / WHAT'S NEXT SECTION --- */
.roadmap-track {
  position: relative;
  aspect-ratio: 1000 / 780;
  --roadmap-card-w: clamp(280px, 27vw, 360px);
}

.roadmap-arc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.roadmap-arc-path,
.roadmap-arc-glow {
  fill: none;
  stroke: url(#roadmapArcGradient);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 2.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-arc-path {
  stroke-width: 2.4;
}

.roadmap-arc-glow {
  stroke-width: 9;
  opacity: 0.22;
  filter: blur(5px);
}

.roadmap-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: var(--roadmap-card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translate(-50%, 30px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.roadmap-node.is-revealed {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.roadmap-node--now { --node-x: 17%; --node-y: 58%; }
.roadmap-node--next { --node-x: 50%; --node-y: 33%; }
.roadmap-node--vision { --node-x: 83.5%; --node-y: 9%; }

.roadmap-node-marker {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  margin-top: -9px;
  z-index: 2;
}

.roadmap-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.75), 0 0 26px rgba(139, 92, 246, 0.45);
}

.roadmap-dot-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.55);
  animation: pulseNode 2.6s infinite ease-out;
}

.roadmap-connector {
  width: 1.5px;
  height: 30px;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.75) 0%, rgba(139, 92, 246, 0.35) 55%, rgba(139, 92, 246, 0) 100%);
}

.roadmap-card {
  width: 100%;
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.roadmap-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
}

.roadmap-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-pill);
}

.roadmap-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: roadmapLivePulse 1.8s infinite ease-out;
}

@keyframes roadmapLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.68); }
}

.roadmap-card-desc {
  font-size: 0.93rem;
  color: #94a3b8;
  line-height: 1.62;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Roadmap mobile fallback: vertical stacked milestones + straight gradient line */
@media (max-width: 1024px) {
  .roadmap-track {
    aspect-ratio: auto;
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
  }

  .roadmap-arc-svg {
    display: none;
  }

  .roadmap-node {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    display: block;
    opacity: 0;
    transform: translateY(24px);
    margin-bottom: 2rem;
  }

  .roadmap-node.is-revealed {
    transform: translateY(0);
  }

  .roadmap-node:not(:last-child)::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem + 8px);
    top: 8px;
    width: 2px;
    height: calc(100% + 2rem + 9px);
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.8) 0%, rgba(139, 92, 246, 0.55) 55%, rgba(236, 72, 153, 0.35) 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .roadmap-node:not(:last-child).is-revealed::before {
    transform: scaleY(1);
  }

  .roadmap-node-marker {
    position: absolute;
    left: -2.5rem;
    top: 8px;
    margin-top: 0;
  }

  .roadmap-connector {
    display: none;
  }

  .roadmap-card {
    width: 100%;
    padding: 1.4rem 1.25rem;
  }
}

/* --- SCROLL REVEAL STYLES --- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

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

  .about-grid,
  .featured-project-inner,
  .achievement-grid,
  .contact-card-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .skills-bento-grid,
  .supporting-projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .col-span-md-2 {
    grid-column: span 1;
  }

  .phone-frame-mockup {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1.5rem;
    align-self: center;
  }

  .featured-mockup-col {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 4.5rem 1rem;
  }

  .about-stats-bento {
    grid-template-columns: 1fr;
  }

  .featured-project-card {
    padding: 2rem 1.25rem;
  }

  .about-narrative-card,
  .contact-card,
  .achievement-featured-card,
  .timeline-content {
    padding: 1.75rem 1.25rem;
  }

  .screen-body-layout {
    grid-template-columns: 1fr;
  }

  .tier-two-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- MOBILE OPTIMISATION (<=768px) --- */
@media (max-width: 768px) {
  .fixed-nav {
    padding: 0.9rem 1rem;
  }

  .nav-container {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .nav-actions {
    gap: 0.6rem;
  }

  .hero-section {
    min-height: 92svh;
    padding: 6.5rem 1rem 3.5rem;
  }

  .hero-badge {
    padding: 0.4rem 0.85rem;
  }

  .badge-text {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .hero-subtext {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-cta-row {
    gap: 0.7rem;
    margin-bottom: 2.25rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Cards: tighter padding so content keeps more horizontal room */
  .bento-card {
    padding: 1.5rem 1.15rem;
  }

  .education-card {
    padding: 1.75rem 1.25rem;
  }

  .project-card {
    padding: 1.6rem 1.25rem;
  }

  /* Timeline dot centred on the spine instead of bleeding off the left edge */
  .timeline-container {
    padding-left: 1.75rem;
  }

  .timeline-node {
    left: -1rem;
  }

  /* Projects: stack the filter tabs and let them scroll instead of overflowing */
  .tier-two-header {
    align-items: stretch;
  }

  .tier-two-titles {
    width: 100%;
    min-width: 0;
  }

  .tier-two-h3 {
    font-size: 1.4rem;
  }

  .filter-tab-bar {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .filter-btn {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
  }

  /* Stop iOS Safari from zooming in when a form field is focused */
  .form-input {
    font-size: 1rem;
  }
}

/* --- SMALL PHONES (<=480px) --- */
@media (max-width: 480px) {
  .section-container {
    padding: 3.5rem 0.9rem;
  }

  .hero-section {
    padding: 6rem 0.9rem 3rem;
  }

  .hero-headline {
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
  }

  .marquee-item {
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }

  .contact-card,
  .featured-project-card,
  .achievement-featured-card {
    padding: 1.5rem 1.05rem;
  }

  .timeline-content {
    padding: 1.4rem 1rem;
  }

  .visa-callout-card {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* --- REDUCED MOTION PREFERENCE --- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .aurora-blob {
    animation: none !important;
  }

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

  .marquee-track {
    animation: none !important;
    overflow-x: auto;
  }

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

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .roadmap-arc-path,
  .roadmap-arc-glow {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .roadmap-node {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    transition: none !important;
  }

  .roadmap-node:not(:last-child)::before {
    transform: scaleY(1) !important;
    transition: none !important;
  }

  .roadmap-dot-ring,
  .roadmap-live-dot {
    animation: none !important;
    opacity: 1 !important;
  }

  .hero-smoke-canvas,
  .cursor-fx-canvas {
    display: none !important;
  }

  .hero-gradient-text {
    animation: none !important;
    background-position: 0% 50% !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1024px) {
  .roadmap-node,
  .roadmap-node.is-revealed {
    transform: none !important;
  }
}
