@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --ink:       #0f1117;
  --ink-soft:  #2a2d38;
  --mid:       #5c5f6e;
  --muted:     #9ea1b0;
  --border:    #e4e6ef;
  --surface:   #f7f8fc;
  --white:     #ffffff;
  --teal:      #1a7f7a;
  --teal-soft: #e6f4f3;
  --teal-mid:  #2da89f;
  --accent:    #d4673b;
  --accent-soft:#fdf0ea;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display em { font-style: italic; color: var(--teal); }

h2.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

p { color: var(--mid); line-height: 1.85; font-size: 0.97rem; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-mid); }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  transition: box-shadow 0.3s;
}

.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand span { color: var(--teal); }

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mid);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--teal);
  background: var(--teal-soft);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}

.nav-cta:hover { background: var(--teal-mid) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

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

/* ===== PAGE WRAPPER ===== */
.page-body { padding-top: 64px; }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text { max-width: 560px; }

.hero-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-intro-line {
  width: 32px;
  height: 2px;
  background: var(--teal);
}

.hero-intro-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.hero-title { margin-bottom: 1.5rem; }

.hero-desc {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  border: none;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-mid); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,127,122,0.3); }

.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-soft); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--mid);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.social-link:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-soft);
}

/* ===== HERO CARD ===== */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(26,127,122,0.12), transparent 70%);
  border-radius: 50%;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.hero-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.hero-card-title {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--teal);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.3rem;
  display: block;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-dark {
  background: var(--surface);
  color: var(--mid);
  border: 1px solid var(--border);
}

/* ===== SECTION GENERIC ===== */
.section {
  padding: 5.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt { background: var(--surface); }
.section-alt > .section { max-width: 100%; padding-left: 0; padding-right: 0; }
.section-alt .section-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

.section-dark { background: var(--ink-soft); }
.section-dark .section-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

/* ===== SECTION HEADER ===== */
.section-label { /* alias */ }

.section-header { margin-bottom: 3rem; }
.section-header p { max-width: 580px; margin-top: 0.5rem; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--teal-soft);
  border-left: 2px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p { color: var(--teal); font-size: 0.92rem; margin: 0; font-style: italic; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s;
}

.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.07); transform: translateY(-3px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--teal-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.card p { font-size: 0.88rem; }

/* ===== TWO-COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--teal);
  z-index: 1;
}

.timeline-item.current::before { background: var(--teal); }

.timeline-year {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.timeline-place {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.timeline-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }

.timeline-bullets {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-bullets li { font-size: 0.84rem; color: var(--mid); line-height: 1.65; }

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
}

.skill-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(26,127,122,0.1); transform: translateY(-2px); }

.skill-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

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

.skill-tag {
  font-size: 0.75rem;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 3rem 3rem;
  text-align: center;
}

.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { margin-top: 0.5rem; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1rem; }

/* ===== CV TABLE ===== */
.cv-section { margin-bottom: 3.5rem; }

.cv-section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.cv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cv-row:last-child { border-bottom: none; }

.cv-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
  line-height: 1.6;
}

.cv-item-title { font-weight: 500; color: var(--ink); font-size: 0.94rem; margin-bottom: 0.15rem; }
.cv-item-sub { font-size: 0.82rem; color: var(--teal); margin-bottom: 0.4rem; font-weight: 500; }
.cv-item-desc { font-size: 0.86rem; color: var(--mid); line-height: 1.75; }

.cv-bullets { margin-top: 0.5rem; padding-left: 1.1rem; }
.cv-bullets li { font-size: 0.83rem; color: var(--mid); margin-bottom: 0.3rem; line-height: 1.65; }

.cv-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.cv-tag { font-size: 0.72rem; background: var(--teal-soft); color: var(--teal); padding: 0.2rem 0.6rem; border-radius: 4px; }

/* ===== CHIPS ===== */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

/* ===== CONFERENCE LIST ===== */
.conf-list { display: flex; flex-direction: column; }

.conf-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.conf-row:hover { background: var(--surface); }

.conf-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
}

.conf-text { font-size: 0.88rem; color: var(--mid); line-height: 1.65; }
.conf-text strong { color: var(--ink); font-weight: 500; }

/* ===== COURSE CARD ===== */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
}

.course-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.07); transform: translateY(-3px); }

.course-card-header {
  background: var(--surface);
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.course-card-body { padding: 1.5rem 1.75rem; }

.course-dates {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.course-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.course-lecturer { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.course-desc { font-size: 0.86rem; color: var(--mid); line-height: 1.8; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ===== DOWNLOAD BANNER ===== */
.download-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.download-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.download-banner h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.download-banner p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.9rem; }

.btn-white { background: var(--white); color: var(--teal); font-weight: 600; flex-shrink: 0; }
.btn-white:hover { background: var(--teal-soft); color: var(--teal-mid); }

/* ===== SERVICE CARD ===== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.3s;
}

.service-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); }

.service-card-header {
  padding: 2rem 2.25rem 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.service-card-body { padding: 2.25rem; }
.service-card-body p { margin-bottom: 1rem; }
.service-card-body p:last-child { margin-bottom: 0; }

.service-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--teal);
  opacity: 0.12;
  float: right;
  margin-left: 1rem;
  line-height: 1;
}

.impact-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--teal-soft);
  border: 1px solid rgba(26,127,122,0.15);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.impact-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
}

.impact-desc { font-size: 0.88rem; color: var(--mid); }
.impact-desc strong { color: var(--teal); display: block; margin-bottom: 0.25rem; }

.people-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.person-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 4rem 3rem 2rem;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--teal-mid); }

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.footer-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.footer-social {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.footer-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav-links a { font-size: 0.84rem; color: rgba(255,255,255,0.5); transition: color 0.2s; text-decoration: none; }
.footer-nav-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.3); }

/* ===== GOLD DIVIDER ===== */
.gold-divider { width: 60px; height: 1px; background: var(--teal); opacity: 0.4; margin: 2rem 0; }

/* ===== PHOTO GALLERY ===== */
.gallery-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .site-nav { padding: 0 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; min-height: auto; gap: 2.5rem; }
  .hero-card { order: -1; }
  .hero-text { max-width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .section-alt .section-inner { padding: 0 1.5rem; }
  .section-dark .section-inner { padding: 0 1.5rem; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .cv-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .conf-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .download-banner { flex-direction: column; text-align: center; }
  /* gallery */
  .gallery-2col { grid-template-columns: 1fr !important; }
  .gallery-3col { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.95rem; }
  .nav-links .nav-cta { text-align: center; background: var(--teal) !important; }
  .hamburger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
