/* ==========================================================================
   Portfolio — Premium Dark Theme
   Aesthetic: Apple × Linear × Vercel · Glassmorphism · Bento Grid
   ==========================================================================
   Table of Contents
   --------------------------------------------------------------------------
   1.  CSS Reset
   2.  Custom Properties (Design Tokens)
   3.  Base & Typography
   4.  Selection & Scrollbar
   5.  Utility Classes
   6.  Noise Overlay & Gradient Orbs
   7.  Navigation
   8.  Hero Section
   9.  Buttons
   10. Section Headers
   11. Bento Grid & Cards
   12. Tech Stack Grid
   13. GitHub Stats
   14. Project Cards
   15. Experience Timeline
   16. Contact Section
   17. Footer
   18. Scroll Reveal Animations
   19. Typed Cursor
   20. Focus & Accessibility
   21. Responsive — 480 px
   22. Responsive — 768 px
   23. Responsive — 1024 px
   24. Responsive — 1200 px
   25. Reduced Motion
   26. Print Styles
   ========================================================================== */


/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}


/* ==========================================================================
   2. Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* ── Backgrounds ─────────────────────────────────────────────────────── */
  --bg-primary:   #09090b;
  --bg-secondary: #111113;
  --bg-tertiary:  #18181b;
  --bg-glass:     rgba(17, 17, 19, 0.6);

  /* ── Text ────────────────────────────────────────────────────────────── */
  --text-primary:   #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary:  #71717a;

  --accent-primary:  #ff4e00;
  --accent-hover:    #ff6a2b;
  --accent-gradient: linear-gradient(135deg, #ff4e00 0%, #ff7b42 100%);
  --accent-glow:     rgba(255, 78, 0, 0.15);

  --btn-primary-text: #ffffff;
  --btn-primary-bg: var(--bg-secondary);

  /* ── Glassmorphism ───────────────────────────────────────────────────── */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px) saturate(180%);

  /* ── Borders ─────────────────────────────────────────────────────────── */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: var(--glass-border);
  --border-hover:   var(--glass-border-hover);

  /* ── Status ──────────────────────────────────────────────────────────── */
  --success: #34d399;
  --warning: #fbbf24;
  --error:   #f87171;

  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "Outfit", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-hero: clamp(2.5rem, 6.5vw + 1rem, 6.5rem);
  --text-h1:   clamp(2rem, 3vw + 0.5rem, 3.5rem);
  --text-h2:   clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  --text-h3:   clamp(1.125rem, 1.5vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  /* ── Spacing ─────────────────────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 8rem;

  /* ── Radii ───────────────────────────────────────────────────────────── */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --max-width: 1200px;
  --content-padding: var(--space-5);

  /* ── Z-index ─────────────────────────────────────────────────────────── */
  --z-noise:  9999;
  --z-nav:    1000;
  --z-overlay: 999;

  /* ── Transitions ─────────────────────────────────────────────────────── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 400ms;
}

/* ── Light Theme Overrides ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:   #fffcf3;
  --bg-secondary: #f4f0e6;
  --bg-tertiary:  #eae5d9;
  --bg-glass:     rgba(255, 252, 243, 0.75);

  --text-primary:   #111111;
  --text-secondary: #444444;
  --text-tertiary:  #777777;

  --accent-primary:  #ff4e00;
  --accent-hover:    #ff6a2b;
  --accent-gradient: linear-gradient(135deg, #ff4e00 0%, #ff7b42 100%);
  --accent-glow:     rgba(255, 78, 0, 0.15);

  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-default: var(--glass-border);
  --border-hover:   var(--glass-border-hover);

  --btn-primary-text: #111111;
  --btn-primary-bg: #ffffff;

  /* ── Glassmorphism Light ─────────────────────────────────────────────── */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  --glass-blur: blur(20px) saturate(180%);
}


/* ==========================================================================
   3. Base & Typography
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

[data-theme="light"] body {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
}

small {
  font-size: var(--text-small);
}

code,
pre {
  font-family: var(--font-mono);
}


/* ==========================================================================
   4. Selection & Scrollbar
   ========================================================================== */

::selection {
  background-color: rgba(129, 140, 248, 0.3);
  color: #fff;
}

