:root {
  --bg: #f4f5f7;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --max-width: 1080px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.6rem;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 40%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 20% 0, #4f8cff 0, #0b0f19 48%, #05070b 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.lang-switch {
  margin-left: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--text-main);
  border-color: rgba(30, 64, 175, 0.7);
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8cff, #8a7dff);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-content {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.1vw + 1.7rem, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0.4rem 0 0.7rem;
}

.hero-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.08s ease-out, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(15, 23, 42, 0.1);
}

.btn.ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-highlights li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--accent);
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.section > .container > p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  max-width: 44rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.timeline-item {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.timeline h3 {
  margin: 0 0 0.1rem;
  font-size: 1.05rem;
}

.timeline-company {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skills-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.skill-group {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.skill-group h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.skill-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skill-group li + li {
  margin-top: 0.25rem;
}

.section-accent {
  background: #e5edff;
  border-top: 1px solid rgba(129, 140, 248, 0.25);
}

.contact-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.contact-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 0.95rem;
}

.contact-value:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.3rem 0 1.6rem;
  background: #f9fafb;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.8;
}

@media (max-width: 840px) {
  .nav-container {
    padding-inline: 1.2rem;
  }

  .main-nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-card {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    position: fixed;
  }

  body {
    padding-top: 56px;
  }

  .nav-container {
    padding-inline: 1.1rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .skills-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
