/* ═══════════════════════════════════════════════════
   ajayanandan.xyz — style.css  (v3 — full UI overhaul)
═══════════════════════════════════════════════════ */

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

/* ── TOKENS ───────────────────────────────────────── */
:root {
  --bg:          #0e0e16;
  --surface:     #16161f;
  --surface2:    #1b1b26;
  --surface3:    #22222f;
  --accent:      #e63946;
  --accent-dim:  rgba(230, 57, 70, 0.10);
  --accent-glow: rgba(230, 57, 70, 0.30);
  --accent2:     #ff6b6b;
  --white:       #f0f0f6;
  --grey1:       #c9c9d6;
  --grey2:       #9191a3;
  --grey3:       #55556b;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);
  --radius:      10px;
  --radius-lg:   16px;
}

/* ── BASE ─────────────────────────────────────────── */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ────────────────────────── */
body::after {
  content: '';
  position: fixed;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCREEN-READER ONLY ───────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── SKIP LINK ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── RED SPINE ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%, var(--accent) 20%,
    var(--accent) 80%, transparent 100%);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* ── LAYOUT ───────────────────────────────────────── */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px 0 72px;
  position: relative;
  z-index: 1;
}

/* ── NAV ──────────────────────────────────────────── */
header[role="banner"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

nav {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--grey2);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Resume pill in desktop nav */
.nav-resume-desktop a {
  background: var(--accent-dim);
  border: 1px solid rgba(230,57,70,0.25);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
}
.nav-resume-desktop a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-resume-desktop a::after { display: none; }

/* ── HAMBURGER ────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 9px;
  z-index: 200;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface3); }
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-resume-mobile { display: none; }

/* ── SECTIONS ─────────────────────────────────────── */
section { padding: 96px 0 56px; }
section:first-of-type { padding-top: 0; }

/* ── SECTION LABEL ────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 44px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after {
  content: ''; display: block;
  height: 1px; width: 40px;
  background: var(--accent); opacity: 0.35;
}

/* ── HERO ─────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Hero background glow */
#hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--grey3);
  letter-spacing: 0.12em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent); opacity: 0.5;
}

.hero-wrap { max-width: 720px; }

/* Small circular photo that overlaps the top-left of the name —
   a badge, not a hero image. Negative margin pulls it into the
   heading's bounding box; z-index keeps it in front. */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}
.hero-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  outline: 2px solid var(--border2);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  margin-right: -26px;
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(44px, 7.5vw, 76px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  position: relative;
  z-index: 1;
  padding-left: 34px;
}
.hero-name span { color: var(--accent); }

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(13px, 1.8vw, 17px);
  color: var(--grey2);
  margin-bottom: 32px;
  min-height: 28px;
}

#typed-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  font-size: 16.5px; color: var(--grey2);
  max-width: 540px; line-height: 1.8;
  margin-bottom: 40px;
}
.hero-bio strong { color: var(--white); font-weight: 500; }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer; border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover, .btn-primary:focus {
  background: #ff4757;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent; color: var(--grey1);
  border: 1px solid var(--border2);
}
.btn-ghost:hover, .btn-ghost:focus {
  border-color: var(--grey3); background: var(--surface2);
  color: var(--white);
}

.btn-primary[download] { position: relative; overflow: hidden; }

/* ── HERO STATS ───────────────────────────────────── */
.hero-stats {
  display: flex; gap: 0;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-size: 38px; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 11px; color: var(--grey3);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── ABOUT ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px; align-items: start;
}

.about-text p {
  color: var(--grey2); margin-bottom: 18px;
  font-size: 15.5px; line-height: 1.85;
}
.about-text p strong { color: var(--white); font-weight: 500; }

.about-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 90px;
}

.detail-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }

.detail-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--grey3);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.detail-val { color: var(--white); font-weight: 500; }

.status-dot {
  display: inline-flex; align-items: center; gap: 7px;
}
.status-dot::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: #2ecc71;
  flex-shrink: 0; animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

/* ── PROJECTS ─────────────────────────────────────── */
.projects-grid { display: grid; gap: 16px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s ease;
}
.project-card:hover, .project-card:focus-within {
  border-color: var(--border2);
  box-shadow: -6px 0 24px rgba(230,57,70,0.08);
}
.project-card:hover::before { transform: scaleY(1); }

.project-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 14px;
}