/* Thin scrollbar — Webkit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

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

/* Thin scrollbar — Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
}


/* ==========================================================================
   5. Utility Classes
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

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

.text-accent {
  color: var(--accent-primary);
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}


/* ==========================================================================
   6. Noise Overlay & Gradient Orbs
   ========================================================================== */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-noise);
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Gradient Orbs ─────────────────────────────────────────────────────── */

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 20s ease-in-out infinite;
}

.gradient-orb--primary {
  top: -10%;
  left: -10%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(255, 112, 67, 0.16) 0%, transparent 80%);
}

.gradient-orb--secondary {
  top: 30%;
  right: -10%;
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 80%);
  animation-delay: -7s;
  animation-duration: 25s;
}

.gradient-orb--tertiary {
  bottom: -10%;
  left: 20%;
  width: min(550px, 75vw);
  height: min(550px, 75vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 80%);
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes float {
  0%, 100% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) translateY(0) scale(1);
  }
  33% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) translateY(-35px) scale(1.04);
  }
  66% {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) translateY(25px) scale(0.96);
  }
}


/* ==========================================================================
   7. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--duration-base) ease,
              border-color var(--duration-base) ease;
}

.nav--scrolled {
  background: var(--glass-bg);
  border-bottom-color: var(--glass-border-hover);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.nav__logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  color: var(--accent-primary);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  position: relative;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--duration-fast) ease;
  padding: var(--space-1) 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after,
.nav__link--active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__cta {
  display: none;
  flex-shrink: 0;
}

/* ── Theme Toggle Pill ─────────────────────────────────────────────────── */

.theme-toggle {
  width: 56px;
  height: 32px;
  border-radius: 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  position: relative;
  padding: 4px;
  transition: all var(--duration-base) var(--ease-out-expo);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
}

.theme-toggle__knob {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform var(--duration-base) var(--ease-out-expo), background-color var(--duration-base);
  transform: translateX(0);
}

/* Light theme toggle active state */
[data-theme="light"] .theme-toggle {
  background-color: #d13038; /* Red pill from the design */
  border-color: #d13038;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-toggle__knob {
  background-color: #ffffff;
  transform: translateX(24px);
}

/* ── Mobile Hamburger ──────────────────────────────────────────────────── */

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) ease,
              opacity var(--duration-fast) ease;
}

/* Open state for hamburger bars (2-bar layout → X) */
.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ───────────────────────────────────────────────── */

.nav__menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) ease,
              visibility var(--duration-slow) ease;
}

.nav__menu--open {
  opacity: 1;
  visibility: visible;
}

.nav__menu .nav__link {
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-primary);
}

.nav__menu .nav__link:hover {
  color: var(--text-primary);
}


/* ==========================================================================
   8. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 75vh;
  min-height: 75dvh;
  padding: 9.5rem var(--content-padding) var(--space-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}

.hero__left {
  text-align: left;
}

.hero__left .hero__actions {
  justify-content: flex-start;
}

.hero__left .hero__subtitle {
  margin-inline: 0;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapse hero to single column on mobile */
@media (max-width: 767px) {
  .hero__content {
    grid-template-columns: 1fr;
  }
  .hero__left {
    text-align: center;
  }
  .hero__left .hero__actions {
    justify-content: center;
  }
  .hero__left .hero__subtitle {
    margin-inline: auto;
  }
  .hero__visual {
    display: none;
  }
}

.hero-orb {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

/* Orbit ring spin animations */
.orbit-ring--1 {
  transform-origin: 200px 200px;
  animation: spin-cw 25s linear infinite;
}

.orbit-ring--2 {
  transform-origin: 200px 200px;
  animation: spin-ccw 18s linear infinite;
}

/* Outer orbit nodes — revolve around center at r=155 */
.orbit-node--1 {
  transform-origin: 200px 200px;
  animation: spin-cw 25s linear infinite;
}

.orbit-node--2 {
  transform-origin: 200px 200px;
  animation: spin-cw 25s linear infinite;
}

.orbit-node--3 {
  transform-origin: 200px 200px;
  animation: spin-cw 25s linear infinite;
}

.orbit-node--4 {
  transform-origin: 200px 200px;
  animation: spin-cw 25s linear infinite;
}

/* Middle orbit nodes */
.orbit-node--m1 {
  transform-origin: 200px 200px;
  animation: spin-ccw 18s linear infinite;
}

.orbit-node--m2 {
  transform-origin: 200px 200px;
  animation: spin-ccw 18s linear infinite;
}

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Subtle radial glow behind hero content */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__greeting {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-5);
}

