/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
  --bg:          #060d18;
  --bg-card:     rgba(255,255,255,0.03);
  --bg-card-h:   rgba(255,255,255,0.06);
  --accent:      #3b82f6;
  --accent2:     #60a5fa;
  --accent-dim:  rgba(59,130,246,0.12);
  --border:      rgba(59,130,246,0.2);
  --border-h:    rgba(59,130,246,0.48);
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --glow:        rgba(59,130,246,0.3);
  --glow2:       rgba(59,130,246,0.15);
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-sans:   'Inter', system-ui, sans-serif;
  --nav-h:       68px;
  --section-pad: 7rem 2rem;
  --max-w:       1200px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--accent); font-weight: 600; }

.mono { font-family: var(--font-mono); }
.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }

/* ============================================================
   CUSTOM CURSOR
============================================================ */
#cursor-dot,
#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 20px var(--glow);
}

#cursor-ring { display: none; }

#mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .5s;
}

/* ============================================================
   CANVAS
============================================================ */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6,6,26,0.7);
  border-bottom: 1px solid rgba(59,130,246,0.1);
  transition: background .3s;
}

#navbar.scrolled {
  background: rgba(6,6,26,0.95);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px var(--glow);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}

.nav-link .num {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: .3em;
  font-size: .72rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: calc(var(--nav-h) + 2rem) 7% 4rem;
  overflow: hidden;
}

/* Subtle grid overlay on hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Bottom gradient fade */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

.hero-main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.hero-divider {
  width: 36px;
  height: 1px;
  background: var(--border);
  margin: 1.4rem 0;
}

.hero-bio {
  font-size: .93rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .6s 1.05s forwards;
}

.hero-greeting {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .15em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .5rem;
  opacity: 0;
  animation: fadeUp .7s .4s forwards;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(.9rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  min-height: 1.6em;
  opacity: 0;
  animation: fadeUp .7s .6s forwards;
}

.blink-cursor {
  display: inline-block;
  color: var(--accent2);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp .7s .8s forwards;
}

.hero-code {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding: .75rem 1rem;
  border-left: 2px solid var(--border);
  background: rgba(59,130,246,0.04);
  border-radius: 0 6px 6px 0;
  opacity: 0;
  animation: fadeUp .7s 1s forwards;
}

.code-bracket {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  opacity: 0;
  animation: fadeUp .7s 1.1s forwards;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #030b1a;
  box-shadow: 0 0 24px rgba(59,130,246,0.4);
}

.btn-primary:hover {
  background: #c4b5fd;
  box-shadow: 0 0 40px rgba(59,130,246,0.6);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border-h);
  color: var(--text-dim);
  background: rgba(59,130,246,0.05);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  transform: translateY(-2px);
}

.arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.hero-photo-frame {
  position: relative;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.45),
    0 0 60px rgba(59,130,246,0.18),
    0 0 120px rgba(37,99,235,0.1);
  transition: box-shadow .4s;
}

.hero-photo-wrap:hover .hero-photo-frame {
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.7),
    0 0 80px rgba(59,130,246,0.3),
    0 0 140px rgba(37,99,235,0.15);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-orientation: from-image;
  filter: grayscale(20%) contrast(1.08) brightness(0.92);
  transition: filter .4s;
  display: block;
}

.hero-photo-wrap:hover .hero-photo-img {
  filter: grayscale(0%) contrast(1.05) brightness(0.96);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(6,6,26,0.65) 100%);
  pointer-events: none;
}

/* Corner accent brackets */
.hpc {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .7;
}
.hpc-tl { top: -6px;  left: -6px;  border-width: 2px 0 0 2px; }
.hpc-tr { top: -6px;  right: -6px; border-width: 2px 2px 0 0; }
.hpc-bl { bottom: -6px; left: -6px;  border-width: 0 0 2px 2px; }
.hpc-br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}

