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

:root {
  /* Colors */
  --bg-color: #0c0c0c;
  --text-primary: #f5f5f0;
  --text-secondary: #888888;
  --accent: #f59e0b; /* Amber gold */
  --border-color: rgba(245, 245, 240, 0.15);
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.6s;
  --duration-slow: 1.2s;
}

/* Light mode overrides - toggled via JS */
[data-theme="light"] {
  --bg-color: #f5f5f0;
  --text-primary: #0c0c0c;
  --text-secondary: #666666;
  --border-color: rgba(12, 12, 12, 0.15);
  --accent: #d97706;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

/* --- Layout --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
  border-bottom: 1px solid var(--border-color);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) 0;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff; /* Always white for difference mode */
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav__link:hover {
  opacity: 0.5;
}

.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.hero__title {
  font-size: clamp(4rem, 15vw, 16rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  white-space: nowrap;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  color: var(--accent);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(3rem, 8vw, 8rem);
}

.section-number {
  color: var(--accent);
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* --- Typography for Body --- */
.body-large {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.body-normal {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- Proof of Work Cards (New) --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-md);
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.work-card::after {
  content: '↗';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s ease;
}

.work-card:hover {
  border-color: var(--accent);
  background-color: rgba(245, 158, 11, 0.03);
  transform: translateY(-5px);
}

.work-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.work-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.work-title {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.work-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.work-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Memo --- */
.memo-box {
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  position: relative;
}

.memo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
}

.memo-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.memo-move {
  margin-bottom: var(--space-md);
}

.memo-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
}

.footer-huge {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 14rem);
  text-align: center;
  margin-bottom: var(--space-xl);
  line-height: 0.85;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-link:hover {
  color: var(--accent);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Awwwards Polish: Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, mix-blend-mode 0.3s ease;
  will-change: transform;
}

.cursor-hover {
  width: 60px;
  height: 60px;
  background-color: var(--text-primary);
  mix-blend-mode: difference;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
  body, a, button, .work-card, .magnetic {
    cursor: auto !important;
  }
}

/* --- Awwwards Polish: Magnetic Elements --- */
.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic:hover {
  /* Let JS handle the exact translate, just kill the transition so it tracks instantly */
  transition: transform 0.1s linear;
}

/* --- Awwwards Polish: Parallax Elements --- */
.parallax {
  will-change: transform;
}

/* --- Awwwards Polish: Infinite Marquee --- */
.marquee-wrapper {
  overflow: hidden;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  display: flex;
  background-color: var(--accent);
  color: var(--bg-color);
}

.marquee {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  padding: 0 var(--space-md);
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