.hero__greeting::before {
  content: "●";
  font-size: 0.5rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-mono);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 900px;
}

.hero__title-line {
  display: block;
}

/* Optional gradient variant for hero title text */
.hero__title .text-gradient {
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* ── Scroll Indicator ──────────────────────────────────────────────────── */

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
  font-size: var(--text-caption);
  letter-spacing: 0.05em;
  animation: bounce-indicator 2s ease-in-out infinite;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce-indicator {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}


/* ==========================================================================
   9. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  /* Explicit transitions — NO filter, so blur never leaks onto buttons */
  transition: color var(--duration-base) ease,
              background var(--duration-base) ease,
              border-color var(--duration-base) ease,
              transform var(--duration-base) ease,
              box-shadow var(--duration-base) ease,
              opacity var(--duration-base) ease;
  user-select: none;
  filter: none !important;
}

.btn--primary {
  background: transparent;
  color: var(--btn-primary-text);
  border: 1px solid transparent;
  position: relative;
  background-clip: padding-box;
  overflow: hidden;
  z-index: 1;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), transparent 40%, var(--accent-primary) 80%, transparent);
  background-size: 200% 100%;
  animation: border-pan 3s linear infinite;
  z-index: -2;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--btn-primary-bg);
  border-radius: inherit;
  z-index: -1;
  transition: background var(--duration-base) ease;
}

@keyframes border-pan {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.btn--primary:hover::after {
  background: var(--bg-tertiary);
}

/* ─────────────────────────────────────────────────────────
   Button Icon Animations
   ───────────────────────────────────────────────────────── */
.nav__cta svg {
  transition: transform 0.3s ease;
}

@keyframes shoot-up {
  0% { transform: translate(0, 0); opacity: 1; }
  30% { transform: translate(12px, -12px); opacity: 0; }
  31% { transform: translate(-12px, 12px); opacity: 0; }
  60% { transform: translate(0, 0); opacity: 1; }
}

.nav__cta:hover svg {
  animation: shoot-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero__actions .btn--primary svg {
  transition: transform 0.3s ease;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero__actions .btn--primary:hover svg {
  animation: bounce-down 1.2s ease-in-out infinite;
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.btn--icon:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  transform: scale(1.08);
}

.btn--sm {
  font-size: var(--text-small);
  padding: 0.5rem 1.25rem;
  gap: var(--space-2);
}


/* Resume Badge */
.resume-badge {
  display: inline-block;
  text-decoration: none;
  border-radius: 100px;
  padding: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--bg-tertiary), var(--accent-primary));
  background-size: 200% auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.resume-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--accent-glow);
  animation: shine 2s linear infinite;
}

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

.resume-badge__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-primary);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.resume-badge__text {
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--text-primary);
  /* Added a subtle color shift on hover instead of the slide */
  transition: color 0.3s ease;
}

.resume-badge:hover .resume-badge__text {
  color: var(--accent-primary);
}

/* ==========================================================================
   10. Section Headers
   ========================================================================== */

.section {
  position: relative;
  padding: var(--space-10) 0;
}

/* Decorative divider line between sections */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary) 30%,
    var(--accent-secondary) 70%,
    transparent
  );
  opacity: 0.4;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section__label {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
  padding: 0.3em 1em;
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on section labels */
.section__label::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shimmer-sweep 3s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.section__title {
  font-family: var(--font-mono);
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}


/* ==========================================================================
   11. Bento Grid & Cards
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.bento__card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-slow) var(--ease-out-expo);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.bento__card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow), 
              0 12px 40px rgba(0, 0, 0, 0.15);
}

.bento__card--wide {
  grid-column: span 1;
}

.bento__card--full {
  grid-column: span 1;
}

.bento__card--extra-wide {
  grid-column: span 1;
}

.bento__card--tall {
  grid-row: span 1;
}

.bento__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
  animation: float 4s ease-in-out infinite;
}

/* Floating animation for bento card icons */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Stagger the float so icons don't bob in sync */
.bento__card:nth-child(2) .bento__card-icon { animation-delay: 0.5s; }
.bento__card:nth-child(3) .bento__card-icon { animation-delay: 1s; }
.bento__card:nth-child(4) .bento__card-icon { animation-delay: 1.5s; }
.bento__card:nth-child(5) .bento__card-icon { animation-delay: 2s; }

.bento__card-title {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.bento__card-text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento__card-meta {
  font-size: var(--text-small);
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

.bento__card-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--success);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}


/* ==========================================================================
   12. Tech Stack Grid
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  color: var(--text-secondary);
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
  white-space: nowrap;
}

.tech-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.tech-item__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ==========================================================================
   13. GitHub Stats
   ========================================================================== */

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--glass-border);
}

