/* ============================================================
   PORTFOLIO — style.css
   Pradyum Meshram | Premium dark portfolio
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --bg:              #09090B;
  --bg-2:            #111827;
  --bg-3:            #1f2937;
  --purple:          #6D5EF8;
  --purple-2:        #8B5CF6;
  --blue:            #6D8AFF;
  --orange:          #FF8A4C;
  --pink:            #D977B8;
  --text:            #F8FAFC;
  --text-2:          #9CA3AF;
  --text-3:          #64748B;
  --border:          rgba(255,255,255,0.08);
  --border-hover:    rgba(255,255,255,0.14);
  --glass-bg:        rgba(255,255,255,.03);
  --glass-bg-hover:  rgba(255,255,255,.055);

  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #6D5EF8, #8B5CF6);
  --gradient-warm:   linear-gradient(135deg, #FF8A4C, #D977B8);
  --gradient-text:   linear-gradient(135deg, #6D5EF8 0%, #8B5CF6 50%, #D977B8 100%);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
  --shadow-glow: 0 0 30px rgba(109,94,248,.18);
  --shadow-glow-pink: 0 0 30px rgba(217,119,184,.15);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-code:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-py:  120px;
  --container:   1200px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Transitions */
  --ease:  cubic-bezier(.25,.46,.45,.94);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(124,92,255,.35);
  color: var(--text);
}

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

ul { list-style: none; }

img, svg { display: block; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ============================================================
   CANVAS (stars/particles behind everything)
   ============================================================ */
#starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.12) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .3s var(--ease);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--spring), box-shadow .3s var(--ease);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.section-eyebrow {
  font-family: var(--font-code);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--purple);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 56px;
  color: var(--text);
}

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

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

/* Staggered children */
.about-cards .glass-card:nth-child(1) { transition-delay: 0ms; }
.about-cards .glass-card:nth-child(2) { transition-delay: 80ms; }
.about-cards .glass-card:nth-child(3) { transition-delay: 160ms; }
.about-cards .glass-card:nth-child(4) { transition-delay: 240ms; }

.projects-grid .project-card:nth-child(1) { transition-delay: 0ms; }
.projects-grid .project-card:nth-child(2) { transition-delay: 80ms; }
.projects-grid .project-card:nth-child(3) { transition-delay: 160ms; }
.projects-grid .project-card:nth-child(4) { transition-delay: 240ms; }

.learning-grid .learning-card:nth-child(1) { transition-delay: 0ms; }
.learning-grid .learning-card:nth-child(2) { transition-delay: 60ms; }
.learning-grid .learning-card:nth-child(3) { transition-delay: 120ms; }
.learning-grid .learning-card:nth-child(4) { transition-delay: 180ms; }
.learning-grid .learning-card:nth-child(5) { transition-delay: 240ms; }
.learning-grid .learning-card:nth-child(6) { transition-delay: 300ms; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(124,92,255,0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,92,255,.4);
}

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

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}

.navbar.scrolled {
  background: rgba(9,9,11,.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity .2s;
}

.nav-logo:hover { opacity: .75; }

.logo-bracket {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--glass-bg-hover);
}

.nav-link.active {
  color: var(--purple);
}

.nav-cta {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  background: var(--gradient-purple);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,92,255,.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s, background .25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  z-index: 2;
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  animation: blobFloat 10s ease-in-out infinite;
  pointer-events: none;
}

.blob-purple {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -10%;
  left: -15%;
  animation-duration: 12s;
}

.blob-pink {
  width: 500px;
  height: 500px;
  background: var(--pink);
  top: 20%;
  right: -15%;
  animation-duration: 9s;
  animation-delay: -3s;
}

.blob-orange {
  width: 400px;
  height: 400px;
  background: var(--orange);
  bottom: -10%;
  left: 30%;
  animation-duration: 11s;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.04); }
  66%       { transform: translate(-20px, 20px) scale(.97); }
}

/* Floating code snippets */
.floating-code {
  position: absolute;
  font-family: var(--font-code);
  font-size: .78rem;
  color: rgba(255,255,255,.18);
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  pointer-events: none;
  white-space: nowrap;
  animation: codeFloat 8s ease-in-out infinite;
}

.fc-1 { top: 18%; left: 5%;  animation-delay: 0s;   animation-duration: 9s;  }
.fc-2 { top: 30%; right: 6%; animation-delay: -2s;  animation-duration: 11s; }
.fc-3 { bottom: 25%; left: 8%; animation-delay: -4s; animation-duration: 8s;  }
.fc-4 { bottom: 20%; right: 5%; animation-delay: -6s; animation-duration: 10s; }

.code-kw  { color: rgba(124,92,255,.7); }
.code-str { color: rgba(168,85,247,.7); }

