:root {
  --bg: #f4faff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f4fb;
  --text: #3d3654;
  --text-muted: #6b6480;
  --accent: #643173;
  --accent-bright: #ef476f;
  --accent-dim: rgba(100, 49, 115, 0.07);
  --accent-glow: rgba(100, 49, 115, 0.03);
  --border: rgba(100, 49, 115, 0.12);
  --focus-ring: #643173;
  --white: #2d2040;
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    animation: none;
    opacity: 1;
  }
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent-bright);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--accent-bright);
  color: #fff;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus {
  top: 0.5rem;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 250, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-bright);
}
.nav-links .lang-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links .lang-link:hover {
  background: var(--accent-dim);
  color: var(--accent-bright);
  border-color: var(--accent);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 2;
}
.menu-toggle:hover svg,
.menu-toggle:focus-visible svg {
  stroke: var(--accent-bright);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
}
.hero-headline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 1.5rem;
  line-height: 1.8;
  font-weight: 400;
}
.hero-cta {
  align-self: flex-start;
  margin-top: 2rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.hero-cta:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
}

/* SECTIONS */
section {
  padding: 2rem 0;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ABOUT */
.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 720px;
  font-weight: 400;
}
.about-text strong {
  color: var(--white);
  font-weight: 600;
}
.about-text p + p {
  margin-top: 1rem;
}
.about-text--top {
  margin-top: 1.5rem;
}
.about-text--bottom {
  margin-bottom: 1rem;
}
.about-vision {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.keyword-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.keyword-tag {
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 600;
  border-radius: 4px;
}

/* COMPETENCIES */
.comp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.comp-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: default;
  border-radius: 6px;
}
.comp-emoji {
  font-size: 0.9rem;
}
.comp-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

/* EXPERIENCE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.role {
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(100, 49, 115, 0.05);
}
.role-org {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.role-org-dates {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.subrole {
  margin-bottom: 1rem;
}
.subrole:last-child {
  margin-bottom: 0;
}
.subrole-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
}
.subrole-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.role-bullets {
  list-style: none;
}
.role-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.3rem;
  font-weight: 400;
}
.role-bullets li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 1.1em;
}
.role-bullets a {
  color: var(--accent-bright);
  text-decoration: none;
}
.role-bullets a:hover {
  text-decoration: underline;
}
.subrole-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* EDUCATION */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.edu-item {
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(100, 49, 115, 0.05);
}
.edu-degree {
  font-weight: 600;
  color: var(--white);
  font-size: 0.98rem;
}
.edu-school {
  color: var(--accent);
  font-size: 0.88rem;
}
.edu-year {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.project-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: inherit;
  display: block;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(100, 49, 115, 0.05);
}
.project-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.project-org {
  color: var(--accent-bright);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
}
.project-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.project-link:hover {
  text-decoration: underline;
}

/* COMMUNITY */
.community-card {
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(100, 49, 115, 0.05);
}
.community-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.community-orgs {
  color: var(--accent-bright);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.community-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
}
.community-year {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.community-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.community-link:hover {
  text-decoration: underline;
}

/* BLOG */
.blog-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(100, 49, 115, 0.05);
}
.blog-section h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.blog-section > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.blog-embed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.blog-placeholder {
  padding: 1.5rem;
  border: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
  border-radius: 8px;
}
.blog-placeholder:hover,
.blog-placeholder:focus-visible {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.bp-title {
  font-weight: 500;
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.bp-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bp-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.6;
}

/* CONTACT */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}
.contact-row a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  padding: 0.25rem 0;
}
.contact-row a:hover,
.contact-row a:focus-visible {
  border-bottom-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* FOOTER */
footer {
  padding: 3rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* BACK TO TOP */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(100, 49, 115, 0.08);
}
.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 110;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 105;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links .lang-link {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }
  nav {
    padding: 1rem 1.2rem;
  }
  .container {
    padding: 0 1.2rem;
  }
  section {
    padding: 1.5rem 0;
  }
  .hero {
    min-height: 100svh;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  .blog-section {
    padding: 2rem 1.5rem;
  }
  .role {
    padding: 1.3rem;
  }
  .about-vision {
    padding: 1.2rem 1.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .blog-embed {
    grid-template-columns: 1fr;
  }
  .contact-row {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .container {
    padding: 0 2rem;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}
@media (min-width: 701px) {
  .menu-toggle {
    display: none !important;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeUp 0.7s ease-out both;
}

