:root {
  --bg: #0b0b0b;
  --bg-soft: #121212;
  --surface: #1a1a1a;
  --line: #2d2d2d;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #e5e5e5;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}


body {
  opacity: 1;
  transition: opacity 0.48s ease;
  will-change: opacity;
}

body.page-enter {
  opacity: 0;
}

body.page-enter.page-enter-active {
  opacity: 1;
}

body.page-leave-active {
  opacity: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #101010;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

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

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

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201600%201000%22%20preserveAspectRatio%3D%22none%22%3E%0A%3Cdefs%3E%0A%3CradialGradient%20id%3D%22g%22%20cx%3D%2250%25%22%20cy%3D%2245%25%22%20r%3D%2270%25%22%3E%0A%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%232c2c2c%22/%3E%0A%3Cstop%20offset%3D%2255%25%22%20stop-color%3D%22%231a1a1a%22/%3E%0A%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%230a0a0a%22/%3E%0A%3C/radialGradient%3E%0A%3C/defs%3E%0A%3Crect%20width%3D%221600%22%20height%3D%221000%22%20fill%3D%22url%28%23g%29%22/%3E%0A%3Cg%3E%0A%3Cpolygon%20points%3D%220%2C0%20180%2C0%20120%2C150%22%20fill%3D%22%231b1b1b%22/%3E%0A%3Cpolygon%20points%3D%220%2C0%20120%2C150%200%2C240%22%20fill%3D%22%23111%22/%3E%0A%3Cpolygon%20points%3D%22180%2C0%20320%2C40%20250%2C190%22%20fill%3D%22%23242424%22/%3E%0A%3Cpolygon%20points%3D%22120%2C150%20250%2C190%2090%2C320%22%20fill%3D%22%23191919%22/%3E%0A%3Cpolygon%20points%3D%22250%2C190%20420%2C120%20410%2C310%22%20fill%3D%22%232a2a2a%22/%3E%0A%3Cpolygon%20points%3D%2290%2C320%20250%2C190%20280%2C390%22%20fill%3D%22%23171717%22/%3E%0A%3Cpolygon%20points%3D%22280%2C390%20410%2C310%20480%2C470%22%20fill%3D%22%23222%22/%3E%0A%3Cpolygon%20points%3D%22410%2C310%20560%2C210%20610%2C380%22%20fill%3D%22%232c2c2c%22/%3E%0A%3Cpolygon%20points%3D%22480%2C470%20610%2C380%20700%2C540%22%20fill%3D%22%231d1d1d%22/%3E%0A%3Cpolygon%20points%3D%22560%2C210%20740%2C150%20780%2C320%22%20fill%3D%22%23252525%22/%3E%0A%3Cpolygon%20points%3D%22610%2C380%20780%2C320%20860%2C470%22%20fill%3D%22%23303030%22/%3E%0A%3Cpolygon%20points%3D%22700%2C540%20860%2C470%20940%2C620%22%20fill%3D%22%231a1a1a%22/%3E%0A%3Cpolygon%20points%3D%22740%2C150%20930%2C110%20980%2C280%22%20fill%3D%22%232e2e2e%22/%3E%0A%3Cpolygon%20points%3D%22780%2C320%20980%2C280%201040%2C450%22%20fill%3D%22%23262626%22/%3E%0A%3Cpolygon%20points%3D%22860%2C470%201040%2C450%201120%2C620%22%20fill%3D%22%232b2b2b%22/%3E%0A%3Cpolygon%20points%3D%22930%2C110%201120%2C90%201180%2C260%22%20fill%3D%22%231f1f1f%22/%3E%0A%3Cpolygon%20points%3D%22980%2C280%201180%2C260%201250%2C430%22%20fill%3D%22%23343434%22/%3E%0A%3Cpolygon%20points%3D%221040%2C450%201250%2C430%201320%2C610%22%20fill%3D%22%23202020%22/%3E%0A%3Cpolygon%20points%3D%221120%2C90%201320%2C80%201380%2C240%22%20fill%3D%22%23181818%22/%3E%0A%3Cpolygon%20points%3D%221180%2C260%201380%2C240%201460%2C410%22%20fill%3D%22%232a2a2a%22/%3E%0A%3Cpolygon%20points%3D%221250%2C430%201460%2C410%201550%2C600%22%20fill%3D%22%23161616%22/%3E%0A%3Cpolygon%20points%3D%221320%2C80%201600%2C0%201600%2C220%22%20fill%3D%22%23121212%22/%3E%0A%3Cpolygon%20points%3D%221380%2C240%201600%2C220%201600%2C440%22%20fill%3D%22%23232323%22/%3E%0A%3Cpolygon%20points%3D%221460%2C410%201600%2C440%201600%2C690%22%20fill%3D%22%231a1a1a%22/%3E%0A%3Cpolygon%20points%3D%220%2C240%2090%2C320%200%2C480%22%20fill%3D%22%230f0f0f%22/%3E%0A%3Cpolygon%20points%3D%220%2C480%20120%2C600%200%2C760%22%20fill%3D%22%23121212%22/%3E%0A%3Cpolygon%20points%3D%22120%2C600%20280%2C390%20360%2C620%22%20fill%3D%22%231e1e1e%22/%3E%0A%3Cpolygon%20points%3D%22360%2C620%20480%2C470%20560%2C700%22%20fill%3D%22%23151515%22/%3E%0A%3Cpolygon%20points%3D%22560%2C700%20700%2C540%20790%2C760%22%20fill%3D%22%23242424%22/%3E%0A%3Cpolygon%20points%3D%22790%2C760%20940%2C620%201020%2C820%22%20fill%3D%22%23181818%22/%3E%0A%3Cpolygon%20points%3D%221020%2C820%201120%2C620%201260%2C790%22%20fill%3D%22%23202020%22/%3E%0A%3Cpolygon%20points%3D%221260%2C790%201320%2C610%201470%2C760%22%20fill%3D%22%23171717%22/%3E%0A%3Cpolygon%20points%3D%221470%2C760%201550%2C600%201600%2C780%22%20fill%3D%22%23111%22/%3E%0A%3Cpolygon%20points%3D%220%2C760%20160%2C1000%200%2C1000%22%20fill%3D%22%230b0b0b%22/%3E%0A%3Cpolygon%20points%3D%22160%2C1000%20360%2C620%20500%2C1000%22%20fill%3D%22%23141414%22/%3E%0A%3Cpolygon%20points%3D%22500%2C1000%20790%2C760%20930%2C1000%22%20fill%3D%22%230e0e0e%22/%3E%0A%3Cpolygon%20points%3D%22930%2C1000%201260%2C790%201410%2C1000%22%20fill%3D%22%23141414%22/%3E%0A%3Cpolygon%20points%3D%221410%2C1000%201600%2C780%201600%2C1000%22%20fill%3D%22%230b0b0b%22/%3E%0A%3C/g%3E%0A%3C/svg%3E");
  background-size: cover;
  background-position: center;
  filter: contrast(110%) brightness(0.92);
}

body::after {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 62%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62) 86%);
  z-index: -1;
}

