:root {
  --ink: #10202b;
  --navy: #0a2433;
  --navy-soft: #123548;
  --teal: #18b7a6;
  --teal-dark: #0f8f83;
  --sky: #2f80ed;
  --leaf: #6fba63;
  --paper: #ffffff;
  --mist: #eef5f6;
  --line: #d7e4e7;
  --muted: #5d6d76;
  --shadow: 0 20px 60px rgba(16, 32, 43, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 36, 51, 0.72);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(16, 32, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(16, 32, 43, 0.08);
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-links a {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 8px;
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(24, 183, 166, 0.15);
  color: var(--paper);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.is-active {
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--paper);
  transition: transform 180ms ease;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 64px));
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding: 154px 0 74px;
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 36, 51, 0.94) 0%, rgba(10, 36, 51, 0.82) 47%, rgba(10, 36, 51, 0.42) 100%),
    radial-gradient(circle at 82% 26%, rgba(24, 183, 166, 0.28), transparent 34%),
    radial-gradient(circle at 68% 82%, rgba(111, 186, 99, 0.16), transparent 26%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  padding: 13px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--teal);
  box-shadow: 0 14px 34px rgba(24, 183, 166, 0.25);
  color: var(--navy);
}

.button-primary:hover {
  background: #31d1bf;
}

.button-secondary {
  background: var(--navy);
  color: var(--paper);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost-dark {
  border-color: rgba(16, 32, 43, 0.18);
  color: var(--ink);
}

.button-ghost-dark:hover {
  border-color: rgba(16, 32, 43, 0.38);
  background: rgba(16, 32, 43, 0.04);
}

.hero-facts {
  display: grid;
  max-width: 880px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.hero-facts li {
  background: rgba(10, 36, 51, 0.56);
  padding: 18px;
}

.hero-facts span,
.project-meta span,
.language-card span,
.timeline-date {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.56);
}

.hero-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--paper);
  font-size: 0.98rem;
}

.section {
  padding: 98px 0;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(238, 245, 246, 0.88), rgba(255, 255, 255, 0.95)),
    repeating-linear-gradient(90deg, rgba(16, 32, 43, 0.04) 0, rgba(16, 32, 43, 0.04) 1px, transparent 1px, transparent 88px);
}

.section-accent {
  background: var(--navy);
  color: var(--paper);
}

.section-accent .section-heading p,
.section-accent .detail-card,
.section-accent .project-card {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.section-intro h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.content-stack p,
.contact-panel p,
.mini-card p,
.practice-card p,
.certificate-card p,
.timeline-card p,
.project-card p {
  color: var(--muted);
  margin: 0;
}

.section-heading h2 + p,
.contact-panel h2 + p {
  margin-top: 16px;
}

.two-column,
.split-layout,
.language-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 18px;
  font-size: 1.04rem;
}

.skills-grid,
.strength-grid,
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skill-card,
.mini-card,
.timeline-card,
.language-card,
.practice-card,
.certificate-card,
.project-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(16, 32, 43, 0.06);
}

.skill-card {
  min-height: 210px;
  padding: 24px;
}

.skill-card h3,
.mini-card h3,
.practice-card h3,
.certificate-card h3,
.timeline-card h3,
.detail-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.28;
}

.tag-list,
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.project-tools span {
  border: 1px solid rgba(24, 183, 166, 0.24);
  border-radius: 999px;
  background: rgba(24, 183, 166, 0.08);
  color: #17665f;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
}

.project-card,
.detail-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 28px;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 24px;
}

.project-meta {
  border-left: 4px solid var(--teal);
  padding-left: 16px;
}

.project-meta span {
  color: rgba(255, 255, 255, 0.56);
}

.project-meta strong,
.section-accent .detail-card h3 {
  color: var(--paper);
}

.project-tools span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
  transform: translateY(-50%);
}

.timeline-card {
  position: relative;
  padding: 30px;
}

.timeline-card::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 183, 166, 0.18), rgba(47, 128, 237, 0.16)),
    linear-gradient(var(--teal), var(--teal));
  content: "";
}

.timeline-card h3 {
  max-width: 78%;
  margin-top: 10px;
}

.timeline-card span {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 900;
}

.mini-card {
  min-height: 160px;
  padding: 24px;
}

.practice-card,
.certificate-card {
  padding: 24px;
}

.practice-card span,
.certificate-card span {
  display: block;
  margin-top: 16px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.certificate-card .timeline-date {
  margin-bottom: 12px;
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.language-card {
  padding: 26px;
}

.language-card span {
  color: var(--muted);
}

.language-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
}

.contact-section {
  padding-top: 70px;
}

.contact-panel {
  display: grid;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 246, 0.94)),
    repeating-linear-gradient(135deg, rgba(24, 183, 166, 0.07) 0, rgba(24, 183, 166, 0.07) 1px, transparent 1px, transparent 18px);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}

.contact-panel p {
  max-width: 760px;
}

.contact-actions {
  margin-top: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links a,
.contact-links span {
  border-bottom: 1px solid rgba(24, 183, 166, 0.35);
  color: var(--navy-soft);
  font-weight: 800;
}

.contact-links a:hover {
  color: var(--teal-dark);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

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

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: var(--teal);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 36, 51, 0.96);
    box-shadow: var(--shadow);
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.is-scrolled .nav-links a,
  .nav-links a {
    color: var(--paper);
  }

  .nav-links a {
    border-radius: 8px;
    padding: 12px;
  }

  .two-column,
  .split-layout,
  .language-layout,
  .project-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    min-height: auto;
    padding: 128px 0 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-facts,
  .skills-grid,
  .strength-grid,
  .practice-grid,
  .certificate-grid,
  .language-cards {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    margin-top: 34px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .skill-card,
  .mini-card,
  .timeline-card,
  .practice-card,
  .certificate-card,
  .project-card,
  .detail-card {
    padding: 22px;
  }

  .timeline-card h3 {
    max-width: 100%;
  }

  .timeline-card::before {
    display: none;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
