@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600&display=swap');

:root {
  --bg-light: #F5F2EB;
  --text-light: #0A0A0A;
  
  --bg-dark: #0F0F0F;
  --text-dark: #E0E0E0;
  
  --accent: #00E5FF;
  
  --font-serif: 'Cinzel', serif;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Inter', sans-serif;
}



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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}
body {
  background: linear-gradient(to right, var(--bg-light) 50%, var(--bg-dark) 50%);
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text-light);
}

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  pointer-events: none;
}

.nav-fixed a {
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.duel-section {
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100vw;
  min-height: 100vh;
  align-items: center;
}

.side-a {
  padding: 8vw;
  color: var(--text-light);
  font-family: var(--font-sans);
}

.side-b {
  padding: 8vw;
  color: var(--text-dark);
  font-family: var(--font-mono);
}

.hero-standoff .side-a h1 {
  font-family: var(--font-serif);
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.85;
  text-align: left;
  font-weight: 400;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 10;
}

.hero-standoff .side-a p {
  font-size: 18px;
  margin-top: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-standoff .side-b h2 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  text-align: right;
  font-weight: 400;
  margin-top: clamp(140px, 24vw, 280px);
  margin-bottom: 24px;
}

.hero-standoff .side-b p {
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  max-width: 400px;
  margin-left: auto;
}

/* SECTION HEADINGS */
.section-heading-wrapper {
  grid-column: 1 / 3;
  padding: 8vw 8vw 0 8vw;
  pointer-events: none;
  mix-blend-mode: difference;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 110px);
  font-weight: 400;
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #ffffff;
  position: relative;
  z-index: 10;
  white-space: nowrap;
  pointer-events: auto;
}

/* MASSIVE GAPS BETWEEN SECTIONS */
.section-spacer {
  height: 25vh;
  width: 100vw;
  grid-column: 1 / 3;
}

.staggered-section {
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100vw;
}

.stagger-item {
  position: relative;
  margin-bottom: 80px; /* Reduced from 160px */
}

.stagger-item.offset-right {
  margin-top: 80px; /* Reduced from 160px */
}

.stagger-item.offset-left {
  margin-top: 80px; /* Reduced from 160px */
}

#beyond-code .stagger-item {
  margin-bottom: 0;
}

#beyond-code .stagger-item.offset-right,
#beyond-code .stagger-item.offset-left {
  margin-top: 0;
}

.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.5s;
}

.project-img:hover {
  filter: grayscale(0%);
}

.numeric-indicator {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

.desc-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.desc-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.desc-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
}

.desc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.desc-stack span {
  border: 1px solid currentColor;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 12px;
}

.desc-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.desc-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.desc-link:hover { text-decoration: none; }

.desc-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.inline-hover-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.inline-hover-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.inline-hover-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.tech-edu-section {
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100vw;
  border-top: 1px solid #ddd;
}
.side-b.border-dark {
  border-top: 1px solid #222;
}

.tech-row {
  display: contents;
}

.tech-domain {
  font-size: 36px;
  padding: 60px 8vw;
}

.side-a.tech-domain {
  font-family: var(--font-serif);
  border-bottom: 1px solid #ddd;
}

.tech-list {
  padding: 60px 8vw;
  list-style: none;
}

.side-b.tech-list {
  border-bottom: 1px solid #222;
}

.tech-list li, .ach-list li {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 2;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 32px;
}

.ach-list-right li {
  border-left: none;
  padding-left: 0;
  border-right: 2px solid var(--accent);
  padding-right: 24px;
}

.choice-moment {
  width: 100vw;
  background-color: var(--accent);
  padding: 160px 4vw;
  position: relative;
  text-align: center;
  color: #000;
  z-index: 60;
}

.choice-noise {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  pointer-events: none;
}

.choice-moment h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 1000px;
  margin: 0 auto 24px auto;
  position: relative;
  z-index: 2;
}

.choice-moment p {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}

.cta-section {
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100vw;
  min-height: 60vh;
  align-items: center;
}

.cta-a {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  font-style: italic;
  display: inline-block;
  transition: opacity 0.3s;
}
.cta-a:hover { opacity: 0.6; }