@keyframes codeFloat {
  0%, 100% { transform: translateY(0px); opacity: .5; }
  50%       { transform: translateY(-14px); opacity: .9; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.25);
  font-size: .8rem;
  color: var(--purple-2);
  margin-bottom: 32px;
  font-family: var(--font-code);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #4ade80; }
  50%       { opacity: .5; box-shadow: 0 0 4px #4ade80; }
}

.hero-heading {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}

.hero-hi {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
  margin-bottom: 4px;
}

.hero-name {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
}

.hero-typing {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 28px;
  height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-text {
  color: var(--purple-2);
  font-weight: 600;
}

.typing-cursor {
  color: var(--purple);
  font-weight: 200;
  animation: blink 1s step-end infinite;
}

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

.hero-desc {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s, transform .25s var(--spring), box-shadow .25s;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--purple);
  background: rgba(124,92,255,.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,92,255,.25);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-code);
  z-index: 2;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

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

.about-text p {
  color: var(--text-2);
  font-size: .975rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stat-card {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-label {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-code);
  margin-bottom: 4px;
}

.stat-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.stat-sub {
  font-size: .78rem;
  color: var(--text-2);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-group {
  padding: 28px;
}

.skill-group-learning {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(124,92,255,.06), rgba(168,85,247,.04));
  border-color: rgba(124,92,255,.2);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.skill-group-icon {
  font-size: 1.2rem;
}

.skill-group-header h3 {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-family: var(--font-code);
  font-weight: 500;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: default;
  transition: color .2s, background .2s, border-color .2s, transform .2s var(--spring), box-shadow .2s;
}

.skill-pill:hover {
  color: var(--text);
  background: rgba(255,255,255,.09);
  border-color: var(--glow, var(--purple));
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--glow, var(--purple)) 30%, transparent);
}

.learning-pill {
  background: rgba(124,92,255,.08);
  border-color: rgba(124,92,255,.18);
  color: var(--purple-2);
  animation: learningPulse 3s ease-in-out infinite;
}

.learning-pill:nth-child(2) { animation-delay: .5s; }
.learning-pill:nth-child(3) { animation-delay: 1s; }
.learning-pill:nth-child(4) { animation-delay: 1.5s; }

@keyframes learningPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,92,255,0); }
  50%       { box-shadow: 0 0 10px rgba(124,92,255,.25); }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

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

.project-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s;
}

.project-card:hover {
  border-color: rgba(124,92,255,.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card:focus {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.project-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(255,110,169,.06));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease);
  border-radius: 14px;
}

.project-img-placeholder img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.project-card:hover .project-img-placeholder {
  transform: scale(1.04);
}

.project-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 16px rgba(124,92,255,.3));
}

.project-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(9,9,11,.7);
  border: 1px solid var(--border);
  font-size: .7rem;
  font-family: var(--font-code);
  color: var(--purple-2);
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 24px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.project-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-stack span {
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .72rem;
  font-family: var(--font-code);
  color: var(--text-3);
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--purple-2);
  transition: color .2s, gap .2s;
}

.project-link:hover {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   LEARNING SECTION
   ============================================================ */
.learning {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.learning-card {
  padding: 28px 24px;
}

.learning-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.learning-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.learning-card p {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.learning-progress {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: var(--progress, 50%);
  background: var(--gradient-purple);
  border-radius: 3px;
  animation: progressAnim .8s var(--ease) forwards;
  transform-origin: left;
}

@keyframes progressAnim {
  from { width: 0; }
  to   { width: var(--progress, 50%); }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.contact-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 80px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124,92,255,.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(120px);
  opacity: .05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-sub {
  font-size: .975rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: .82rem;
  color: var(--text-3);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-2);
  transition: all .2s;
}

.back-to-top:hover {
  color: var(--text);
  border-color: var(--purple);
  background: rgba(124,92,255,.1);
}

/* ============================================================
   PROJECT MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background .3s var(--ease), backdrop-filter .3s;
}

.modal-overlay.open {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  pointer-events: all;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  overflow-y: auto;
  padding: 48px;
  transform: scale(.92) translateY(24px);
  opacity: 0;
  transition: transform .35s var(--spring), opacity .3s var(--ease);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .2s;
  z-index: 1;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: var(--border-hover);
}

/* Modal content inner styles */
.modal-content .modal-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.modal-content .modal-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-family: var(--font-code);
  background: rgba(124,92,255,.1);
  border: 1px solid rgba(124,92,255,.2);
  color: var(--purple-2);
  margin-bottom: 14px;
}

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.modal-content .modal-desc {
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.modal-features li {
  display: flex;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
}

.modal-features li::before {
  content: '→';
  color: var(--purple);
  flex-shrink: 0;
  font-size: .85rem;
}

.modal-arch {
  padding: 20px;
  background: rgba(124,92,255,.05);
  border: 1px solid rgba(124,92,255,.15);
  border-radius: var(--r-md);
  font-family: var(--font-code);
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(9,9,11,.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }

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

  .nav-link {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 1rem;
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-py: 96px; }

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

  .skill-group-learning {
    grid-column: span 2;
  }

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

@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .featured-img-wrap {
    aspect-ratio: 16/7;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root { --section-py: 72px; }

  .section-title {
    margin-bottom: 36px;
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .fc-1, .fc-2, .fc-3, .fc-4 {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .skill-group-learning {
    grid-column: span 1;
  }

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

  .learning-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-inner {
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .modal-container {
    padding: 28px 20px;
  }

  .featured-card {
    padding: 24px 20px;
    gap: 24px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }

  .cursor-glow { display: none; }
}

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}