/* ─── TOKENS ───────────────────────────────────────────────── */
:root {
  --teal:       #0d9488;
  --teal-light: #ccfbf1;
  --teal-mid:   #14b8a6;
  --teal-dark:  #0f766e;
  --ink:        #0f1117;
  --ink-soft:   #374151;
  --ink-muted:  #6b7280;
  --white:      #ffffff;
  --off-white:  #f8fafb;
  --border:     #e5e7eb;
  --radius:     14px;
  --nav-h:      68px;
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ─── NAV ────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links .nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 18px 0; }
.mobile-menu ul li a {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--teal); }

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg-shape {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 32px;
}
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-name em {
  color: var(--teal);
  font-style: italic;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13,148,136,0.25);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,0.35);
}
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
#about {
  padding: 120px 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 0;
}
.about-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.about-left h2 em {
  color: var(--teal);
  font-style: italic;
}
.about-right p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--teal-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ─── EXPERIENCE ─────────────────────────────────────────────── */
#experience {
  padding: 120px 0;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 64px;
  line-height: 1.2;
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -29px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--teal);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.timeline-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}
.card-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.card-company {
  font-size: 0.84rem;
  color: var(--teal-dark);
  font-weight: 500;
}
.card-badge {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-card ul li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.timeline-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal-mid);
  font-size: 0.85rem;
}

/* ─── SKILLS ─────────────────────────────────────────────────── */
#skills {
  padding: 120px 0;
  background: var(--off-white);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.skill-category:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.skill-category h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pills span {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
}
.skill-pills span em {
  font-style: normal;
  color: var(--teal-mid);
  font-size: 0.75rem;
}

/* ─── ACTIVITIES ─────────────────────────────────────────────── */
#activities {
  padding: 120px 0;
}
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.activity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.activity-card:hover {
  box-shadow: 0 10px 44px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.activity-accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
}
.activity-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.activity-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.activity-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
#contact {
  padding: 120px 0;
  background: var(--ink);
  color: var(--white);
}
.contact-inner {
  max-width: 720px;
}
.contact-inner .section-label {
  color: var(--teal-mid);
}
.contact-inner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.1;
}
.contact-inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.8;
}
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-item:hover {
  border-color: var(--teal-mid);
  color: var(--white);
  background: rgba(13,148,136,0.08);
}
.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--teal-mid);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 24px 0;
  background: #070b10;
  text-align: center;
}
footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
  .contact-links { grid-template-columns: 1fr; }
  #about, #experience, #skills, #activities, #contact { padding: 80px 0; }
}
