:root {
  --bg-start: #000000;
  --bg-end: #0b1220; /* slightly cooler/darker for richer look */
  --text: #ffffff;
  --muted: rgba(255,255,255,0.8);
  --line: rgba(255,255,255,0.75);
  --box: #16009a; /* deep blue, like screenshot */
  /* Grid variables */
  --grid-minor: rgba(255,255,255,0.03);
  --grid-major: rgba(120,86,255,0.06); /* subtle purple accent */
  --grid-size-minor: 40px;
  --grid-size-major: 200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Mono', monospace;
  color: var(--text);
  /* Layered background:
     - minor thin grid (horizontal + vertical)
     - major accent grid (horizontal + vertical)
     - base gradient layer underneath
     The grid layers are very subtle and fixed so content scrolls over them.
  */
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(165deg, var(--bg-start), var(--bg-end));
  background-size:
    var(--grid-size-minor) var(--grid-size-minor),
    var(--grid-size-minor) var(--grid-size-minor),
    var(--grid-size-major) var(--grid-size-major),
    var(--grid-size-major) var(--grid-size-major),
    cover;
  background-position: 0 0, 0 0, 0 0, 0 0, center center;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-blend-mode: overlay;
  min-height: 100vh;
  scroll-snap-type: y mandatory;
}

.site-header {
  position: static; /* not sticky per request */
}

.nav {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}

/* Animated underline for nav links */
.nav a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 260ms ease;
}

.nav a:hover { background-size: 100% 2px; }

main {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html { scroll-behavior: smooth; }


.hero {
  padding: 3rem 0 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  margin: 0 0 1.25rem 0;
  letter-spacing: 2px;
}

/* Heading uses Instrument Serif */
.heading-display {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

/* Gentle float for hero title */


.hero-sub {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 2.5rem 0 0;
}

.section-title {
  font-size: 1.75rem;
  letter-spacing: 2px;
  margin: 1.5rem 0 1.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2rem;
}

/* Make .box elements (including anchors) behave as blocks so height/background apply */
.box {
  display: block;
}

@media (min-width: 850px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill .box {
  height: 320px;
  background: var(--box);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.skill h3 {
  font-size: 1.75rem;
  margin: 1rem 0 0.25rem;
}

.skill p {
  color: var(--muted);
  line-height: 1.6;
}

.works-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.works-wrap .box.large {
  height: 300px;
  background: var(--box);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.works-copy {
  color: var(--muted);
  max-width: 520px;
}

@media (min-width: 850px) {
  .works-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }
  .works-wrap .box.large {
    height: 340px;
  }
}

/* Image assignments */
/* Image assignments / Gradient backups */
.box.ui-ux {
  background: linear-gradient(135deg, #16009a 0%, #7856ff 100%);
}
.box.web-dev {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}
.box.video-editing {
  background: linear-gradient(135deg, #4b1248 0%, #f0c27b 100%);
}
.box.work {
  /* Try explicit relative path and case variants to avoid path issues */
  background-image: url('./public/Work.png');
}
.box.work:not([data-bound]) {
  background-image: url('./public/Work.png'), url('./public/Work.png');
}

.social {
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  border-bottom: 2px solid var(--line);
}

.social-list a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 1rem 0;
  letter-spacing: 1px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0 3rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  /* Intentionally not disabling heading animation to keep 'always animation' behaviour.
     If you want to respect reduced-motion, restore the rule above. */
}

/* Minor responsiveness for nav spacing */
@media (max-width: 520px) {
  .nav { gap: 1.25rem; }
}

/* Interactive states */
.box:hover {
  /* Keep lift and slight scale on hover, but remove tilt/rotation for a stable look */
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 26px 64px rgba(0,0,0,0.5);
}

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  45% {
    opacity: 0.08;
  }
  100% {
    opacity: 1;
  }
}

/* Shader canvas background: fixed, behind content, non-interactive */
#shader-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  display: block;
  background: transparent;
}