.scroll-hint span {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--text-muted);
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; }
  100% { opacity: .4; transform: scaleY(1); }
}

/* Social sidebar */
.social-sidebar {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(59,130,246,0.04);
  transition: all .25s;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.2);
}

/* ============================================================
   SECTIONS — shared
============================================================ */
.section {
  position: relative;
  z-index: 5;
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

/* Section divider */
.section + .section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 7rem;
  position: absolute;
  top: 0; left: 0;
}

/* Scroll reveal */
.reveal { opacity: 1; }
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.about-bio {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.skills-section { margin-top: 1.25rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-block;
  padding: .3rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: all .2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Profile photo */
.about-photo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-orientation: from-image;
  filter: grayscale(20%) contrast(1.05);
  transition: filter .4s;
}

.photo-frame:hover .profile-img { filter: grayscale(0%) contrast(1.05); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(6,6,26,0.8) 100%
  );
  pointer-events: none;
}

.photo-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(59,130,246,0.1),
              0 0 40px rgba(59,130,246,0.15);
  pointer-events: none;
  transition: box-shadow .4s;
}

.photo-frame:hover .photo-border-glow {
  box-shadow: inset 0 0 40px rgba(59,130,246,0.2),
              0 0 60px rgba(59,130,246,0.3);
}

.photo-tags {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.photo-tag {
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

/* ============================================================
   PROJECTS
============================================================ */
.section-header-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-header-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .1em;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.project-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(59,130,246,0.12);
}

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

.card-featured {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.04);
}

.card-featured::before { opacity: 1; }

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

.project-org {
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ext-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all .2s;
  line-height: 1;
}

.project-card:hover .ext-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  color: var(--text);
}

.project-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.project-award {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 4px;
  padding: .25rem .65rem;
  margin-bottom: .75rem;
}

/* ============================================================
   EXPERIENCE — TIMELINE
============================================================ */
#experience h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 3rem;
}

.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 4rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--glow);
  transition: all .3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 24px var(--glow);
}

.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(var(--border), transparent);
  margin-top: 6px;
}

.timeline-body {
  padding-bottom: 3rem;
}

.timeline-date {
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
  letter-spacing: -.01em;
}

.timeline-company {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.timeline-body p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Education */
.education { margin-top: 2rem; }

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all .3s;
}

.edu-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.edu-school {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.edu-detail {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.edu-award {
  font-size: .85rem;
  color: var(--text-dim);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.contact-left p {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  padding: .9rem 1.6rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: rgba(59,130,246,0.05);
  transition: all .25s;
}

.contact-email-link:hover {
  background: rgba(59,130,246,0.12);
  box-shadow: 0 0 32px rgba(59,130,246,0.25);
  transform: translateY(-2px);
}

.contact-email-link .arrow { transition: transform .2s; }
.contact-email-link:hover .arrow { transform: translateX(5px); }

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: all .25s;
}

.contact-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateX(6px);
  color: var(--text);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(59,130,246,0.08);
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
}

.contact-type {
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.contact-value {
  font-size: .9rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(59,130,246,0.1);
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .06em;
}

.footer-logo { color: var(--accent); font-size: .9rem; }
.footer-built { font-size: .65rem; letter-spacing: .15em; }

/* ============================================================
   MAGNETIC BUTTON (enhanced by JS)
============================================================ */
.magnetic-btn { display: inline-block; }

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-section { flex-direction: column; padding: calc(var(--nav-h) + 2rem) 5% 5rem; }
  .hero-photo-wrap { position: relative; top: auto; width: 200px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .hero-photo-wrap { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem 1.25rem; }

  #navbar { padding: 0 1.25rem; }
  .nav-links { gap: 1.5rem; }
  .nav-link .num { display: none; }

  .hero-section { padding: var(--nav-h) 1.25rem 2rem; }
  .social-sidebar { display: none; }

  .stats-row { gap: 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 20px 1fr; }
  footer { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .nav-links { gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
