@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --bg:        #050a0f;
  --bg2:       #0a1520;
  --bg3:       #0f1e2d;
  --cyan:      #00f5ff;
  --magenta:   #ff2d78;
  --gold:      #ffc300;
  --text:      #c8d6e5;
  --muted:     #4a6580;
  --border:    rgba(0,245,255,0.15);
  --mono:      'Space Mono', monospace;
  --sans:      'DM Sans', sans-serif;
  --display:   'Syne', sans-serif;
  --glow:      0 0 20px rgba(0,245,255,0.4);
  --glowM:     0 0 20px rgba(255,45,120,0.4);
}

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

html { scroll-behavior: smooth; font-size: 10px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.6rem;
  overflow-x: hidden;
  cursor: default;
}

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

/* ─── Progress Bar ─────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--cyan);
}

/* ─── Noise Overlay ────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── Nav ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 4rem;
  background: rgba(5,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

.nav-logo span { color: var(--magenta); }

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--muted);
  letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.nav-socials { display: flex; gap: 1.2rem; }

.nav-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: all 0.2s;
  color: var(--muted);
}

.nav-socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow);
}

/* ─── Hero ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 12rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-eyebrow::before { content: '> '; color: var(--magenta); }

h1.hero-name {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.hero-name .line1 {
  display: block;
  font-size: clamp(4rem, 8vw, 8rem);
  color: white;
  font-weight: 400;
}

.hero-name .line2 {
  display: block;
  font-size: clamp(4.5rem, 10vw, 10rem);
  color: var(--cyan);
  text-shadow: 0 0 60px rgba(0,245,255,0.3);
}

.hero-title {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

.hero-desc {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 3.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 1s forwards;
}

.btn-primary {
  padding: 1.4rem 3rem;
  background: linear-gradient(135deg, var(--cyan), #0096c7);
  color: #000;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--magenta), #ff6b6b);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,245,255,0.3); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  padding: 1.4rem 3rem;
  background: transparent;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.3rem;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(0,245,255,0.08);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* Terminal Card */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  animation: fadeLeft 0.8s 0.6s forwards;
  box-shadow: 0 0 60px rgba(0,245,255,0.08);
}

.terminal-bar {
  background: var(--bg3);
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 2rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 2;
}

.t-line { display: flex; gap: 0.8rem; }
.t-prompt { color: var(--magenta); }
.t-cmd { color: var(--cyan); }
.t-out { color: var(--text); padding-left: 1.2rem; }
.t-key { color: var(--gold); }
.t-val { color: #a8ff78; }
.t-blank { height: 1.2em; }

.cursor {
  display: inline-block;
  width: 2px; height: 1.4em;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

/* Hero bg glow */
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,120,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

/* ─── Section Base ─────────────────────────────── */
section {
  padding: 10rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--magenta);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label::before { content: '// '; opacity: 0.5; }

h2.section-title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 5rem;
  line-height: 1.1;
}

h2.section-title em {
  font-style: normal;
  color: var(--cyan);
}

/* Section divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 4rem;
  max-width: calc(100% - 8rem);
}

/* ─── About ────────────────────────────────────── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
  filter: saturate(0.8) contrast(1.1);
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  z-index: -1;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.stat-number {
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.stat-label {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.6rem;
}

/* ─── Experience ───────────────────────────────── */
#experience { padding-top: 0; }

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--magenta), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding: 2.4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.timeline-item:hover {
  border-color: rgba(0,245,255,0.4);
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.6rem;
  top: 2.8rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.timeline-role {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--magenta);
  background: rgba(255,45,120,0.1);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255,45,120,0.2);
}

.timeline-company {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 1.6rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.timeline-bullets li {
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 1.6rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.highlight-badge {
  display: inline-block;
  background: rgba(255,195,0,0.1);
  color: var(--gold);
  border: 1px solid rgba(255,195,0,0.2);
  font-family: var(--mono);
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-left: 0.8rem;
  vertical-align: middle;
}

/* ─── Skills ───────────────────────────────────── */
#skills { padding-top: 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.4rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--cyan));
}

.skill-card:hover {
  border-color: var(--card-accent, var(--cyan));
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.skill-card-icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.skill-card-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.4rem;
}

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

.tag {
  font-family: var(--mono);
  font-size: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: rgba(0,245,255,0.06);
  border: 1px solid rgba(0,245,255,0.15);
  color: var(--text);
}

/* Tech chip strip */
.tech-strip {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--text);
  transition: all 0.2s;
  cursor: default;
}

.tech-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow);
  transform: scale(1.04);
}

.tech-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ─── Certifications ───────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.cert-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.4rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
}

.cert-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255,195,0,0.15);
}

.cert-icon { font-size: 2.4rem; }

.cert-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.cert-status {
  font-family: var(--mono);
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.cert-status.earned {
  background: rgba(40,200,64,0.1);
  color: #28c840;
  border: 1px solid rgba(40,200,64,0.2);
}

.cert-status.progress {
  background: rgba(255,195,0,0.1);
  color: var(--gold);
  border: 1px solid rgba(255,195,0,0.2);
}

/* ─── Education ────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem;
}

.edu-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.8rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '🎓';
  position: absolute;
  bottom: 1.6rem; right: 2rem;
  font-size: 4rem;
  opacity: 0.08;
}

.edu-card:hover {
  border-color: rgba(0,245,255,0.35);
  transform: translateY(-3px);
}

.edu-degree {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
}

.edu-school {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.edu-date {
  font-size: 1.3rem;
  color: var(--muted);
}

/* ─── Contact ──────────────────────────────────── */
#contact { padding-top: 0; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.6rem;
}

.contact-info p {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--text);
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.8rem;
  width: 3rem;
  text-align: center;
}

/* Form */
.contact-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.2rem;
}

.form-title {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 2.4rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  color: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,245,255,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.btn-send {
  width: 100%;
  padding: 1.6rem;
  background: linear-gradient(135deg, var(--cyan) 0%, #0096c7 100%);
  color: #000;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-send::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--magenta), #ff6b6b);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-send:hover::after { opacity: 1; }
.btn-send:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-send span { position: relative; z-index: 1; }

/* ─── Resume Modal ─────────────────────────────── */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.4rem;
  width: min(90vw, 800px);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--muted);
}

.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  margin: 0;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover { border-color: var(--magenta); color: var(--magenta); }

.resume-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.modal-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--bg3);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.modal-download:hover {
  background: rgba(0,245,255,0.08);
  box-shadow: var(--glow);
}

/* ─── Footer ───────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

footer a:hover { color: var(--cyan); }

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── Mobile Nav Toggle ─────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  #about .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 340px; margin: 0 auto; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1.4rem 2rem; }
  section { padding: 6rem 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.6rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  #hero { padding: 10rem 2rem 4rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