.stat:last-child {
  border-bottom: none;
}

.stat__value {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.2;
}

.stat__label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0;
}


/* ==========================================================================
   14. Project Cards
   ========================================================================== */

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: border-color var(--duration-slow) ease,
              box-shadow var(--duration-slow) ease;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.project:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow), 
              0 16px 48px rgba(0, 0, 0, 0.2);
}

.project + .project {
  margin-top: var(--space-8);
}

.project__image-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
}

.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-expo);
}

.project:hover .project__image {
  transform: scale(1.03);
}

.project__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.project__title {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.project__description {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  color: var(--text-secondary);
  white-space: nowrap;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}


/* ==========================================================================
   15. Experience Timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Dot on the line */
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 10px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 1;
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50%      { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
}

.timeline__date {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.timeline__content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
  box-shadow: var(--glass-shadow);
}

.timeline__content:hover {
  border-color: var(--glass-border-hover);
}

.timeline__role {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.timeline__company {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.timeline__company span,
.timeline__company a {
  color: var(--accent-primary);
  font-weight: 500;
}

.timeline__description {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline__description ul {
  margin-top: var(--space-2);
  padding-left: var(--space-4);
  list-style: disc;
}

.timeline__description li + li {
  margin-top: var(--space-1);
}


/* ==========================================================================
   16. Contact Section
   ========================================================================== */

.contact {
  text-align: center;
}

.contact__heading,
.contact__title {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.contact__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--accent-primary);
  transition: color var(--duration-fast) ease;
  position: relative;
  margin-bottom: var(--space-4);
}

.contact__email::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.contact__email:hover {
  color: var(--accent-hover);
}

.contact__email:hover::after {
  width: 100%;
}

.contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: all var(--duration-base) ease;
}

.social-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6) 0;
}

.footer__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-cat {
  position: absolute;
  bottom: calc(100% + var(--space-6));
  right: var(--space-10);
  width: 150px;
  height: 180px;
  pointer-events: none;
  z-index: 5;
}

/* Specific theme styling for cat body color */
.cat-body-shape {
  fill: #1e293b;
  transition: fill var(--duration-base) ease;
}

.cat-ear-shape {
  fill: #0f172a;
  transition: fill var(--duration-base) ease;
}

[data-theme="light"] .cat-body-shape {
  fill: #475569;
}

[data-theme="light"] .cat-ear-shape {
  fill: #334155;
}

.cat-tail {
  transform-origin: 62px 82px;
  animation: tail-wag 2s ease-in-out infinite alternate;
}

.cat-tail path {
  fill: #1e293b;
  transition: fill var(--duration-base) ease;
}

[data-theme="light"] .cat-tail path {
  fill: #475569;
}

@keyframes tail-wag {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(8deg);
  }
}

.footer__copy,
.footer__copyright {
  font-size: var(--text-small);
  color: var(--text-tertiary);
}

.footer__built {
  font-size: var(--text-small);
  color: var(--text-tertiary);
}

.footer__heart {
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.footer__top-btn,
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-base) ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.footer__top-btn.visible,
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer__top-btn:hover,
.back-to-top:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}


/* ==========================================================================
   18. Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 900ms var(--ease-out-expo),
              transform 900ms var(--ease-out-expo),
              filter 900ms var(--ease-out-expo);
  will-change: opacity, transform, filter;
  filter: blur(3px);
}

/* Prevent blur on buttons — keeps the rotating border clean */
.btn.reveal,
.hero__actions.reveal,
.btn.reveal.visible,
.hero__actions.reveal.visible,
.hero__actions .btn {
  filter: none !important;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  filter: blur(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.9);
}

/* Rotate-in variant */
.reveal--rotate {
  transform: translateY(30px) rotate(-2deg);
}

/* Scale-up variant */
.reveal--scale-up {
  transform: scale(0.85) translateY(20px);
}

/* Stagger children — smooth cascade */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.stagger > .reveal:nth-child(8) { transition-delay: 560ms; }

