:root {
  --bg: #050505;
  --bg-alt: #0b0c10;
  --text: #f5f6f7;
  --muted: #a4a9b1;
  --accent: #cfd3d8;
  --accent-strong: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.65);
  --glow: rgba(180, 180, 180, 0.35);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top, rgba(34, 36, 40, 0.7), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(120, 130, 140, 0.2), transparent 45%),
    linear-gradient(180deg, #030303 0%, #0c0d10 50%, #040404 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

body::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 48px
  );
  opacity: 0.25;
}

body::after {
  background: radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0.6;
}

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

.site {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: min(1120px, 92vw);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.nav-pill a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-pill a:hover {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.button.primary {
  background: linear-gradient(135deg, #f0f1f2, #c9ccd1);
  color: #0b0b0b;
}

.button.subtle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: heroFade 1.2s ease both;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
  max-width: 800px;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual {
  position: relative;
  margin: 3.5rem auto 0;
  width: min(820px, 92vw);
  height: clamp(300px, 48vw, 520px);
}

.glass-stack {
  position: absolute;
  inset: 0;
}

.glass-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
  backdrop-filter: blur(6px);
  animation: float 9s ease-in-out infinite;
}

.panel-1 {
  width: 100%;
  height: 50%;
  top: 2%;
}

.panel-2 {
  width: 86%;
  height: 44%;
  top: 18%;
  opacity: 0.9;
  animation-delay: -2s;
}

.panel-3 {
  width: 70%;
  height: 38%;
  top: 34%;
  opacity: 0.7;
  animation-delay: -4s;
}

.visual-copy {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 84%);
  text-align: center;
  z-index: 2;
}

.visual-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin: 0.8rem 0 0.6rem;
}

.visual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 45%;
  z-index: 1;
}

.step {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(120deg, #cfd3d8, #f7f7f7, #c2c6cb);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.step-1 {
  width: 68%;
  height: 20%;
  bottom: 12%;
}

.step-2 {
  width: 80%;
  height: 22%;
  bottom: -4%;
  filter: brightness(0.8);
}

.step-3 {
  width: 90%;
  height: 28%;
  bottom: -26%;
  filter: brightness(0.6);
}

.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0.7;
  filter: blur(16px);
}

.scroll-indicator {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator span {
  width: 32px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  display: inline-block;
}

.scroll-indicator span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.glass-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}



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

.cv-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

.cv-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-card {
  padding: 2rem;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.logo-badge i {
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.logo-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.skill-card h3 {
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  padding-right: clamp(2rem, 30vw, 300px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.contact-portrait {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(230px, 32vw);
}

.contact-portrait-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-portrait-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25), transparent 70%);
  opacity: 0.35;
  z-index: 0;
}

.contact-portrait-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(0.08) contrast(1.05) brightness(0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: scale(1.15);
  transform-origin: center 20%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 16px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.contact-badge {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.contact-link:hover .contact-badge {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--accent-strong);
}

.contact-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer {
  padding: 3rem 0 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-pill {
    order: 2;
  }

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

@media (max-width: 640px) {
  .topbar {
    position: static;
    padding: 0.8rem 1rem;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-pill {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.4rem;
  }

  .nav-pill::-webkit-scrollbar {
    display: none;
  }

  .nav-pill a {
    flex: 0 0 auto;
  }

  .hero {
    padding: 6rem 0 5rem;
  }

  .cta-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .button.ghost {
    width: 100%;
  }

  .glass-card,
  .skill-card,
  .contact-card,
  .cv-card {
    padding: 1.6rem;
  }

  .contact-card {
    min-height: unset;
  }

  .contact-portrait {
    position: static;
    margin: 1.8rem auto 0;
    width: min(210px, 65vw);
  }

  .logo-badge {
    width: 46px;
    height: 46px;
  }

  .logo-badge i {
    font-size: 1.4rem;
  }
}

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