.site-header,
main,
.site-footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.contact .btn {
  margin-top: 1rem;
}


.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  transition: padding 0.35s ease, gap 0.35s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  mask-image: radial-gradient(140% 120% at 50% -20%, #000 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(140% 120% at 50% -20%, #000 58%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.site-header--large {
  padding: 2rem 0;
}

.site-header--small {
  padding: 0.8rem 0;
}

.logo {
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: font-size 0.3s ease;
}

.site-header--small .logo {
  font-size: 1.35rem;
}

.logo span {
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, #121212 55%, transparent);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:hover {
  border-color: var(--accent);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, #121212 40%, transparent);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.site-header--small nav a {
  padding: 0.35rem 0.65rem;
  font-size: 0.92rem;
}

nav a:hover {
  border-color: var(--line);
  color: var(--text);
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 6rem;
}

.hero {
  padding-top: 4rem;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h1 span {
  display: block;
  color: #cfcfcf;
}


.cv-hero {
  position: relative;
}

.cv-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 900px;
}

.cv-title-link h1 {
  margin-bottom: 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.cv-title-link:hover h1,
.cv-title-link:focus-visible h1 {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(229, 229, 229, 0.28);
}

.cv-float-note {
  position: absolute;
  right: -0.5rem;
  top: 1.1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d8d8d8;
  border-radius: 0.7rem;
  background: rgba(12, 12, 12, 0.72);
  color: #efefef;
  text-decoration: none;
  transform: rotate(-8deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cv-float-note span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cv-float-note small {
  font-size: 0.72rem;
  color: #cfcfcf;
}

.cv-float-note::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #d9d9d9;
  transform: translateY(-50%) rotate(8deg);
}

.cv-float-note::before {
  content: "";
  position: absolute;
  left: -8px;
  top: calc(50% - 5px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #d9d9d9;
  transform: rotate(8deg);
}

.lead {
  color: var(--text-muted);
  max-width: 62ch;
}

.cta-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: #101010;
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #101010;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--accent);
  color: #101010;
  border-color: var(--accent);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(145deg, #141414, var(--bg-soft));
}


.skills-grid,
.projects-grid,
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.project,
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #161616;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card:hover,
.project:hover,
.metric:hover {
  transform: scale(1.03);
  border-color: #4b4b4b;
  z-index: 1;
}

.card .btn,
.project .btn,
.metric .btn {
  margin-top: 0.85rem;
}

.project .cta-group {
  margin-top: auto;
  justify-content: flex-start;
}

.card::after,
.project::after,
.metric::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid #3a3a3a;
  transform: rotate(45deg);
  top: -35px;
  right: -35px;
}

.metric strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.project-tag {
  color: #d4d4d4;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0 3rem;
  color: #8b8b8b;
  font-size: 0.9rem;
}



.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius) + 12px);
  background: radial-gradient(circle at 50% 30%, rgba(229, 229, 229, 0.22), rgba(229, 229, 229, 0));
  filter: blur(20px);
  opacity: 0.45;
  z-index: -1;
  animation: spotlightPulse 2.8s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.03);
  }
}


.detail-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.detail-list li {
  margin-bottom: 0.45rem;
}

.detail-list.compact li {
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: #b7b7b7;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
  }

  .site-header--large {
    padding: 1.1rem 0;
  }

  .site-header--small {
    padding: 0.7rem 0;
  }

  .logo,
  .site-header--small .logo {
    font-size: 1.2rem;
  }

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

  .site-nav {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.3rem;
  }

  .site-nav a,
  .site-header--small .site-nav a {
    display: block;
    font-size: 0.92rem;
    padding: 0.52rem 0.8rem;
    text-align: center;
  }


  .cv-hero {
    padding-right: 0;
  }

  .cv-title-link {
    max-width: 100%;
  }

  .cv-float-note {
    position: static;
    margin-top: 0.9rem;
    width: fit-content;
    transform: rotate(-3deg);
  }

  .cv-float-note::after,
  .cv-float-note::before {
    display: none;
  }

  .hero {
    padding-top: 2.4rem;
  }
}


.site-nav .lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.site-nav .lang-switch:hover,
.site-nav .lang-switch:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
