:root {
  --bg: #0d0d0f;
  --bg-elevated: #16161a;
  --text: #e8e6e3;
  --text-muted: #9a9691;
  --accent: #c9a227;
  --accent-dim: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--accent);
}

.lang-sep {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.8rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-dim) 0%, transparent 60%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(13, 13, 15, 0.85) 50%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: #d4b02e;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text);
}

/* About */
.about-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.about-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.about-content li {
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
}

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

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

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 12px;
  width: 2px;
  height: calc(100% + 2rem);
  background: var(--border);
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-content .company {
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-content .date,
.timeline-content .location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-content .description {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.timeline-content ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.timeline-content li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.skills-tags {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Education card */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card .company {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card .date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

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

.skill-tags span {
  padding: 0.35rem 0.75rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.875rem;
}

.cert-list,
.lang-list {
  list-style: none;
}

.cert-list li,
.lang-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cert-list li:last-child,
.lang-list li:last-child {
  border-bottom: none;
}

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

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

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    padding: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }
}
