/* ── Reset & Variables ─────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #0d9488;
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #222;
  --text: #f5f5f5;
  --muted: #888;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Scroll Progress Bar ───────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--teal);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
}

/* ── Sections (shared) ─────────────────────────────── */
section {
  padding: 80px 8%;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

/* ── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary i     { font-size: 13px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-ghost:hover,
.btn-ghost:active {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}
.btn-ghost i     { font-size: 13px; }

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
}

/* ── Hero right column ─────────────────────────────── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 320px;
}

/* ── Hero Socials ──────────────────────────────────── */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.hero-social-icon:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.hero-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.hero-email-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.card-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
}

.card-trigger.hidden {
  opacity: 0;
  pointer-events: none;
}

.arrow-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 16px;
  animation: bounce-left 1.2s ease-in-out infinite;
  transition: background 0.2s;
}

.card-trigger:hover .arrow-btn  { background: rgba(13, 148, 136, 0.1); }
.card-trigger:hover .arrow-hint { color: var(--teal); }

@keyframes bounce-left {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-8px); }
}

/* ── Card close button ─────────────────────────────── */
.card-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.card-close:hover { border-color: #555; color: var(--text); }

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

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero-inner h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-inner h1 span { color: var(--teal); }

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 40px;
  min-height: 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fade-in {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.15s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Contact Card (hero) ───────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 0 40px rgba(13, 148, 136, 0.06);
  position: absolute;
  width: 100%;
  transform: translateX(120%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card.visible { transform: translateX(0); }

.card-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--text);
}

.card-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── Status Indicator ──────────────────────────────── */
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ── Available-for Tags ────────────────────────────── */
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--teal);
  color: var(--teal);
  background: rgba(13, 148, 136, 0.06);
}

.contact-cta {
  display: inline-flex;
  margin-bottom: 24px;
  text-decoration: none;
}

/* ── Labeled Social Buttons ────────────────────────── */
.socials-labeled {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.social-btn-label:hover { border-color: var(--teal); color: var(--teal); }

/* ── About ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-bio {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 28px;
}

.stack-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.stack-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stack-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.stack-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.stat-num   { font-size: 20px; font-weight: 600; color: var(--teal); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Career Timeline ───────────────────────────────── */
.tl-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tl-filter {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tl-filter.active,
.tl-filter:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  padding-left: 0;
}

.timeline::before { display: none; }

.tl-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 24px;
  cursor: pointer;
  transition: opacity 0.3s;
  border-left: 1px solid var(--border);
}

.tl-item.hidden { display: none; }

.tl-dot {
  position: absolute;
  left: -5px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.tl-item:hover .tl-dot,
.tl-item.expanded .tl-dot { border-color: var(--teal); }
.tl-item.current .tl-dot  { background: var(--teal); border-color: var(--teal); }
.tl-item:hover             { border-left-color: var(--teal); }

.tl-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.tl-badge.education  { background: rgba(13,148,136,0.12);  color: var(--teal); }
.tl-badge.experience { background: rgba(99,102,241,0.12);  color: #818cf8; }
.tl-badge.volunteer  { background: rgba(245,158,11,0.12);  color: #fbbf24; }

.tl-date  { font-size: 12px; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 4px; }
.tl-title { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.tl-place { font-size: 13px; color: var(--muted); }

.tl-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.tl-item.expanded .tl-desc { max-height: 200px; opacity: 1; }

/* ── Projects ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover { border-color: var(--teal); transform: translateY(-3px); }

.project-card.placeholder {
  border-style: dashed;
  opacity: 0.4;
  cursor: default;
}

.project-card.placeholder:hover { transform: none; border-color: var(--border); }

.project-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 16px;
}

.project-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }

.project-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  margin: 0 4px 4px 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
  transition: gap 0.2s;
}

.project-link:hover { gap: 10px; }
.project-link i     { font-size: 12px; }

/* ── Footer ────────────────────────────────────────── */
footer {
  padding: 32px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p    { font-size: 13px; color: var(--muted); }
.footer-sub { font-size: 12px; }

/* ── Back to Top ───────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 990;
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}

#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover   { opacity: 0.85; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — ≤ 680px
   ══════════════════════════════════════════════════════ */
@media (max-width: 680px) {

  nav { padding: 0 6%; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; right: 0; left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px 6%;
    gap: 20px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle     { display: block; }

  section { padding: 64px 6%; }

  #hero {
    padding: 120px 6% 60px;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .hero-inner h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-right { display: none; }

  .hero-socials { gap: 8px; margin-top: 16px; }

  .hero-email-pill { font-size: 12px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-cols  { grid-template-columns: 1fr 1fr; }
  .stat-num    { font-size: 18px; }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 28px;
    position: relative;
  }

  .timeline::before {
    content: '';
    display: block;
    position: absolute;
    left: 6px; top: 6px; bottom: 6px;
    width: 1px;
    background: var(--border);
  }

  .tl-item {
    border-left: none;
    padding-left: 0;
  }

  .tl-dot {
    left: -28px;
    width: 13px; height: 13px;
  }

  .projects-grid { grid-template-columns: 1fr; }

  #back-to-top { bottom: 80px; right: 20px; }
}
