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

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #070810;
  --bg-soft:     #0C0D18;
  --bg-card:     #0F1020;
  --teal:        #6377d4;
  --teal-lt:     #43508a;
  --teal-dim:    #213383;
  --gold:        #C9A96E;
  --gold-lt:     #E2C98A;
  --gold-dim:    #7A6440;
  --purple:      #5B2D8A;
  --purple-lt:   #7B4AAF;
  --cream:       #EDE8DF;
  --muted:       #7c8291;
  --line:        rgba(201,169,110,0.12);
  --line-teal:   rgba(27,92,107,0.3);
  --font-main:   'Cormorant Garamond', Georgia, serif;
  --font-ui:     'Inter', system-ui, sans-serif;
}

/* ─── BASE ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: var(--teal);
  color: var(--cream);
}

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

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

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(7,8,16,0.98), transparent);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--gold);
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ─── SECTION BASE ───────────────────────────────────── */
section {
  padding: 8rem 5rem;
  border-top: 1px solid var(--line);
}

.section-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--teal-lt);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 3.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  border-top: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5rem 7rem;
  position: relative;
  overflow: hidden;
}

/* teal atmospheric glow top-right */
#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(27,92,107,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* purple glow bottom-left */
#hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(91,45,138,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,0.05);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font-main);
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #f2fc94;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

.hero-name {
  font-family: var(--font-main);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.1px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-name span {
  color: var(--purple-lt);
  font-style: italic;
}

.hero-role {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--cream);
  /* text-transform: uppercase; */
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
  margin-top: 1px;
}

.hero-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dim), var(--teal));
  margin-top: 1px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-tagline {
  max-width: 460px;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.9s 1s forwards;
}

.btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-fill {
  background: var(--teal);
  color: var(--cream);
  border: 1px solid var(--teal);
}
.btn-fill:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}

/* ─── SKILLS ─────────────────────────────────────────── */
#skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-teal);
}

.skill-group {
  background: var(--bg-card);
  padding: 2rem 2rem 2.5rem;
}

.skill-group-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-teal);
}

.skill-group ul {
  list-style: none;
}

.skill-group li {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.2s;
}

.skill-group li:hover {
  color: var(--cream);
}

.skill-group li::before {
  content: '';
  width: 3px;
  height: 3px;
  background: var(--gold-dim);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── PROJECTS ───────────────────────────────────────── */
#projects .projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-teal);
}

.project-item {
  background: var(--bg-card);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 2rem;
  align-items: start;
  transition: background 0.3s;
  cursor: pointer;
}

.project-item:hover {
  background: #121525;
}

.project-num {
  font-family: var(--font-main);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--teal-lt);
  opacity: 0.6;
  padding-top: 0.25rem;
}

.project-body h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-body p {
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--teal-lt);
  border: 1px solid var(--line-teal);
  padding: 0.15rem 0.6rem;
}

.project-link {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  padding-top: 0.3rem;
}

.project-item:hover .project-link {
  opacity: 1;
}

/* ─── EXPERIENCE ─────────────────────────────────────── */
#experience .timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  padding-top: 0.3rem;
  line-height: 2;
}

.timeline-body h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.timeline-body .org {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 1rem;
}

.timeline-body p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

/* ─── PASSIONS ───────────────────────────────────────── */
#passions .passions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-teal);
}

.passion-card {
  background: var(--bg-card);
  padding: 2.2rem;
  transition: background 0.3s;
}

.passion-card:hover {
  background: #121525;
}

.passion-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.passion-card h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.passion-card p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── CONTACT ────────────────────────────────────────── */
#contact {
  text-align: center;
  padding: 9rem 5rem;
}

#contact .section-tag {
  justify-content: center;
}

#contact .section-tag::before {
  display: none;
}

#contact .section-title {
  margin-bottom: 1rem;
}

#contact .contact-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto 3rem;
  line-height: 1.9;
}

#contact .contact-email {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.25rem;
  display: inline-block;
  margin-bottom: 3.5rem;
  transition: color 0.3s, border-color 0.3s;
}
#contact .contact-email:hover {
  color: var(--gold-lt);
  border-color: var(--gold);
}

.contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.contact-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.contact-links a:hover { color: var(--teal-lt); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 1.8rem 5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  section { padding: 5rem 1.5rem; }
  #hero { padding: 0 1.5rem 5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .project-item { grid-template-columns: 40px 1fr; }
  .project-link { display: none; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .contact-links { flex-direction: column; gap: 1rem; align-items: center; }
  .hero-bg-text { display: none; }
  #hero::before, #hero::after { display: none; }
}