/* ============================================================
   Andrew Taylor — Lead Games Producer
   style.css
   ============================================================ */

/* ----------------------------------------
   Custom Properties
---------------------------------------- */
:root {
  --bg-primary:    #070B14;
  --bg-secondary:  #0D1428;
  --bg-card:       #0F1828;
  --bg-card-alt:   #111d35;

  --accent-blue:   #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-gold:   #F59E0B;
  --accent-cyan:   #06B6D4;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #4B5563;

  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.15);

  --font-heading:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --max-width:     1200px;
  --radius:        14px;
  --radius-sm:     7px;
  --t:             0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section {
  padding: 110px 0;
}

/* ----------------------------------------
   Section header
---------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-large {
  padding: 17px 36px;
  font-size: 16px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links .nav-cta {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.nav-links .nav-cta:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.5);
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  will-change: transform;
  backface-visibility: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 40%, rgba(59, 130, 246, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 80% 10%, rgba(139, 92, 246, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 55%),
    linear-gradient(to bottom, transparent 55%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 28px 0;
  max-width: 820px;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-name {
  font-family: 'Bebas Neue', var(--font-heading);
  font-size: clamp(72px, 14vw, 144px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: linear-gradient(160deg, #FFFFFF 30%, rgba(148, 163, 184, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.85s ease 0.35s forwards;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.55s forwards;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.85s forwards;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.scroll-arrow {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card */
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border-color: var(--border-hover);
}

/* Project image */
.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Zwift — logo on dark background */
.project-image--zwift {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 24px;
}

.project-image--zwift img {
  object-fit: contain;
  width: auto;
  max-height: 150px;
  transition: transform 0.55s ease;
}

/* Project Buzz — generated graphic */
.project-image--buzz {
  background: linear-gradient(140deg, #040B1E 0%, #0A1535 50%, #160A35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzz-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzz-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.buzz-logo-combined {
  position: relative;
  z-index: 1;
  height: 44px !important;
  width: auto !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Card body */
.project-info {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.project-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.project-studio {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-info p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.project-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: color var(--t);
  margin-top: auto;
  padding-top: 4px;
}

.project-link:hover {
  color: #93C5FD;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -250px;
  right: -250px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.about-text .section-label {
  display: block;
  margin-bottom: 14px;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text .btn-primary {
  margin-top: 12px;
}

/* Skills blocks */
.skills-block {
  margin-bottom: 28px;
}

.skills-block:last-child {
  margin-bottom: 0;
}

.skills-block h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: border-color var(--t), background var(--t);
  cursor: default;
}

.skill-tags span:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.07);
}

/* Stats bar */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.stat {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-number span {
  font-size: 34px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   INTERESTS / CYCLING
   ============================================================ */
.interests-block {
  margin-top: 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px 48px;
  transition: border-color var(--t);
}

.interests-block:hover {
  border-color: var(--border-hover);
}

.interests-inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.interests-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.interests-icon svg {
  width: 26px;
  height: 26px;
}

.interests-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.interests-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.interests-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
}

.interests-content p a {
  color: var(--accent-blue);
  transition: color var(--t);
}

.interests-content p a:hover {
  color: #93C5FD;
}

.interests-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: color var(--t);
}

.interests-link:hover {
  color: #93C5FD;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(59, 130, 246, 0.055) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.contact-inner .section-label {
  display: block;
  margin-bottom: 14px;
}

.contact-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 22px;
}

.contact-inner p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 44px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger siblings */
.projects-grid .reveal:nth-child(2),
.about-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.projects-grid .reveal:nth-child(3) { transition-delay: 0.05s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.15s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.9); }
  50%       { opacity: 0.75; transform: scaleY(1.15); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    gap: 52px;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    margin-bottom: 52px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(4) {
    border-right: none;
  }

  .interests-block {
    padding: 28px 24px;
  }

  .interests-inner {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    padding-top: 100px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .stat-number {
    font-size: 38px;
  }

  .stat-number span {
    font-size: 28px;
  }

  .stat {
    padding: 28px 16px;
  }

  .project-info {
    padding: 22px;
  }

  .hero-badges {
    gap: 6px;
  }
}
