/* ═══════════════════════════════════════════════════════════
   Özgen Erbakan — Personal Website
   Design System: "Engineered Elegance"
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #fafafa;
  --bg-dark: #0a0a0b;
  --bg-card: #ffffff;
  --bg-subtle: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #f5f5f5;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.7s;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.nav--dark {
  background: transparent;
}

.nav--dark.nav--scrolled {
  background: rgba(10, 10, 11, 0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}

.nav--dark .nav__logo { color: var(--text-light); }

.nav__logo:hover { opacity: 0.7; }

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  transition: all 0.3s;
  color: var(--text-secondary);
  position: relative;
}

.nav--dark .nav__link { color: rgba(255,255,255,0.6); }

.nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav--dark .nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav__link--active {
  color: var(--accent) !important;
  background: var(--accent-glow) !important;
}

/* Mobile menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav--dark .nav__hamburger span {
  background: var(--text-light);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Page Header (for inner pages) ── */
.page-header {
  padding: calc(var(--nav-height) + 40px) 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.page-header__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.page-header__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Hero (Landing Page) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 0 48px;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
  min-height: 1.3em;
}

.hero__greeting::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}

.hero__name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero__title span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.2s forwards;
}

.hero__scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(37,99,235,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 30px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ── Hero Stats (inside dark hero) ── */
.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.1s forwards;
}

.hero__stat {
  text-align: center;
  padding: 36px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.hero__stat:last-child { border-right: none; }

.hero__stat:hover {
  background: rgba(255,255,255,0.03);
}

.hero__stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.hero__stat-number span {
  color: var(--accent);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ── Featured Preview Section ── */
.preview-section {
  padding: 0 48px 40px;
  background: var(--bg);
}

.preview-section__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.15;
}

/* Preview Cards */
.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.preview-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.preview-card:hover::before {
  transform: scaleX(1);
}

.preview-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.preview-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.preview-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.preview-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.preview-card__link:hover { gap: 10px; }

.preview-card__link svg {
  width: 14px;
  height: 14px;
}

/* ── About Page: Bio Section ── */
.bio-section {
  padding: 0 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.bio-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 40px;
}

/* ── Skills Grid ── */
.skills-section {
  padding: 80px 48px 100px;
  background: var(--bg-subtle);
}

.skills-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Practices / Tags */
.practices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.practice-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.15);
  transition: all 0.3s;
}

.practice-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Education ── */
.education-section {
  padding: 40px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.edu-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.4s;
}

.edu-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.05);
}

.edu-card__logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--border);
}

.edu-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-card__degree {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-card__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.edu-card__note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ── Scroll Cue ── */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 0 80px;
}

.scroll-cue span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Experience Timeline ── */
.timeline-section {
  padding: 0 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.company-block {
  position: relative;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.company-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.company-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.company-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.role-entries {
  padding-left: 28px;
  border-left: 2px solid var(--border);
  margin-left: 27px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.role-entry {
  position: relative;
  padding-left: 32px;
}

.role-entry::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: all 0.3s;
}

.role-entry:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.role-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.role-date {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.role-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.role-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

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

/* ── Contact Page ── */
.contact-section {
  padding: 0 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.4s var(--ease);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.contact-card:hover .contact-card__icon {
  background: var(--accent);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: color 0.3s;
}

.contact-card:hover .contact-card__icon svg {
  color: #fff;
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* ── Footer ── */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__text span {
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--accent); }

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Keyframes ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .preview-cards { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 240px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
    transition: right 0.4s var(--ease);
  }
  .nav__links.open { right: 0; }
  .nav__hamburger { display: flex; }

  .nav--dark .nav__links {
    background: var(--bg-dark);
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-primary);
  }

  .nav--dark .nav__links .nav__link {
    color: rgba(255,255,255,0.7);
  }

  .hero { padding: 0 24px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat-number { font-size: 1.8rem; }
  .hero__stat { padding: 24px 12px; }

  .page-header { padding: calc(var(--nav-height) + 24px) 24px 20px; }
  .page-header__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .page-header__subtitle { font-size: 0.92rem; }

  .preview-section { padding: 0 24px 24px; }
  .preview-cards { grid-template-columns: 1fr; }

  .bio-section { padding: 0 24px 24px; }
  .bio-grid { grid-template-columns: 1fr; gap: 24px; }
  .bio-photo { max-width: 200px; margin: 0 auto; }
  .bio-text { font-size: 0.95rem; margin-bottom: 24px; }

  .skills-section { padding: 60px 24px; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

  .education-section { padding: 24px 24px 60px; }
  .edu-card { flex-direction: column; padding: 24px; }
  .edu-card__logo { width: 48px; height: 48px; min-width: 48px; }

  .timeline-section { padding: 0 24px 60px; }
  .role-header { flex-direction: column; gap: 8px; }
  .role-list li { font-size: 0.8rem; }

  .contact-section { padding: 0 24px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; gap: 16px; }
  .contact-card__value { font-size: 0.88rem; word-break: break-word; }

  .scroll-cue { padding: 12px 0 24px; }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero__name { font-size: 2.2rem; }
  .hero__title { font-size: 0.88rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 20px 10px; }
  .hero__stat-number { font-size: 1.5rem; }
  .hero__stat-label { font-size: 0.65rem; }
  .role-entries { padding-left: 16px; margin-left: 16px; }
  .role-entry { padding-left: 20px; }
  .role-entry::before { left: -6px; width: 10px; height: 10px; }
  .company-logo { width: 44px; height: 44px; min-width: 44px; }
  .company-name { font-size: 1rem; }
  .tech-tags { gap: 6px; }
  .tech-tag { font-size: 0.68rem; padding: 3px 8px; }
  .practice-tag { font-size: 0.72rem; padding: 6px 14px; }
  .section-heading { font-size: 1.5rem; }
  .preview-card { padding: 20px 18px; }
}

/* ── Print ── */
@media print {
  .nav, .hero__scroll-hint { display: none; }
  .hero { min-height: auto; padding: 40px; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
