﻿@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nyGy6xpg.woff2) format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nyxSmxpg.woff2) format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/V8mQoQDjQSkFtoMM3T6r8E7mF71Q-gOoraIAEj7oUUsj.woff2) format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/V8mQoQDjQSkFtoMM3T6r8E7mF71Q-gOoraIAEj7aUUsj.woff2) format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/V8mQoQDjQSkFtoMM3T6r8E7mF71Q-gOoraIAEj42Vksj.woff2) format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/i7dPIFZifjKcF5UAWdDRUEY.woff2) format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/i7dMIFZifjKcF5UAWdDRaPpZYFI.woff2) format("woff2");
}
:root {
  --bg: #070a0f;
  --bg-2: #0c1320;
  --panel: rgba(10, 18, 30, 0.76);
  --panel-strong: rgba(16, 28, 44, 0.92);
  --text: #e6f5ff;
  --muted: #9ab3c8;
  --accent: #22ff9a;
  --accent-2: #00c7ff;
  --warning: #ffcc66;
  --outline: rgba(60, 140, 180, 0.35);
  --glow: 0 0 18px rgba(34, 255, 154, 0.3);
  --radius: 18px;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 10% 20%, #142033 0%, var(--bg) 45%, #05070b 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  scroll-padding-top: 60px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 255, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 255, 154, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(0, 199, 255, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

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

img {
  max-width: 100%;
  display: block;
}


html {
  scrollbar-width: auto;
  scrollbar-color: #561cb4 #08101c;
}

::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #060b14 0%, #08101c 100%);
  border-left: 1px solid rgba(0, 199, 255, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 199, 255, 0.95), rgba(34, 255, 154, 0.85));
  border-radius: 999px;
  border: 2px solid #08101c;
  box-shadow: 0 0 12px rgba(0, 199, 255, 0.35);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34, 255, 154, 0.95), rgba(0, 199, 255, 0.95));
  box-shadow: 0 0 16px rgba(34, 255, 154, 0.45);
}

/* Keep scroll arrow button areas from flashing/fading on hover */
::-webkit-scrollbar-button {
  background-color: #08101c;
  border-left: 1px solid rgba(0, 199, 255, 0.2);
}

::-webkit-scrollbar-button:hover,
::-webkit-scrollbar-button:active {
  background-color: #08101c;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 14, 0.72);
  border-bottom: 1px solid rgba(34, 255, 154, 0.12);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.95rem;
  text-transform: uppercase;
  animation: brand-pulse 2.8s ease-in-out infinite;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  animation-play-state: paused;
}

.brand:hover .brand-text {
  text-shadow: 0 0 18px rgba(34, 255, 154, 0.85);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 255, 0.2);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.ripple-letter {
  display: inline-block;
  color: var(--text);
  animation: nav-ripple var(--ripple-duration, 9s) ease-in-out infinite;
  animation-play-state: paused;
}

.nav-link:hover {
  border-color: rgba(34, 255, 154, 0.5);
  color: var(--accent);
  box-shadow: var(--glow);
  font-weight: 700;
}

.brand:hover .ripple-letter,
.nav-link:hover .ripple-letter {
  color: rgba(166, 108, 255, 0.9);
}

.main {
  flex: 1;
}

.hero {
  padding: 5rem 1.5rem 2.2rem;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 36ch;
}

