@font-face {
  font-family: "Roboto";
  src: url("../font/roboto/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../font/roboto/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../font/roboto/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070c1c;
  --bg-soft: #0a0f1c;
  --surface: rgba(13, 20, 38, 0.72);
  --surface-strong: rgba(13, 20, 38, 0.92);
  --text: #e8eefc;
  --muted: #9fb0c7;
  --faint: #64748b;
  --accent: #4df06b;
  --accent-strong: #24d451;
  --accent-2: #b6f24d;
  --accent-alt: #1fe08a;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 10% -10%, rgba(77, 240, 107, 0.08), transparent 60%),
    radial-gradient(760px 540px at 95% 0%, rgba(96, 132, 255, 0.08), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #03140a;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  color: #f4f7ff;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #03140a;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 28, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(77, 240, 107, 0.09);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 12vw, 148px) 0 clamp(64px, 9vw, 108px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7, 12, 28, 0.5) 0%, rgba(7, 12, 28, 0.82) 58%, var(--bg) 100%),
    url("../bg1.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
  pointer-events: none;
}

.hero--about::before {
  background-image:
    linear-gradient(180deg, rgba(7, 12, 28, 0.48) 0%, rgba(7, 12, 28, 0.82) 58%, var(--bg) 100%),
    url("../bg2.jpg");
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.hero__copy {
  max-width: 720px;
}

.hero--about .hero__copy {
  max-width: 860px;
}

.hero--about h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 0.35em;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -0.07em;
}

.title-text {
  display: inline-block;
}

.title-style--outline .title-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 28px rgba(36, 212, 81, 0.18);
}

@supports not (-webkit-text-stroke: 1px #000) {
  .title-style--outline .title-text {
    color: var(--accent);
  }
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #03140a;
  box-shadow: 0 12px 34px rgba(36, 212, 81, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 16px 42px rgba(36, 212, 81, 0.28);
}

.btn--ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.hero__avatar {
  justify-self: center;
  width: clamp(180px, 24vw, 300px);
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent-alt), var(--accent));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 70px rgba(77, 240, 107, 0.12);
}

.hero__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section--tight {
  padding-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-heading p {
  max-width: 640px;
  color: var(--muted);
}

.content-column {
  max-width: 900px;
  margin-inline: auto;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 20, 38, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-switch button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #03140a;
}

.lang-panel:not([hidden]) {
  animation: fade-in 0.32s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card--flat {
  border-radius: var(--radius-md);
  box-shadow: none;
}

.card--wide {
  grid-column: 1 / -1;
}

.card h3 {
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(77, 240, 107, 0.2);
  border-radius: 999px;
  background: rgba(77, 240, 107, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tldr {
  margin: 18px 0 22px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(77, 240, 107, 0.06);
  color: var(--muted);
}

.tldr strong {
  color: var(--text);
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.clean-list li {
  position: relative;
  padding-left: 18px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(77, 240, 107, 0.55);
}

.clean-list a {
  text-decoration: underline;
  text-decoration-color: rgba(77, 240, 107, 0.35);
}

.clean-list a:hover {
  text-decoration-color: var(--accent);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(148, 163, 184, 0.12));
}

.timeline-item {
  position: relative;
  padding-left: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(77, 240, 107, 0.08);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(77, 240, 107, 0.2);
  border-radius: 999px;
  background: rgba(77, 240, 107, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card--accent {
  border-color: rgba(77, 240, 107, 0.28);
  background:
    linear-gradient(135deg, rgba(77, 240, 107, 0.08), rgba(182, 242, 77, 0.06)),
    var(--surface);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-panel {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(77, 240, 107, 0.09), transparent 65%),
    radial-gradient(500px 300px at 100% 100%, rgba(182, 242, 77, 0.09), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.social-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 240, 107, 0.34);
  background: rgba(77, 240, 107, 0.07);
  text-decoration: none;
}

.social-link img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  object-fit: contain;
}

.social-link__text {
  min-width: 0;
}

.social-link__text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
}

.social-link__text span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-subheading {
  margin: 36px 0 16px;
}

.section-subheading h3 {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 12, 28, 0.6);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 76px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.counter img {
  height: 20px;
  width: auto;
  opacity: 0.6;
  filter: invert(1) grayscale(1);
}

.counter:hover img {
  opacity: 0.9;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__avatar {
    justify-self: start;
    width: min(220px, 58vw);
  }

  .hero--about .hero__copy {
    max-width: 100%;
  }
}

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

  .nav {
    min-height: 64px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero {
    padding: 68px 0 64px;
  }

  .hero--about h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .section {
    padding: 52px 0;
  }

  .card-grid--two,
  .hobby-grid,
  .social-grid,
  .social-grid--small {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 32px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-item::before {
    left: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
