/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(108, 99, 255, 0.3);
  --accent-purple: #6c63ff;
  --accent-cyan: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-purple: 0 0 30px rgba(108, 99, 255, 0.35);
  --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blobPulse {
  0%, 100% { transform: scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%       { transform: scale(1.1) rotate(120deg); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%       { transform: scale(0.9) rotate(240deg); border-radius: 50% 60% 30% 40% / 40% 30% 60% 70%; }
}

@keyframes blobFloat {
  0%   { translate: 0px 0px; }
  50%  { translate: 30px -20px; }
  100% { translate: -20px 10px; }
}

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

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}

@keyframes noiseMove {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.animate-in,
.reveal-left.animate-in {
  opacity: 1;
  transform: translate(0);
}

/* Card-specific: scale-pop with spring easing */
.project-card.reveal {
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card.reveal.animate-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  z-index: 1001;
  transition: width 0.1s linear;
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 70px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.025;
  animation: noiseMove 8s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding-top: 70px;
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite, fadeInUp 0.6s ease 0.35s both;
  margin-bottom: 1rem;
  opacity: 0;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  min-height: 2.2rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.5s forwards;
}

.cursor {
  animation: cursorBlink 0.85s step-end infinite;
  color: var(--accent-purple);
  margin-left: 2px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.65s forwards;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.6s ease 1.4s forwards;
}

.scroll-indicator-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-dot {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(108, 99, 255, 0.4);
  border-radius: 13px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-purple);
  animation: scrollBounce 1.8s ease-in-out infinite;
  box-shadow: var(--glow-purple);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section:not(#hero):not(#contact) {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--text-primary);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-bio p {
  color: var(--text-secondary);
  line-height: 1.95;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18) 0%, rgba(0, 212, 255, 0.10) 100%);
  border-color: var(--border-accent);
  box-shadow: var(--glow-purple);
}

.stat-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-card-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-group {
  margin-bottom: 2.5rem;
}

.skills-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid;
  cursor: default;
  transition: all var(--transition);
  user-select: none;
}

.tag-lang {
  color: rgba(108, 99, 255, 0.9);
  border-color: rgba(108, 99, 255, 0.25);
  background: rgba(108, 99, 255, 0.07);
}

.tag-lang:hover {
  border-color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

.tag-tool {
  color: rgba(0, 212, 255, 0.9);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.07);
}

.tag-tool:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.tag-tech {
  color: rgba(160, 140, 255, 0.9);
  border-color: rgba(130, 120, 255, 0.2);
  background: rgba(130, 120, 255, 0.07);
}

.tag-tech:hover {
  border-color: rgba(130, 120, 255, 0.5);
  background: rgba(130, 120, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(130, 120, 255, 0.3);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 0.04;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(108, 99, 255, 0.18), var(--glow-purple);
}

.project-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent-purple);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-link:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.project-link-demo:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* ============================================================
   EDUCATION — FEATURE CARDS
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Outer: perspective container */
.edu-card {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

/* Shared face styles */
.edu-card-front,
.edu-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

/* Front face */
.edu-card-front {
  opacity: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edu-card:hover .edu-card-front {
  opacity: 0;
  pointer-events: none;
}

/* Back face */
.edu-card-back {
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(108, 99, 255, 0.18) 0%,
    rgba(0, 212, 255, 0.10) 100%);
  border: 1px solid var(--border-accent);
  justify-content: center;
  gap: 1.25rem;
}

.edu-card:hover .edu-card-back {
  opacity: 1;
  pointer-events: auto;
}

.edu-back-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Big decorative number on front */
.edu-card-num {
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  font-size: 8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
}

/* Top row: status dot + period */
.edu-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}

.edu-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.edu-institution {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.edu-divider {
  height: 1px;
  background: var(--accent-gradient);
  border-radius: 1px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.edu-program {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.edu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--accent-purple);
}

.edu-badge-cyan {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--accent-cyan);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 7rem 2rem;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  transition: letter-spacing var(--transition);
}

.contact-email-link:hover {
  letter-spacing: 1px;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.social-btn:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  #navbar {
    padding: 0 1.5rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 999;
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .hero-stats {
    gap: 1.5rem;
  }

  section:not(#hero):not(#contact) {
    padding: 5rem 1.5rem;
  }

  #contact {
    padding: 5rem 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

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