.hero-note {
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.button.primary {
  background: linear-gradient(135deg, rgba(34, 255, 154, 0.3), rgba(0, 199, 255, 0.5));
  color: var(--text);
  box-shadow: var(--glow);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.ghost {
  border-color: rgba(0, 199, 255, 0.3);
  color: var(--accent-2);
}

.button.ghost:hover {
  border-color: rgba(34, 255, 154, 0.5);
  color: var(--accent);
}

.hero-panel {
  background: var(--panel);
  border: 1px solid rgba(0, 199, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.panel-line {
  font-size: 0.8rem;
  color: var(--warning);
  margin-bottom: 0.75rem;
}

.panel-title {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.panel-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  scroll-margin-top: 60px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
}

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

.about-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 199, 255, 0.18);
  padding: 1.25rem;
}

.about-image {
  border-radius: 16px;
  border: 1px solid rgba(34, 255, 154, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text {
  background: var(--panel-strong);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 255, 154, 0.12);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.about-text a {
  color: var(--accent);
}

.about-text a:hover,
.contact-card a:hover,
.card:hover h3,
.card:hover p,
.resume-card a:hover,
.site-footer a:hover {
  color: var(--accent);
  font-weight: 700;
}

.contact-card a {
  color: var(--accent);
}
.contact-card {
  background: var(--panel-strong);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 199, 255, 0.18);
  padding: 1.5rem;
}

.contact-card a {
  color: var(--accent);
}

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

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0, 199, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.projects-strip .card {
  min-height: 160px;
}

.projects-strip .card-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.projects-strip {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.projects-strip + .section {
  padding-top: 2rem;
}

@media (max-width: 720px) {
  .projects-strip .card-grid {
    grid-template-columns: 1fr;
  }
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 255, 154, 0.5);
}

.resume-actions {
  margin-bottom: 1.5rem;
}

.resume-card {
  background: var(--panel-strong);
  border-radius: var(--radius);
  border: 1px solid rgba(34, 255, 154, 0.16);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.resume-header {
  text-align: center;
}

.resume-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.resume-top .resume-name {
  margin: 0;
  white-space: nowrap;
}

.resume-download {
  margin-left: auto;
  white-space: nowrap;
}

.resume-name {
  font-size: 1.8rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.resume-contact a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resume-contact a {
  color: var(--accent-2);
}

.divider {
  opacity: 0.6;
}

.resume-section {
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--accent);
  scroll-margin-top: 90px;
}

.resume-subhead {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resume-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  align-items: baseline;
}

.resume-anchor {
  scroll-margin-top: 120px;
}

.resume-title {
  font-weight: 600;
  color: var(--accent-2);
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.resume-date {
  color: var(--muted);
  font-style: italic;
  text-transform: none;
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.resume-sub {
  color: var(--muted);
  min-width: 0;
}

.resume-sub-strong {
  color: var(--text);
  text-transform: none;
}

.resume-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-variant: normal;
}

.resume-list li {
  text-transform: none;
  font-variant: normal;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: transparent;
}

.contact-section {
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin-bottom: 0.75rem;
  display: inline-block;
}

.shimmer-text {
  display: inline-flex;
  flex-wrap: wrap;
}

.shimmer-letter {
  display: inline-block;
  color: var(--muted);
  opacity: 0.6;
  animation: letter-shimmer 3.2s ease-in-out infinite;
  will-change: opacity, color;
  animation-play-state: paused;
}

.motion-ready .brand-text,
.motion-ready .ripple-letter,
.motion-ready .shimmer-letter {
  animation-play-state: running;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.social-links a:hover {
  color: var(--accent);
  font-weight: 700;
}

@keyframes brand-pulse {
  0% {
    text-shadow: 0 0 0 rgba(34, 255, 154, 0.2);
  }
  50% {
    text-shadow: 0 0 18px rgba(34, 255, 154, 0.45);
  }
  100% {
    text-shadow: 0 0 0 rgba(34, 255, 154, 0.2);
  }
}

@keyframes nav-ripple {
  0%,
  75%,
  100% {
    color: var(--text);
  }
  35% {
    color: rgba(166, 108, 255, 0.9);
  }
}

@keyframes letter-shimmer {
  0% {
    opacity: 0.45;
    color: var(--muted);
  }
  45% {
    opacity: 1;
    color: var(--accent);
  }
  90% {
    opacity: 0.55;
    color: var(--muted);
  }
  100% {
    opacity: 0.45;
    color: var(--muted);
  }
}


@media (max-width: 720px) {
  body {
    scroll-padding-top: 60px;
  }

  .nav {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .brand-text {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.6rem;
    justify-items: center;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.45rem 0.6rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    scroll-margin-top: 60px;
  }

  .resume-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-top .resume-name {
    white-space: normal;
  }

  .resume-download {
    margin-left: 0;
  }

  .resume-card {
    padding: 1.25rem;
  }

  .resume-contact {
    font-size: 0.85rem;
  }

  .resume-title {
    font-size: 0.9rem;
  }

  .resume-date {
    font-size: 0.8rem;
  }

  .resume-sub {
    font-size: 0.9rem;
  }

  .resume-list {
    font-size: 0.9rem;
  }
  .resume-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-row .resume-title,
  .resume-row .resume-date {
    width: 100%;
  }

  .resume-date {
    white-space: normal;
    margin-left: 0;
    text-align: left;
  }

  .brand-text,
  .ripple-letter,
  .shimmer-letter {
    animation: none !important;
  }
}