.project-name {
  font-size: 17px; font-weight: 600; color: var(--white);
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; padding: 3px 10px;
  border-radius: 20px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.badge-red    { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(230,57,70,0.2); }
.badge-blue   { background: rgba(52,152,219,0.08); color: #5dade2; border: 1px solid rgba(52,152,219,0.2); }
.badge-green  { background: rgba(46,204,113,0.08); color: #58d68d; border: 1px solid rgba(46,204,113,0.2); }
.badge-purple { background: rgba(142,68,173,0.08); color: #a569bd; border: 1px solid rgba(142,68,173,0.2); }

.project-desc {
  font-size: 14px; color: var(--grey2);
  line-height: 1.75; margin-bottom: 18px;
}

.project-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; list-style: none;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--grey3);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 4px;
}

.project-link {
  font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

/* ── EXPERIENCE TIMELINE ──────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border2) 15%, var(--border2) 85%, transparent);
}

.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 6px;
}

.timeline-role {
  font-size: 17px; font-weight: 600;
  color: var(--white); margin-bottom: 3px;
}

.timeline-org {
  font-size: 13px; color: var(--grey3); margin-bottom: 14px;
}

.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.timeline-bullets li {
  font-size: 14px; color: var(--grey2);
  padding-left: 18px; position: relative; line-height: 1.7;
}
.timeline-bullets li::before {
  content: '›'; position: absolute; left: 0; color: var(--accent);
}

/* ── CTF ──────────────────────────────────────────── */
.ctf-header {
  display: flex; align-items: baseline;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}

.ctf-count {
  font-size: 64px; font-weight: 700;
  line-height: 1; color: var(--white);
}
.ctf-count span { color: var(--accent); }

.ctf-sub {
  font-size: 14px; color: var(--grey2);
  max-width: 360px; line-height: 1.65;
}

.ctf-diff { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.diff-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; padding: 5px 14px;
  border-radius: 20px; font-weight: 500;
}
.diff-easy { background: rgba(46,204,113,0.1); color: #58d68d; border: 1px solid rgba(46,204,113,0.2); }
.diff-med  { background: rgba(230,126,34,0.1); color: #f0a04b; border: 1px solid rgba(230,126,34,0.2); }
.diff-hard { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(230,57,70,0.25); }

.ctf-categories {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 32px;
}

.ctf-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
}

.ctf-cat-name {
  font-size: 13px; font-weight: 600;
  color: var(--white); margin-bottom: 10px;
}

.ctf-techniques {
  font-size: 12.5px; color: var(--grey2); line-height: 1.75;
}

.ctf-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}

.ctf-note { font-size: 13px; color: var(--grey3); margin-top: 16px; }

/* ── SKILLS ───────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  transition: border-color 0.2s;
}
.skill-group:hover { border-color: var(--border2); }

.skill-group-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px; font-weight: 500;
}

.skill-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }

.skill-item {
  font-size: 13.5px; color: var(--grey2);
  display: flex; align-items: center; gap: 9px;
}
.skill-item::before {
  content: '→'; color: var(--accent);
  font-size: 11px; opacity: 0.5; flex-shrink: 0;
}

/* ── CERTIFICATIONS ───────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.cert-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.cert-name { font-size: 13px; font-weight: 500; color: var(--white); line-height: 1.4; }
.cert-date { font-size: 11px; color: var(--grey3); margin-top: 6px; }

/* ── CONTACT ──────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}

.contact-text {
  font-size: 15.5px; color: var(--grey2);
  line-height: 1.85; margin-bottom: 32px;
}
.contact-text strong { color: var(--white); }

address { font-style: normal; }

.contact-links { display: flex; flex-direction: column; gap: 10px; }

.contact-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.contact-link:hover, .contact-link:focus {
  border-color: var(--accent); transform: translateX(5px);
  background: var(--surface2);
}

.contact-link-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--accent);
  width: 64px; text-transform: uppercase;
  letter-spacing: 0.06em; flex-shrink: 0;
}
.contact-link-text { font-size: 14px; color: var(--white); font-weight: 500; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

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

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--grey3);
}
.footer-copy span { color: var(--accent); }

footer nav { display: flex; gap: 24px; }
footer nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--grey3);
  text-decoration: none; transition: color 0.2s;
}
footer nav a:hover { color: var(--white); }

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOCUS ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px; border-radius: 2px;
}

/* ── BACK TO TOP ──────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--grey2); font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
  pointer-events: none; z-index: 90;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESUME BUTTON PULSE ──────────────────────────── */
.btn-primary[download]::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.06); opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary[download]:hover::after { opacity: 1; }

/* ── RESPONSIVE: TABLET ───────────────────────────── */
@media (max-width: 768px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .ctf-categories { grid-template-columns: 1fr; }
  .about-details { position: static; }
  .hero-avatar { width: 68px; height: 68px; margin-right: -20px; }
  .hero-name { padding-left: 26px; }
}

/* ── RESPONSIVE: MOBILE ───────────────────────────── */
@media (max-width: 640px) {
  body::before { display: none; }
  .wrap { padding: 0 20px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .stat { padding-right: 24px; margin-right: 24px; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .project-top { flex-direction: column; gap: 8px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; inset: 0;
    background: rgba(8,8,16,0.97);
    flex-direction: column; align-items: center;
    justify-content: center; gap: 36px;
    z-index: 100; padding: 80px 24px 40px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; letter-spacing: 0.05em; }
  /* Hide the desktop pill-styled Resume link on mobile — the dedicated
     .nav-resume-mobile link below replaces it so it isn't shown twice. */
  .nav-resume-desktop { display: none; }
  .nav-resume-mobile { display: block; }
  .nav-resume-mobile a {
    color: var(--accent) !important;
    font-size: 16px !important;
    border: 1px solid rgba(230,57,70,0.3) !important;
    padding: 10px 32px !important;
    border-radius: var(--radius) !important;
    background: var(--accent-dim) !important;
  }
  .ctf-cta-row { flex-direction: column; }
  .ctf-cta-row .btn { justify-content: center; }
}

/* ── REDUCED MOTION ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── PRINT ────────────────────────────────────────── */
@media print {
  body::before, body::after, nav, .hero-cta,
  #back-to-top, .btn { display: none; }
  body { background: #fff; color: #000; }
  .wrap { padding: 0; max-width: 100%; }
}
