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

:root {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --text: #141F40;
  --muted: #f2bc04;
  --accent: #f2bc04;
  --border-subtle: #e1ddd8;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

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

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 245, 243, 0.92);
  border-bottom: 1px solid rgba(224, 220, 214, 0.7);
  background: linear-gradient(135deg, #F2B705, #f2e103);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #141f40;
}

.logo span {
  font-weight: 400;
  color: #141f40;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: #141f40;
  position: relative;
  padding-block: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 40px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6px);
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6px);
}

.hero {
  padding-block: 4rem 3rem;
}

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1rem;
  color: #141f40;
  max-width: 34rem;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-meta h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #141f40;
  margin-bottom: 0.6rem;
}

.hero-meta ul {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-meta li + li {
  margin-top: 0.35rem;
}

.hero-image {
  justify-self: center;
}

.hero-image-inner {
  background: linear-gradient(135deg, #F2E205, #F2B705);
  border-radius: calc(var(--radius-lg) * 1.4);
  box-shadow: var(--shadow-soft);
}

.hero-image-inner img {
  border-radius: calc(var(--radius-lg) * 1.1);
  background: linear-gradient(135deg, #F2E205, #F2B705);
}

/* Sections */

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: #141f40;
  font-size: 0.98rem;
}

.section-header {
  margin-bottom: 2.2rem;
}

/* Cards & grids */

.grid-3 {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #141f40;
}

/* Timeline */

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  padding: 1.8rem 1.6rem;
  background: #faf8f6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.timeline-item header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
}

.timeline-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

.timeline-item ul {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.timeline-item li + li {
  margin-top: 0.25rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
}

/* Education */

.edu-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-item {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #faf8f6;
}

.edu-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.edu-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.edu-item ul {
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.edu-item li + li {
  margin-top: 0.25rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: flex-start;
}

.about-grid p {
  color: var(--muted);
  font-size: 0.97rem;
}

.about-grid p + p {
  margin-top: 0.8rem;
}

.about-box {
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #faf8f6;
}

.about-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.contact-mail {
  margin-top: 0.8rem;
}

.contact-mail span {
  font-weight: 600;
}

.contact-mail a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

/* Footer */

.site-footer {
  padding-block: 1.8rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(247, 245, 243, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.back-to-top {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .hero {
        padding-block: 1.2rem 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 64px 1.5rem auto;
    border-radius: 14px;
    background: rgba(252, 250, 248, 0.98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    flex-direction: column;
    padding: 0.8rem 0.8rem;
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav a {
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

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

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

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

  .section {
    padding-block: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
