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

:root {
  --primary: #0a74da;
  --accent: #ff4c51;
  --neutral: #4a5568;
  --bg: #f5f7fa;
  --cta: #a4c639;
  --text: #1f2937;
  --white: #ffffff;
  --font-title: 'Clear Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --nav-h: 64px;
  --max-w: 1080px;
  --pad-x: clamp(1.5rem, 6vw, 5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--neutral);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.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(--neutral);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: 1.5rem var(--pad-x);
  z-index: 99;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral);
  text-decoration: none;
}
.mobile-menu a.active { color: var(--primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}
.btn-primary:hover { background: #8fb02e; border-color: #8fb02e; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ── SHARED TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* ── HOME / HERO ── */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 4rem;
}

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

.hero-headline {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--neutral);
  max-width: 560px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text);
  max-width: 500px;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.55;
  font-style: normal;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.lang-badges {
  display: inline-flex;
  gap: 0.5rem;
}
.lang-pill {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--neutral);
  color: var(--neutral);
  border-radius: 100px;
}

/* ── INTERIOR PAGES ── */
.page-section {
  padding: calc(var(--nav-h) + 3.5rem) var(--pad-x) 5rem;
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin: 0 auto;
  width: 100%;
}

.page-header { margin-bottom: 3rem; }

.page-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--neutral);
  max-width: 560px;
  font-weight: 300;
}

.page-cta-row {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── WORK / PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-top: 4px solid var(--primary);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 116, 218, 0.11);
}

.project-tag {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--primary);
  padding: 0.25rem 0.65rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--neutral);
  line-height: 1.65;
  font-weight: 300;
}

.project-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(10, 116, 218, 0.09);
  line-height: 1;
  user-select: none;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--neutral);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-bio em { font-style: italic; color: var(--text); }

.about-subhead {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.skill-tag {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4rem 0.85rem;
  background: var(--bg);
  color: var(--neutral);
  border-radius: 2px;
}

.cv-list { list-style: none; }
.cv-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--bg);
}
.cv-item:first-child { padding-top: 0; }
.cv-item:last-child { border-bottom: none; }

.cv-year {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.cv-role {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.cv-org {
  font-size: 0.9rem;
  color: var(--neutral);
  font-weight: 300;
}
.cv-placeholder-note {
  font-size: 0.8rem;
  color: var(--neutral);
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.6;
}

/* ── CONTACT ── */
.contact-section {
  min-height: calc(100vh - var(--nav-h) - 56px);
  background: var(--neutral);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 5rem;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.contact-section .eyebrow { color: var(--cta); }

.contact-headline {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-btn {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
  font-size: 0.85rem;
}
.contact-btn:hover { background: #8fb02e; border-color: #8fb02e; }

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
}

.contact-detail-item {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
}

.contact-detail-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  min-width: 80px;
  text-align: right;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 300;
}
a.contact-detail-value:hover { color: var(--cta); }

.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.social-link {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--white); border-color: var(--cta); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 1.25rem var(--pad-x);
  font-size: 0.78rem;
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-detail-item { flex-direction: column; align-items: center; gap: 0.2rem; }
  .contact-detail-label { text-align: center; min-width: unset; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── LANG SWITCHER (inner pages) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(47,79,79,0.25);
  border-radius: 3px;
  overflow: hidden;
}

.lang-opt {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  color: var(--neutral);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-right: 1.5px solid rgba(47,79,79,0.15);
  line-height: 1;
}
.lang-opt:last-child { border-right: none; }
.lang-opt:hover { background: var(--bg); color: var(--primary); }
.lang-opt.active { background: var(--primary); color: var(--white); }

.mobile-lang {
  display: flex;
  border: 1.5px solid rgba(47,79,79,0.2);
  border-radius: 3px;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .nav-right { gap: 0.75rem; }
  .lang-switcher { display: none; }
}

/* --- ABOUT PAGE LAYOUT --- */

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.about-header {
  margin-bottom: 2rem;
}

.about-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #444;
}

/* Section titles */
.cv-section {
  margin-top: 3rem;
}

.cv-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-left: 4px solid #222;
  padding-left: 0.6rem;
}

/* Two-column layout */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Job / education blocks */
.cv-item {
  margin-bottom: 1.5rem;
}

.cv-item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.cv-item .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.cv-item ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

/* Expertise & tools lists */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #eee;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 700px) {
  .cv-grid {
    grid-template-columns: 1fr;
  }
}