/* Project cards alternate left/right entrance */
.project.reveal:nth-child(odd) {
  transform: translateX(-40px) translateY(20px);
}

.project.reveal:nth-child(even) {
  transform: translateX(40px) translateY(20px);
}

.project.reveal.visible {
  transform: translateX(0) translateY(0);
}


/* ==========================================================================
   19. Typed Cursor
   ========================================================================== */

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}


/* ==========================================================================
   20. Focus & Accessibility
   ========================================================================== */

/* Remove default outline for mouse users */
:focus {
  outline: none;
}

/* Keyboard-only focus ring */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Ensure links inside text are distinguishable */
.project__description a,
.timeline__description a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Skip to content link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--duration-fast) ease;
}

.skip-link:focus {
  top: var(--space-4);
}


/* ==========================================================================
   21. Responsive — 480 px  (Small phones → Larger phones)
   ========================================================================== */

@media (min-width: 480px) {
  :root {
    --content-padding: var(--space-6);
  }

  .hero__actions {
    flex-direction: row;
  }
}


/* ==========================================================================
   22. Responsive — 768 px  (Tablet)
   ========================================================================== */

@media (min-width: 768px) {
  .section {
    padding: var(--space-12) 0;
  }

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

  .bento__card--wide {
    grid-column: span 2;
  }

  .bento__card--full {
    grid-column: span 2;
  }

  .bento__card--extra-wide {
    grid-column: span 2;
  }

  .bento__card--tall {
    grid-row: span 2;
  }

  /* Project: side-by-side */
  .project {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-6);
  }

  /* Alternate image/text layout */
  .project:nth-child(even) .project__image-wrapper {
    order: 2;
  }

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

  /* Timeline left padding increase */
  .timeline {
    padding-left: var(--space-10);
  }

  .timeline::before {
    left: 19px;
  }

  .timeline__dot {
    left: calc(-1 * var(--space-10) + 14px);
  }
}


/* ==========================================================================
   23. Responsive — 1024 px  (Desktop)
   ========================================================================== */

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }

  .nav__menu {
    /* On desktop, the menu is inline, not an overlay */
    position: static;
    flex-direction: row;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: var(--space-6);
  }

  .nav__menu .nav__link {
    font-size: var(--text-small);
    font-weight: 500;
  }
  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }

  /* Bento: 4 columns */
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento__card--full {
    grid-column: span 4;
  }

  .bento__card--extra-wide {
    grid-column: span 3;
  }

  /* Larger project cards */
  .project {
    gap: var(--space-8);
    padding: var(--space-8);
  }
}


/* ==========================================================================
   24. Responsive — 1200 px  (Large Desktop)
   ========================================================================== */

@media (min-width: 1200px) {
  :root {
    --content-padding: var(--space-8);
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }
}


/* ==========================================================================
   Project Image Placeholders
   ========================================================================== */

.project__image--placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
}

