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

:root {
  --dark:       #1c1e2a;
  --accent:     #d4a843;
  --accent-dim: #b8922e;
  --white:      #ffffff;
  --text-main:  rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.50);
  --glass-bg:   rgba(10, 10, 10, 0.97);
  --glass-alt:  rgba(15, 15, 15, 0.97);
  --glass-card: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.10);
  --radius:     0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-logo {
  font-family: 'Syne', sans-serif;
}

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .12em;
}

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

.nav-links a {
  color: rgba(255, 255, 255, .70);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Fades hero bottom into the dark section colour → seamless join */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.93) 0%,
    rgba(10,10,10,0.76) 45%,
    rgba(10,10,10,0.20) 75%,
    rgba(10,10,10,0.02) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;  /* above .hero-bg (0) and .hero-overlay (1) */
  padding: 7rem 2rem 5rem 8%;
  max-width: 620px;
}

.hero-eyebrow {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .75rem;
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: .75rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  color: var(--dark);
}

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .78);
  padding: .73rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, color .2s, transform .15s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Glassmorphism sections ────────────────────────────── */
.section {
  padding: 5.5rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-alt {
  background: var(--glass-alt);
}

/* First section joins seamlessly with the hero fade */
#about { border-top: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Section title — typing animation ─────────────────── */
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.75rem;
  position: relative;
  padding-bottom: .85rem;
  min-height: 1.3em;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.8rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title.is-typing::before {
  content: '|';
  color: var(--accent);
  animation: cursor-blink .65s step-end infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── About ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.about-list {
  list-style: none;
  margin: .75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.about-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-main);
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Sidebar cards: glass-within-glass */
.sidebar-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sidebar-card h3 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .85rem;
  font-weight: 700;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sidebar-card li {
  font-size: .9rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-level {
  font-size: .76rem;
  color: var(--text-muted);
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: .6rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(255,255,255,.12));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: none;
}

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

.timeline-marker {
  position: absolute;
  left: -2.25rem;
  top: 1.35rem;
  width: 13px;
  height: 13px;
  background: var(--accent);
  border: 3px solid rgba(15, 15, 15, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Timeline cards: glass */
.timeline-content {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .15rem;
}

.job-company {
  display: block;
  font-size: .88rem;
  color: var(--accent);
  font-weight: 600;
}

.job-period {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: .15rem;
  flex-shrink: 0;
}

.timeline-content p {
  font-size: .93rem;
  color: var(--text-main);
}

/* ── Contact ───────────────────────────────────────────── */
.contact-container { text-align: center; }

.contact-intro {
  max-width: 500px;
  margin: 0 auto 2.25rem;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.4rem;
  border: 2px solid rgba(212, 168, 67, 0.5);
  border-radius: 2rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.contact-btn:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: .83rem;
}

/* ── Responsive ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-left: 5%;
    padding-right: 5%;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-bg-img {
    object-position: 65% top;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.96) 30%,
      rgba(10,10,10,0.68) 65%,
      rgba(10,10,10,0.30) 100%
    );
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 1rem;
  }

  .hero-content {
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-cta { justify-content: center; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15,15,15,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: .5rem 0 1rem;
  }

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

  .nav-links li a {
    display: block;
    padding: .75rem 2rem;
    font-size: 1rem;
  }

  .section { padding: 4rem 1.25rem; }

  .timeline { padding-left: 1.75rem; }

  .timeline-marker { left: -1.75rem; }

  .job-header {
    flex-direction: column;
    gap: .25rem;
  }

  .job-period { white-space: normal; }

  .timeline-content { padding: 1.2rem 1.25rem; }

  .contact-links { flex-direction: column; align-items: center; }

  .contact-btn { width: 100%; max-width: 300px; justify-content: center; }
}
