:root {
  --bg: #081018;
  --bg-elevated: #0e1824;
  --bg-soft: #132033;
  --text: #e8eef6;
  --text-muted: #93a4b8;
  --accent: #3ecfc1;
  --accent-strong: #23b5a8;
  --line: rgba(232, 238, 246, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(62, 207, 193, 0.18), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(56, 120, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #060b12 0%, var(--bg) 40%, #0a121c 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #7ee6db;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #041016;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #041016;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: #7ee6db;
  color: #041016;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 16, 24, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(62, 207, 193, 0.15);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0 6rem;
}

.hero__glow {
  position: absolute;
  inset: 10% auto auto 55%;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 193, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 800;
  margin-bottom: 0.2em;
  letter-spacing: -0.04em;
}

.hero__aka {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.identity-facts {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 24, 36, 0.55);
}

.identity-facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.75rem;
}

.identity-facts dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.identity-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
}

.section__header {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section__lead {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.about__photo,
.about__media img {
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about__body .content {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.about__details {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.about__details h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.detail-list {
  color: var(--text-muted);
}

.detail-list li + li {
  margin-top: 0.25rem;
}

.resume__sections {
  display: grid;
  gap: 2.5rem;
}

.resume-block__title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.resume-block__intro {
  color: var(--text-muted);
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

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

.timeline__item {
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 2px solid var(--line);
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.timeline__head h4 {
  margin: 0;
  font-size: 1.2rem;
}

.timeline__date {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline__role {
  margin: 0.35rem 0 0.5rem;
  font-weight: 600;
  color: #c7d6e8;
}

.timeline__desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
}

.skills {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.skill__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.skill__level {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skill__track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 1.1s var(--ease);
}

.is-inview .skill__fill {
  width: var(--level);
}

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

.quote {
  margin: 0;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 32, 51, 0.8), rgba(14, 24, 36, 0.55));
}

.quote__text {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.quote__author {
  font-weight: 700;
  color: var(--text);
}

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

.quote__author a:hover {
  color: var(--accent);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 24, 36, 0.65);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.form-field,
.form-field > label,
.form-label {
  display: block;
}

form[name="my-form"] label,
.form-field label,
label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

form[name="my-form"] input,
form[name="my-form"] textarea,
.form-input,
.form-textarea,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 24, 0.7);
  color: var(--text);
  font: inherit;
}

form[name="my-form"] input:focus,
form[name="my-form"] textarea:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(62, 207, 193, 0.7);
  box-shadow: 0 0 0 3px rgba(62, 207, 193, 0.15);
}

form[name="my-form"] textarea,
textarea {
  min-height: 150px;
  resize: vertical;
}

form[name="my-form"] .button,
form[name="my-form"] button,
form[name="my-form"] input[type="submit"],
button.submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #041016;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.alert,
.form-message,
.notices {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(19, 32, 51, 0.9);
}

.page-shell,
.error-page {
  padding: 5rem 0 6rem;
}

.page-shell__header h1,
.error-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.site-footer__inner {
  display: grid;
  gap: 0.35rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer__meta,
.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate].is-inview {
  opacity: 1;
  transform: none;
}

.hero[data-animate] {
  transition-delay: 0.05s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 900px) {
  .about__grid,
  .contact__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .identity-facts > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 16, 24, 0.96);
    backdrop-filter: blur(12px);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  .skill__fill {
    width: var(--level);
  }
}
