@font-face {
  font-family: "Youth";
  src: url("fonts/Youth-Regular-CqjZ-uzd.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Youth";
  src: url("fonts/Youth-Medium-BA9jmaej.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Mono";
  src: url("fonts/AeonikMono-Regular-B4UO_2B_.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Mono";
  src: url("fonts/AeonikMono-Medium-D0O-HI4y.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  font-family: "Aeonik Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #eaeaea;
  background: #0a0a0a;
}

/* ---------- Ambient glow (reacts to active project image) ---------- */

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}

.ambient-layer.is-active {
  opacity: 1;
}

.ambient-glow-blob {
  position: absolute;
  inset: -30%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.ambient-glow-blob.top {
  background: radial-gradient(circle at 62% 22%, var(--c1, rgb(64, 110, 196)) 0%, transparent 60%);
}

.ambient-glow-blob.bottom {
  background: radial-gradient(circle at 38% 78%, var(--c2, rgb(52, 148, 110)) 0%, transparent 60%);
}

/* Keeps the sidebar column dark regardless of which slide is active, so the
   glow reads as light coming from the content column, not a wash behind the
   cards. A straight horizontal fade (not a radial ellipse) so it stays
   uniform top-to-bottom instead of pulling in at the corners. Sits above
   every glow blob (last in DOM = painted on top). */
.ambient-sidebar-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.62) 30%, transparent 62%);
}

/* ---------- Sidebar (stays fixed) ---------- */

.ascii-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.sidebar {
  width: 30%;
  min-width: 320px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  overflow-y: auto;
}

.card {
  position: relative;
  z-index: 1;
  background: #171718;
  border-radius: 8px;
  padding: 20px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6,
.name {
  font-family: "Youth", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.name {
  font-weight: 700;
  font-size: 17px;
}

.tagline {
  font-size: 13px;
  color: #999;
}

.marquee {
  overflow: hidden;
  width: 100%;
  max-width: 160px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 16s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-track span {
  flex-shrink: 0;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6fdc8c;
  white-space: nowrap;
}

.marquee-track span.sep {
  padding: 0 6px;
  color: #3f6b4c;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.bio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar p {
  font-family: "Youth", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #b5b5b5;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stack-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #999;
  white-space: nowrap;
}

.stack-icons {
  display: flex;
  gap: 8px;
}

.stack-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.stack-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-card {
  margin-top: 0;
}

.scroll-waveform {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 100%;
  height: 2em;
  pointer-events: none;
}

.waveform-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.waveform-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.waveform-bars span {
  display: block;
  width: 1px;
  height: 4px;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease-out, height 0.25s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .waveform-bars span {
    transition: none;
  }
}

.social-label {
  font-style: italic;
  font-size: 13px;
  color: #ccc;
  display: block;
  margin-bottom: 12px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.btn-resume {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  background: #232324;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease;
}

.btn-resume::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-resume:hover {
  color: #111;
}

.btn-resume:hover::before {
  transform: scaleX(1);
}

.btn-resume svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn-resume,
  .btn-resume::before {
    transition: none;
  }
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #232324;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ---------- Right column (scrolls) ---------- */

.content {
  width: 70%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 24px 24px 0;
}

.slide {
  min-height: 60vh;
  color: #111;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slide-inner {
  width: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slide-media {
  width: 100%;
}

.slide-media img,
.slide-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ---------- Liquid distortion hover effect ---------- */

.liquid-distort-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.liquid-distort-source {
  transition: opacity 0.3s ease;
}

.liquid-distort-wrap.is-ready .liquid-distort-source {
  opacity: 0;
}

.liquid-distort-canvas {
  position: absolute;
  top: -10%;
  left: -10%;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-distort-wrap.is-ready .liquid-distort-canvas {
  opacity: 1;
}

.slide-inner {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.in-view .slide-inner {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .sidebar,
  .content {
    width: 100%;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .ambient-sidebar-mask {
    display: none;
  }

  .slide-hero h1 {
    font-size: 32px;
  }
}