.project__image--placeholder-2 {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.project__image--placeholder-3 {
  background: linear-gradient(135deg, #0b0b1a 0%, #1a0b2e 50%, #0b1a2e 100%);
}

.project__image--placeholder-4 {
  background: linear-gradient(135deg, #1f0b08 0%, #2e1a0b 50%, #1a0b1f 100%);
}

.placeholder__label {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.placeholder__grid {
  width: 80%;
  height: 70%;
  display: flex;
  gap: var(--space-3);
}

.placeholder__sidebar {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.placeholder__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.placeholder__chart {
  flex: 1;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.1) 0%, rgba(129, 140, 248, 0.02) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.placeholder__stats {
  display: flex;
  gap: var(--space-2);
}

.placeholder__stat-card {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.placeholder__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  width: 100%;
}

.placeholder__bar--short  { width: 50%; }
.placeholder__bar--medium { width: 75%; }
.placeholder__bar--wide   { width: 90%; }

/* Split layout for editor placeholder */
.placeholder__grid--split {
  gap: 2px;
}

.placeholder__pane {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.placeholder__pane--preview {
  background: rgba(255, 255, 255, 0.04);
}

.placeholder__code-line {
  height: 6px;
  background: rgba(129, 140, 248, 0.12);
  border-radius: var(--radius-full);
  width: 100%;
}

.placeholder__code-line--short  { width: 40%; }
.placeholder__code-line--medium { width: 65%; }

/* Deploy layout placeholder */
.placeholder__grid--deploy {
  flex-direction: column;
  gap: var(--space-3);
  width: 70%;
  height: 65%;
}

.placeholder__deploy-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.placeholder__deploy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.placeholder__deploy-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.placeholder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.placeholder__dot--green  { background: var(--success); }
.placeholder__dot--yellow { background: var(--warning); }

/* Battleship grid placeholder */
.placeholder__grid--battleship {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: var(--space-1);
  width: 60%;
  height: 60%;
}

.placeholder__cell {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.placeholder__cell--hit {
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.placeholder__cell--miss {
  background: var(--text-tertiary);
  opacity: 0.3;
}

.placeholder__cell--ship {
  background: rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   25. Reduced Motion
   ========================================================================== */

@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;
  }

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

  .gradient-orb {
    animation: none;
  }

  .hero__scroll-indicator {
    animation: none;
  }

  .typed-cursor {
    animation: none;
    opacity: 1;
  }
}


/* ==========================================================================
   26. Print Styles
   ========================================================================== */

/* =============================================
   PROJECT IMAGE PLACEHOLDERS
   ============================================= */

.project__image--placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
}

.project__image--placeholder-2 {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.project__image--placeholder-3 {
  background: linear-gradient(135deg, #0b0b1a 0%, #1a0b2e 50%, #0b1a2e 100%);
}

.placeholder__label {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.placeholder__grid {
  width: 80%;
  height: 70%;
  display: flex;
  gap: var(--space-3);
}

.placeholder__sidebar {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.placeholder__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.placeholder__chart {
  flex: 1;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.1) 0%, rgba(129, 140, 248, 0.02) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.placeholder__stats {
  display: flex;
  gap: var(--space-2);
}

.placeholder__stat-card {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.placeholder__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  width: 100%;
}

.placeholder__bar--short { width: 50%; }
.placeholder__bar--medium { width: 75%; }
.placeholder__bar--wide { width: 90%; }

/* Split layout for editor placeholder */
.placeholder__grid--split {
  gap: 2px;
}

.placeholder__pane {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.placeholder__pane--preview {
  background: rgba(255, 255, 255, 0.04);
}

.placeholder__code-line {
  height: 6px;
  background: rgba(129, 140, 248, 0.12);
  border-radius: var(--radius-full);
  width: 100%;
}

.placeholder__code-line--short { width: 40%; }
.placeholder__code-line--medium { width: 65%; }

/* Deploy layout placeholder */
.placeholder__grid--deploy {
  flex-direction: column;
  gap: var(--space-3);
  width: 70%;
  height: 65%;
}

.placeholder__deploy-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.placeholder__deploy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.placeholder__deploy-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.placeholder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.placeholder__dot--green { background: var(--success); }
.placeholder__dot--yellow { background: var(--warning); }

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .noise-overlay,
  .gradient-orb,
  .hero__scroll-indicator,
  .typed-cursor,
  .btn--icon,
  .footer__top-btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  .bento__card,
  .project,
  .timeline__content {
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  .bento {
    display: block;
  }

  .bento__card + .bento__card {
    margin-top: 1rem;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555 !important;
  }

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

/* ==========================================================================
   27. Custom Cursor
   ========================================================================== */

body {
  cursor: none; /* Hide default cursor on desktop */
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  background-color: rgba(129, 140, 248, 0.1);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.15s ease;
}

/* Hide on mobile devices */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  body {
    cursor: auto;
  }
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Interactive state (hovering links, buttons) */
body.cursor-hover .custom-cursor {
  opacity: 0;
}

body.cursor-hover .custom-cursor-follower {
  width: 60px;
  height: 60px;
  background-color: rgba(129, 140, 248, 0.2);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* ==========================================================================
   Expertise in Tools Styles
   ========================================================================== */

.bento__card--full.bento__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.tools-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.tools-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  width: 100%;
}

.tool-item {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
  text-decoration: none;
}

.tool-item:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.tool-item svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tool-item--more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.tool-item--more:hover {
  color: var(--accent-primary);
}

#work.section,
#experience.section {
  padding-top: var(--space-4);
}

.projects__more {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ==========================================================================
   Theme Transition Overlay
   ========================================================================== */

.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.8s ease, 
              color 0.8s ease, 
              border-color 0.8s ease, 
              fill 0.8s ease, 
              stroke 0.8s ease,
              box-shadow 0.8s ease !important;
}
