/* ═══════════════════════════════════════════════════════
   1. Reset & CSS Variables
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #F4F7FB;
  --bg-alt:     #EBF0F8;
  --surface:    #FFFFFF;
  --border:     #D0DCEE;
  --text:       #0D1B2E;
  --text-muted: #52677E;
  --accent:     #1B4FD8;
  --accent-dk:  #1340B0;
  --accent-lt:  #E8EFFD;
  --accent-2:   #0EA5E9;
  --nav-h:      72px;
}

/* ═══════════════════════════════════════════════════════
   2. Base Typography & Shared Utilities
   ═══════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 300;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════════════════
   3. Layout Primitives
   ═══════════════════════════════════════════════════════ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   4. Components — Buttons, Tags, Fade-up
   ═══════════════════════════════════════════════════════ */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  border: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Tags */
.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tag:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent-dk);
}

/* Fade-up scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   5. Nav & Mobile Menu
   ═══════════════════════════════════════════════════════ */

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.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 {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  color: var(--accent) !important;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
}

/* ═══════════════════════════════════════════════════════
   6. Section Styles
   ═══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  padding: 5rem 0 6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.hero-name {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.hero-name .first { display: block; }
.hero-name .last  { display: block; color: var(--accent); }

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 2.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--border);
}

/* Hero card (right column) */
.hero-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 210px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(13, 27, 46, 0.07);
}

.hero-card-top {
  width: 100%;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.avatar-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  border: 3px solid #fff;
  box-shadow: 0 2px 14px rgba(27, 79, 216, 0.28);
}

.hero-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.hero-card-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Stat items inside hero card */
.hero-stats { display: flex; flex-direction: column; }

.stat-item {
  text-align: center;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-bottom: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-num sup {
  font-size: 1.1rem;
  color: var(--accent-dk);
  vertical-align: super;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  display: block;
}

/* ── Domain Strip ─────────────────────────────────────── */
.domain-strip {
  background: var(--text);
  padding: 0;
}

.domain-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.domain-item {
  text-align: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}
.domain-item:last-child { border-right: none; }
.domain-item:hover { background: rgba(255, 255, 255, 0.04); }

.domain-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.domain-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.domain-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ── About ────────────────────────────────────────────── */
#about {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.highlight-card:hover { border-color: var(--accent); }

.highlight-icon {
  width: 42px; height: 42px;
  border-radius: 3px;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.highlight-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Skills ───────────────────────────────────────────── */
#skills { padding: 7rem 0; }

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

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-category:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(27, 79, 216, 0.08);
}

.skill-cat-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-cat-title::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}

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

/* ── Experience ───────────────────────────────────────── */
#experience {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 3.5rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 8px;
  transform: translateX(50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-period {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-company .badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timeline-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── Certifications ───────────────────────────────────── */
#certifications {
  padding: 7rem 0;
  background: var(--bg);
}

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

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 28px rgba(27, 79, 216, 0.1);
  transform: translateY(-2px);
}

.cert-logo {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.cert-issuer {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.cert-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.cert-badge::before { content: '✓'; font-size: 0.8rem; }

/* ── Projects ─────────────────────────────────────────── */
#projects { padding: 7rem 0; }

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(27, 79, 216, 0.1);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-icon {
  width: 48px; height: 48px;
  background: var(--accent-lt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.project-domain {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  white-space: nowrap;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.project-tech .tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
}

/* ── Contact ──────────────────────────────────────────── */
#contact {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-info p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.contact-link-icon {
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-link-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.contact-link-info strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 130px; }

.form-submit { align-self: flex-start; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}
.footer-name span { color: var(--accent); }

.footer-nav {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   7. Responsive Breakpoints
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card {
    flex-direction: row;
    min-width: unset;
    width: 100%;
  }
  .hero-card-top {
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 1.5rem 1.5rem;
    flex-shrink: 0;
    width: 180px;
  }
  .hero-stats { flex-direction: row; flex: 1; }
  .stat-item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .stat-item:last-child { border-right: none; }

  /* Domain strip */
  .domain-strip-grid { grid-template-columns: 1fr; }
  .domain-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 2rem;
  }
  .domain-item:last-child { border-bottom: none; }

  /* Layout */
  .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid    { grid-template-columns: repeat(2, 1fr); }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .cert-grid      { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }

  /* Nav */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* Footer */
  .footer-nav { display: none; }
}

@media (max-width: 600px) {
  /* Hero card stacks vertically on small screens */
  .hero-card { flex-direction: column; }
  .hero-card-top {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .hero-stats { flex-direction: column; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child { border-bottom: none; }

  /* Layout */
  .skills-grid   { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; gap: 0.5rem; text-align: center; }
}
