/* =========
   Base
========= */
:root {
  --bg: #0b0d10;
  --surface: #10141a;
  --surface-2: #0f1318;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.52);
  --header-offset: 55px;

  /* Muted amber/yellow */
  --accent: #f2c14e;
  --accent-2: rgba(242, 193, 78, 0.18);

  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);

  --container: 980px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 15% -10%, rgba(242, 193, 78, 0.10), transparent 55%),
              radial-gradient(1000px 700px at 100% 0%, rgba(242, 193, 78, 0.06), transparent 60%),
              var(--bg);
  color: var(--text);
}

html, body {
  overflow-x: hidden;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========
   Accessibility
========= */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateX(-200%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}
.skip-link:focus {
  transform: translateX(0);
}


/* =========
   Header
========= */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
}


.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.22), rgba(242, 193, 78, 0.10));
  border: 1px solid rgba(242, 193, 78, 0.22);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle__item--active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(242, 193, 78, 0.55);
  text-underline-offset: 4px;
}

/* =========
   Sections
========= */
.section {
  padding: 44px 0;
  scroll-margin-top: var(--header-offset);
}

.hero {
  margin-top: var(--header-offset);
  
  
}

.eyebrow {
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.hero__name {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__title {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.hero__tagline {
  margin: 16px 0 0;
  color: var(--text);
  max-width: 52ch;
  line-height: 1.6;
}

.hero__cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hero__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* =========
   Section headings
========= */
.section__head {
  margin-bottom: 16px;
}

.section__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* =========
   Cards + Grid
========= */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.grid--skills {
  margin-top: 10px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========
   Buttons
========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn--primary {
  border-color: rgba(242, 193, 78, 0.28);
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.22), rgba(242, 193, 78, 0.12));
}

.btn--secondary:hover,
.btn--ghost:hover,
.btn--primary:hover {
  border-color: rgba(242, 193, 78, 0.35);
}

.btn--ghost {
  background: transparent;
}

.btn--wide {
  width: 100%;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* =========
   Lists + Stars
========= */
.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  font-size: 14px;
}
.star {
  color: rgba(255, 255, 255, 0.30);
}
.star--on {
  color: var(--accent);
}

/* =========
   Footer
========= */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted-2);
}
.footer__text {
  margin: 0;
  font-size: 13px;
}

/* =========
   Scroll reveal
========= */
.reveal {
  opacity: 0;
  transition: opacity 1000ms ease, transform 1000ms ease;
  will-change: opacity, transform;
}

.reveal--up {
  transform: translateY(50px);
}

.reveal--left {
  transform: translateX(-50px);
}

.reveal--right {
  transform: translateX(50px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========
   Breakpoints (mobile-first)
========= */
@media (min-width: 640px) {
  .hero__cta {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
  }

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

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

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

  .hero__name {
    font-size: 40px;
  }
}

@media (min-width: 980px) {
  .section {
    padding: 56px 0;
  }
}

/* =========
   Menu button (hamburger)
========= */
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn__bar {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

/* =========
   Mobile menu overlay + panel
========= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.menu[hidden] {
  display: none;
}

.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.menu__panel {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 24px));
  background: rgba(16, 20, 26, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(10px);

  /* animation start state */
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

/* Top row */
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
}

.menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu__title {
  color: var(--muted);
  font-weight: 600;
}

.menu__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Nav links */
.menu__nav {
  display: grid;
  gap: 10px;
  padding: 10px 0 14px;
}

.menu__link {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.menu__link:hover {
  border-color: rgba(242, 193, 78, 0.35);
}

/* Divider */
.menu__divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Language toggle inside menu */
.lang-toggle--menu {
  width: 100%;
  justify-content: center;
}

/* =========
   Menu open animation (no JS required for the animation itself)
========= */
.menu.is-open .menu__panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu.is-open .menu__backdrop {
  opacity: 1;
  transition: opacity 180ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu__panel {
    transition: none !important;
  }
  .menu__backdrop {
    transition: none !important;
  }
}

/* Optional: on wider screens, keep panel slightly narrower */
@media (min-width: 640px) {
  .menu__panel {
    width: min(520px, calc(100% - 24px));
  }
}