.cta-b {
  font-size: 24px;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid #333;
  padding: 24px 48px;
  display: inline-block;
  text-transform: uppercase;
  transition: all 0.3s;
  background: transparent;
}
.cta-b:hover {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

a { color: inherit; }
img { display: block; }

/* TIMELINE VISUAL */
.timeline-section {
  position: relative;
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding: 120px 0;
  overflow: hidden;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50vw;
  width: 2px;
  background-color: var(--accent);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-node {
  position: relative;
  width: 100vw;
  display: flex;
  margin-bottom: 30vh;
  z-index: 10;
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50vw;
  width: 16px;
  height: 16px;
  background-color: #000;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.timeline-node-right {
  justify-content: flex-end;
  color: var(--text-dark);
}
.timeline-node-right .timeline-content {
  width: 50vw;
  padding: 0 8vw;
  text-align: left;
}

.timeline-node-left {
  justify-content: flex-start;
}
.timeline-node-left .timeline-content {
  width: 50vw;
  padding: 0 8vw;
  text-align: right;
}

.timeline-node .desc-title {
  font-size: clamp(28px, 3vw, 40px);
}

.timeline-date {
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.mobile-menu-btn, .mobile-nav-close {
  display: none;
}

@media (max-width: 1024px) {
  html, body { 
    background: var(--bg-dark); 
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .section-heading-wrapper, .section-spacer {
    grid-column: 1 / -1 !important;
  }
  
  .duel-section, .staggered-section, .tech-edu-section, .cta-section, .timeline-section, .choice-moment {
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
  }
  
  .side-a, .side-b { 
    background: var(--bg-dark) !important; 
    color: var(--text-dark) !important;
    padding: 12vw 6vw; 
    min-width: 0;
  }
  
  .tech-edu-section, .side-a.tech-domain, .side-b.tech-list {
    border-color: #333 !important;
  }
  
  .stagger-item.offset-right, .stagger-item.offset-left { margin-top: 0; }
  .stagger-item { margin-bottom: 40px; }
  
  /* Fix Navigation */
  .nav-fixed { 
    mix-blend-mode: normal; 
    background: var(--bg-dark); 
    border-bottom: 1px solid #333;
    padding: 20px 24px;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: block;
    pointer-events: auto;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid #333;
    pointer-events: auto;
    font-size: 14px;
  }
  .nav-links.active {
    right: 0;
  }
  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    pointer-events: auto;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  
  .section-spacer { height: 10vh; }
  
  /* Fix Hero alignments and sizes */
  .hero-standoff {
    padding-top: 120px;
  }
  .hero-standoff .side-a h1 {
    font-size: 16vw; /* Strictly proportional to screen width */
    margin-top: 60px;
    color: #fff !important;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
  }
  .hero-standoff .slide-in-left {
    mix-blend-mode: normal !important;
  }
  .hero-standoff .side-b h2 {
    font-size: clamp(32px, 8vw, 48px);
    text-align: left;
    margin-top: 40px;
    color: #fff !important;
    word-wrap: break-word;
  }
  .hero-standoff .side-b p, .hero-standoff .side-a p {
    text-align: left;
    margin-left: 0;
    color: #fff !important;
    max-width: 100% !important;
  }
  
  /* Global max-width fix for text overflow */
  p, h1, h2, h3, h4, h5, h6, div, span, li, a {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  
  /* Global color fix for timeline and lists hidden by dark bg */
  .timeline-node, .timeline-content, .ach-list, .tech-list, .desc-body, .desc-title, .cta-a, .cta-b {
    color: var(--text-dark) !important;
  }
  
  .cta-a {
    font-family: var(--font-sans) !important;
    font-style: normal !important;
    font-size: 20px !important;
    border-bottom: 1px solid var(--accent) !important;
  }
  .cta-section .desc-body {
    font-size: 18px !important;
    color: #aaa !important;
  }
  
  /* Staggered Section Order (Even items Title/Image before Text/List) */
  .staggered-section {
    display: flex !important;
    flex-direction: column;
  }
  .staggered-section > * { order: 20; }
  .staggered-section > .section-heading-wrapper { order: 0 !important; }
  
  .staggered-section > :nth-child(2) { order: 1; }
  .staggered-section > :nth-child(3) { order: 2; }
  
  .staggered-section > :nth-child(4) { order: 4; }
  .staggered-section > :nth-child(5) { order: 3; }
  
  .staggered-section > :nth-child(6) { order: 5; }
  .staggered-section > :nth-child(7) { order: 6; }
  
  .staggered-section > :nth-child(8) { order: 8; }
  .staggered-section > :nth-child(9) { order: 7; }
  
  .staggered-section > :nth-child(10) { order: 9; }
  .staggered-section > :nth-child(11) { order: 10; }
  
  .staggered-section > :nth-child(12) { order: 12; }
  .staggered-section > :nth-child(13) { order: 11; }
  
  /* Force left-alignment for all staggered items on mobile */
  .stagger-item,
  .stagger-item[style*="text-align: right"],
  .stagger-item[style*="justify-content: flex-end"],
  .stagger-item[style*="justify-content: center"] {
    text-align: left !important;
    justify-content: flex-start !important;
  }
  
  .numeric-indicator[style*="text-align: right"] {
    text-align: left !important;
  }
  
  /* Fix Timeline */
  .timeline-section {
    padding: 60px 0;
  }
  .section-heading-wrapper[style*="margin-bottom: 240px"] {
    margin-bottom: 120px !important;
  }
  .timeline-spine {
    left: 24px;
    transform: none;
  }
  .timeline-node {
    margin-bottom: 60px;
  }
  .timeline-node::before {
    left: 24px;
    transform: translate(-50%, -50%);
  }
  .timeline-node-right, .timeline-node-left {
    justify-content: flex-start;
  }
  .timeline-node-right .timeline-content,
  .timeline-node-left .timeline-content {
    width: 100%;
    padding: 0 6vw 0 64px;
    text-align: left;
  }
  .timeline-node .desc-stack[style*="justify-content: flex-end"] {
    justify-content: flex-start !important;
  }
  .timeline-node-right[style*="margin-bottom: 120px"] {
    margin-bottom: 60px !important;
  }
  
  /* Fix achievement list */
  .ach-list-right {
    text-align: left !important;
  }
  .ach-list-right li {
    border-right: none;
    padding-right: 0;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
  }
  
  /* Fix font sizes for headings */
  .section-heading {
    font-size: clamp(36px, 10vw, 44px); /* Slightly bigger heading */
    white-space: normal;
  }
  .desc-title {
    font-size: 32px;
  }
  .desc-body {
    font-size: 15px !important;
  }
  
  /* Adjust Choice Moment */
  .choice-moment {
    padding: 100px 6vw;
  }
  .choice-moment h2 {
    font-size: 36px !important;
  }
  
  /* Icons sizing */
  .mobile-menu-btn [data-lucide], .mobile-nav-close [data-lucide] {
    width: 32px !important;
    height: 32px !important;
  }
  #beyond-code [data-lucide] {
    width: 64px !important;
    height: 64px !important;
  }
}
