/* ============================================================
   HAMZA NAVEED — PORTFOLIO  |  style.css
   Modern, dark, minimal developer portfolio
   ============================================================ */

/* ── Google Fonts are loaded in index.html ────────────────── */

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

:root {
  /* Palette */
  --bg:          #09090f;
  --surface:     #0f0f1a;
  --card:        #14142b;
  --card-hover:  #1c1c38;
  --border:      rgba(99,102,241,.18);
  --accent:      #6366f1;
  --accent-glow: rgba(99,102,241,.35);
  --accent2:     #06b6d4;
  --success:     #22c55e;

  /* Text */
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-faint:  #475569;

  /* Typography */
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --max-w:       1200px;
  --section-py:  7rem;

  /* Transitions */
  --t-fast:      150ms ease;
  --t-base:      300ms ease;
  --t-slow:      600ms ease;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.6);
  --glow:        0 0 40px var(--accent-glow);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--accent2); }

.mono { font-family: var(--font-mono); font-size: .9em; color: var(--accent2); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 3. LAYOUT HELPERS ────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-py) 0; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,102,241,.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: .6rem; }
.section-lead {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--t-base);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: var(--glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── 5. NAVIGATION ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--t-base);
}
#navbar.scrolled {
  background: rgba(9,9,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--t-base);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t-base);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { padding: .5rem 1.1rem; font-size: .88rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(9,9,15,.97);
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
    z-index: 999;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-cta { display: none; }
}

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

/* Animated background grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -150px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent2);
  bottom: -100px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent2);
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 100px;
  padding: .35rem .9rem;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title { margin-bottom: 1rem; }
.hero-title .name { display: block; }
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero-sub .typed-cursor { color: var(--accent); }
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Hero image */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}
.hero-img-wrap {
  width: 300px;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,.2);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,15,.6) 0%, transparent 60%);
}
/* Floating chips */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(15,15,26,.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  animation: chipFloat 4s ease-in-out infinite;
}
.hero-chip svg { width: 14px; height: 14px; }
.chip-1 { top: -12px; left: -30px; color: var(--accent2); animation-delay: 0s; }
.chip-2 { bottom: 20px; right: -30px; color: var(--success); animation-delay: 1.5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-desc, .hero-sub { max-width: 100%; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-wrap { width: 220px; height: 220px; }
  .chip-1 { left: -10px; }
  .chip-2 { right: -10px; }
}

/* ── 7. ABOUT ─────────────────────────────────────────────── */
#about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p { font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.highlight-item svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 6px;
  background: rgba(99,102,241,.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t-base);
}
.skill-tag:hover {
  background: rgba(99,102,241,.2);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}
.about-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .5rem;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── 8. PROJECTS ──────────────────────────────────────────── */
#projects { background: var(--bg); }
.project-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-faint);
  padding: .7rem 1.3rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--t-base);
  letter-spacing: .02em;
}
.tab-btn:hover { color: var(--text-muted); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: grid; }

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--glow), var(--shadow-md);
  background: var(--card-hover);
}

.project-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--card), var(--surface));
  color: var(--text-faint);
  font-size: 2.5rem;
}

.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-category {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}
.project-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  flex: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.stack-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  color: var(--accent2);
}
.project-links {
  display: flex;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--t-base);
}
.project-link:hover { color: var(--accent); }
.project-link svg { width: 14px; height: 14px; }

/* ── 9. EXPERIENCE / EDUCATION TIMELINE ───────────────────── */
#education { background: var(--surface); }
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item:nth-child(odd) .timeline-content { align-items: flex-end; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(99,102,241,.2);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.timeline-content:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--shadow-md);
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.timeline-org {
  font-size: .9rem;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: .5rem;
}
.timeline-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Adjust timeline gap items */
.timeline-item .timeline-side:first-child { padding-right: calc(50% + 1.5rem - 50%); }

@media (max-width: 700px) {
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 50px;
  }
  .timeline-item:nth-child(odd) .timeline-content { align-items: flex-start; }
  .timeline-item .timeline-side:last-child { display: none; }
  .timeline-item .timeline-side:first-child { padding: 0; }
}

/* ── 10. CONTACT ──────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info p { font-size: 1.05rem; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--t-base);
}
.contact-method:hover {
  border-color: rgba(99,102,241,.4);
  background: var(--card-hover);
  transform: translateX(4px);
}
.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.12);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-method-icon svg { width: 20px; height: 20px; }
.contact-method-text { display: flex; flex-direction: column; }
.contact-method-label {
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .1rem;
}
.contact-method-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

/* Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-group textarea { height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; justify-content: center; padding: .9rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── 11. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-brand span { color: var(--accent); }
.footer-copy {
  font-size: .85rem;
  color: var(--text-faint);
  text-align: center;
}
.footer-social {
  display: flex;
  gap: .75rem;
}
.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t-base);
}
.social-link:hover {
  background: rgba(99,102,241,.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.social-link svg { width: 17px; height: 17px; }

/* ── 12. SCROLL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-stagger.revealed > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.05s; }
.reveal-stagger.revealed > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.15s; }
.reveal-stagger.revealed > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.25s; }
.reveal-stagger.revealed > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:.35s; }
.reveal-stagger.revealed > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:.45s; }
.reveal-stagger.revealed > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:.55s; }
.reveal-stagger.revealed > *:nth-child(7) { opacity:1; transform:translateY(0); transition-delay:.65s; }
.reveal-stagger.revealed > *:nth-child(8) { opacity:1; transform:translateY(0); transition-delay:.75s; }
.reveal-stagger.revealed > *:nth-child(9) { opacity:1; transform:translateY(0); transition-delay:.85s; }

/* ── 13. SCROLL TO TOP ────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-base);
  z-index: 500;
  box-shadow: var(--glow);
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--accent2); }
#scroll-top svg { width: 20px; height: 20px; }

/* ── 14. SECTION DIVIDER ──────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ── 15. CURSOR ───────────────────────────────────────────── */
@media (pointer: fine) {
  .cursor {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform var(--t-fast), opacity var(--t-fast);
  }
  .cursor-ring {
    width: 30px; height: 30px;
    border: 1px solid rgba(99,102,241,.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform .12s ease, width .2s, height .2s, border-color .2s;
  }
  body.hovered .cursor-ring {
    width: 50px; height: 50px;
    border-color: var(--accent);
  }
}

/* ── 16. MISC ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: rgba(99,102,241,.35); color: var(--text); }

.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;
}
