:root {
  --bg: #050506;
  --surface: #101114;
  --surface-2: #17191f;
  --text: #f7f8fb;
  --muted: #a5adbd;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #00ff9d;
  --secondary: #00b8ff;
  --accent: #ff2f6d;
  --shadow: rgba(0, 255, 157, 0.18);
  --heading: "Outfit", sans-serif;
  --mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--heading);
  overflow-x: hidden;
}

a {
  color: inherit;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.35;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
}

.cursor-outline {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 255, 157, 0.75);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(16px);
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 14px var(--primary);
}

.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 56px;
  padding: 120px 7vw 72px;
}

.hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 800;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--primary);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

.hero-role {
  margin: 0 0 18px;
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 18px;
}

.hero-description {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--shadow);
}

.btn.primary {
  background: var(--primary);
  color: #06100d;
}

.btn.secondary {
  background: transparent;
}

.hero-card,
.journey-panel,
.favorites-card,
.project-card,
.skill-card,
.timeline-item {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 25, 31, 0.92), rgba(11, 12, 15, 0.92));
  border-radius: 8px;
}

.hero-card {
  padding: 18px;
  display: grid;
  gap: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card h2,
.journey-panel h3,
.favorites-card h3 {
  margin: 4px 0 10px;
  font-size: 28px;
}

.hero-card p,
.journey-panel p,
.favorites-card p {
  color: var(--muted);
  line-height: 1.6;
}

blockquote {
  margin: 0;
  padding: 18px;
  border-left: 3px solid var(--primary);
  background: rgba(0, 255, 157, 0.06);
  font-family: var(--mono);
  color: var(--text);
}

.glitch {
  position: relative;
  color: var(--text);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  transform: translate(2px, -1px);
  color: var(--accent);
  clip-path: inset(0 0 52% 0);
}

.glitch::after {
  transform: translate(-2px, 1px);
  color: var(--secondary);
  clip-path: inset(48% 0 0 0);
}

.section {
  padding: 92px 7vw;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2,
.about-copy h2,
footer h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.project-image {
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.1), rgba(5, 5, 6, 0.92));
}

.project-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--mono);
  color: var(--primary);
  background: rgba(5, 5, 6, 0.78);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 6px 9px;
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: #06100d;
  background: var(--primary);
  padding: 8px 10px;
}

.project-body {
  padding: 20px;
}

.project-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.project-tags,
.project-role {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 13px;
}

.project-role {
  color: var(--secondary);
}

.project-body p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
}

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

.timeline-item {
  position: relative;
  padding: 22px;
  border-left: 3px solid var(--primary);
}

.timeline-item .date {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: var(--mono);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.journey-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.mini-stats {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-stats span,
.favorite-list span {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 20px;
}

.skill-card h3 {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 24px;
}

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

.skill-card li {
  color: var(--muted);
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--primary);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.favorites-card {
  padding: 24px;
}

.favorite-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

footer {
  padding: 86px 7vw 42px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #020203;
}

footer .btn {
  margin-top: 24px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--mono);
  color: var(--muted);
}

.socials a {
  text-decoration: none;
  color: var(--primary);
}

.copyright {
  margin-top: 34px;
  color: #5c6270;
  font-family: var(--mono);
  font-size: 12px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(0, 255, 157, 0.35);
  box-shadow: 0 0 60px rgba(0, 255, 157, 0.16);
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

#videoFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .hero-section,
  .journey-layout,
  .about-section {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  .navbar {
    padding: 16px 5vw;
  }

  .nav-links {
    gap: 14px;
    font-size: 11px;
    overflow-x: auto;
    max-width: 72vw;
  }

  .hero-section,
  .section,
  footer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-section {
    padding-top: 104px;
    gap: 34px;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-description,
  .about-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
