:root {
  --navy: #1a3a4a;
  --teal: #3a9b8e;
  --teal-light: #5bbcaf;
  --orange: #e8873a;
  --orange-light: #f0a060;
  --grey-bg: #f5f7f8;
  --grey-mid: #e2e8eb;
  --text: #1a2830;
  --text-muted: #5a7280;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-mid);
}
.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-brand span { color: var(--orange); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-left {
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5rem 6rem 4rem;
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(58,155,142,0.15);
}
.hero-left::after {
  content: '';
  position: absolute; top: 40px; left: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 30px solid rgba(232,135,58,0.12);
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff; line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--teal-light); font-style: italic;
  margin-bottom: 2rem;
}
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem; line-height: 1.8;
  max-width: 400px; margin-bottom: 2.5rem;
}
.hero-contact {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.hero-contact a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-contact a:hover { color: var(--teal-light); }
.hero-contact a::before { content: attr(data-icon); font-size: 1rem; }

.hero-right {
  background: var(--grey-bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 6rem 5rem;
}
.years-badge {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  margin-bottom: 3rem;
}
.years-num {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem; color: var(--orange); line-height: 1;
}
.years-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.skill-bars { display: flex; flex-direction: column; gap: 1.4rem; }
.skill-bar label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem;
  color: var(--navy);
}
.skill-bar label span { color: var(--text-muted); }
.bar-track {
  height: 5px; background: var(--grey-mid); border-radius: 3px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform-origin: left;
  animation: fillBar 1.2s ease forwards;
  transform: scaleX(0);
}
@keyframes fillBar { to { transform: scaleX(1); } }
.bar-fill.orange { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }

/* ── SECTION BASE ── */
section { padding: 6rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::after {
  content: ''; flex: 0 0 40px; height: 2px;
  background: var(--teal);
}
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy); line-height: 1.2;
  margin-bottom: 3rem;
}

/* ── EXPERTISE ── */
.expertise { background: #fff; }
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.expertise-card {
  border: 1px solid var(--grey-mid);
  border-radius: 12px; padding: 2rem;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.expertise-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.expertise-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(58,155,142,0.1); }
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-card.orange::before { background: var(--orange); }
.expertise-card.orange:hover { border-color: var(--orange); box-shadow: 0 12px 30px rgba(232,135,58,0.1); }
.card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--navy);
  margin-bottom: 0.8rem;
}
.card-desc {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
}
.card-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem;
}
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  background: var(--grey-bg); color: var(--text-muted);
}
.tag.teal { background: rgba(58,155,142,0.1); color: var(--teal); }
.tag.orange { background: rgba(232,135,58,0.1); color: var(--orange); }

/* ── EXPERIENCE ── */
.experience { background: var(--grey-bg); }
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 160px; top: 0; bottom: 0; width: 2px;
  background: var(--grey-mid);
}
.timeline-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0; margin-bottom: 3.5rem; position: relative;
}
.timeline-date {
  padding-right: 2.5rem; padding-top: 0.2rem;
  text-align: right; font-size: 0.8rem;
  font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; line-height: 1.5;
}
.timeline-dot {
  position: absolute; left: 152px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--grey-bg);
  z-index: 1;
}
.timeline-dot.orange { background: var(--orange); }
.timeline-content {
  padding-left: 2.5rem; padding-bottom: 0.5rem;
}
.timeline-company {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: 0.3rem;
}
.timeline-company.orange { color: var(--orange); }
.timeline-role {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; color: var(--navy); margin-bottom: 0.8rem;
}
.timeline-desc {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 1rem;
}
.timeline-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 0.4rem;
}
.timeline-bullets li {
  font-size: 0.88rem; color: var(--text-muted);
  padding-left: 1.2rem; position: relative;
}
.timeline-bullets li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--teal); font-size: 0.75rem;
}

/* ── PROJECTS ── */
.projects { background: #fff; }
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.project-card {
  border-radius: 12px; padding: 2.5rem;
  background: var(--navy);
  position: relative; overflow: hidden;
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-5px); }
.project-card::after {
  content: ''; position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.project-card.teal-card  { background: var(--teal); }
.project-card.orange-card { background: var(--orange); }
.project-card.light-card  { background: var(--grey-bg); }
.project-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem; font-style: italic;
  color: rgba(255,255,255,0.12);
  line-height: 1; margin-bottom: 0.5rem;
}
.light-card .project-number { color: rgba(26,58,74,0.1); }
.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; color: #fff;
  margin-bottom: 1rem;
}
.light-card .project-title { color: var(--navy); }
.project-desc {
  font-size: 0.88rem; line-height: 1.8;
  color: rgba(255,255,255,0.75);
}
.light-card .project-desc { color: var(--text-muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; }
.project-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem; border-radius: 4px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
}
.light-card .project-tag { background: var(--navy); color: #fff; }

/* ── EXTRA ── */
.extra {
  background: var(--navy);
  color: #fff;
}
.extra .section-label { color: var(--teal-light); }
.extra .section-label::after { background: var(--teal-light); }
.extra .section-heading { color: #fff; }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.extra-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2rem;
}
.extra-icon { font-size: 2rem; margin-bottom: 1rem; }
.extra-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; margin-bottom: 0.5rem;
}
.extra-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.extra-desc a { color: var(--teal-light); }

/* ── ABOUT / LANGUAGES / EDUCATION ── */
.about { background: var(--grey-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about-sub {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.about-sub.mt { margin-top: 2.5rem; }
.lang-item { margin-bottom: 1.2rem; }
.lang-name { font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.lang-level { font-size: 0.85rem; color: var(--text-muted); }
.edu-item {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--grey-mid);
}
.edu-item.no-border { border: none; }
.edu-year {
  flex: 0 0 80px; font-size: 0.8rem; font-weight: 600;
  color: var(--teal); padding-top: 0.1rem;
}
.edu-title { font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.edu-place { font-size: 0.85rem; color: var(--text-muted); }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  text-align: center; padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: var(--teal-light); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 5rem 2rem 3rem; min-height: 60vh; }
  .hero-right { padding: 3rem 2rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { text-align: left; padding: 0 0 0.5rem 1.5rem; }
  .timeline-dot { left: -8px; }
  .timeline-content { padding-left: 1.5rem; }
}
