/* 
  ZachSteppDesign Website - Modern Sports Design Portfolio CSS Design System
  Theme: Liquid Glass / Cybernetic Athleticism
  Colors: Deep Obsidian base with Electric Cyan, Neon Lime, and Hot Crimson Accents.
  Typography: Outfit (modern geometric) & Space Grotesk (tech/athletic display).
*/

/* Fonts are loaded via <link> in each page's <head> (faster than CSS @import). */

:root {
  /* Color Palette - HSL values for easy opacity manipulation */
  --bg-base: hsl(250, 24%, 6%);
  --bg-surface-rgb: 20, 18, 28;
  --bg-surface: hsla(250, 22%, 10%, 0.6);
  --bg-surface-glow: hsla(250, 22%, 15%, 0.85);
  
  /* Neons */
  --neon-cyan: hsl(185, 100%, 50%);
  --neon-lime: hsl(80, 100%, 50%);
  --neon-crimson: hsl(340, 100%, 55%);
  --neon-gold: hsl(45, 100%, 50%);
  
  --text-primary: hsl(0, 0%, 100%);
  --text-secondary: hsl(250, 10%, 70%);
  --text-muted: hsl(250, 8%, 45%);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  
  /* Borders & Shadows */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(0, 229, 255, 0.25);
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-neon-cyan: 0 0 20px hsla(185, 100%, 50%, 0.3);
  --shadow-neon-lime: 0 0 20px hsla(80, 100%, 50%, 0.3);
  --shadow-neon-crimson: 0 0 20px hsla(340, 100%, 55%, 0.3);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: hsla(250, 22%, 18%, 1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

/* Background Animated Blobs for Liquid Glass */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, hsl(250, 25%, 9%) 0%, var(--bg-base) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  top: -10%;
  left: -10%;
  animation-duration: 20s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--neon-crimson);
  bottom: -15%;
  right: -5%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--neon-lime);
  top: 40%;
  left: 60%;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(80px, 50px) rotate(180deg) scale(1.15);
  }
  100% {
    transform: translate(-40px, -60px) rotate(360deg) scale(0.9);
  }
}

/* Liquid Glass Cards & Layout elements */
.liquid-glass {
  background: var(--bg-surface);
  backdrop-filter: blur(25px) saturate(210%);
  -webkit-backdrop-filter: blur(25px) saturate(210%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.liquid-glass:hover {
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-neon-cyan);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.italic-slant {
  font-style: italic;
  transform: skewX(-4deg);
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, var(--neon-crimson) 0%, #ff80a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Base Layout Structure */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
  background: rgba(13, 11, 20, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 2rem;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-family: var(--font-tech);
  color: var(--neon-cyan);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-lime);
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--shadow-neon-lime);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 101;
}

/* Sections */
section {
  padding: 8rem 2rem 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
}

.hero-badge .badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

.hero-title .emphasis {
  display: block;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-lime) 100%);
  color: hsl(250, 24%, 6%);
  border: none;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px hsla(185, 100%, 50%, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
}

/* Hero Featured Card (3D Tilt Example) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.tilt-card-container {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
}

.tilt-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 5;
}

.featured-design {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.featured-image-wrapper {
  flex-grow: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-design:hover .featured-image-wrapper img {
  transform: scale(1.05);
}

.featured-footer {
  transform: translateZ(30px);
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.featured-tag {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--neon-lime);
  background: rgba(128, 255, 0, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.featured-date {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.featured-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.featured-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Portfolio Section */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-title-area {
  max-width: 600px;
}

.section-subtitle {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.25rem;
  }
}

/* Filters */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-lime) 100%);
  color: hsl(250, 24%, 6%);
  font-weight: 700;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.portfolio-item:hover {
  border-color: var(--glass-border-glow);
}

.portfolio-item-content {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(13, 11, 20, 0.95) 0%, rgba(13, 11, 20, 0.4) 60%, rgba(13, 11, 20, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-tag {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.portfolio-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.portfolio-context {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.portfolio-tags, .modal-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.portfolio-tags {
  margin-top: 0.5rem;
}

.modal-tags {
  margin-bottom: 1.5rem;
}

.tag-badge {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag-badge.msu {
  color: #ff4d6d; /* Light red/maroon contrast for dark mode */
  background: rgba(255, 77, 109, 0.15);
  border-color: rgba(255, 77, 109, 0.35);
}

.tag-badge.freelance {
  color: var(--neon-lime);
  background: rgba(128, 255, 0, 0.1);
  border-color: rgba(128, 255, 0, 0.35);
}

.tag-badge.photo {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.35);
}

.tag-badge.graphics {
  color: var(--neon-gold);
  background: rgba(255, 182, 18, 0.1);
  border-color: rgba(255, 182, 18, 0.35);
}

/* The Trading Card Studio (Interactive Showcase) */
.lab-section {
  border-top: 1px solid var(--glass-border);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .lab-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.lab-panel-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lab-introduction {
  margin-bottom: 3rem;
}

.lab-introduction p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 640px;
}

.generator-form {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input, .form-select {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px hsla(185, 100%, 50%, 0.15);
}

.generator-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* API Config Indicator & Button */
.api-config-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.status-dot.active {
  background: var(--neon-lime);
  box-shadow: var(--shadow-neon-lime);
}

.api-config-btn {
  background: none;
  border: none;
  color: var(--neon-cyan);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-tech);
  transition: color 0.2s ease;
}

.api-config-btn:hover {
  color: var(--text-primary);
}

/* Liquid Glass Cards Preview (Trading Card Studio Output) */
.lab-panel-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  perspective: 1000px;
  width: 100%;
}

.player-card-wrapper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4.2;
}

.player-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.player-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 18, 28, 0.85) 0%, rgba(13, 11, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

/* Card Glow Overlays */
.player-card::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--card-color-glow, hsla(185, 100%, 50%, 0.12)) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.player-card .card-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.player-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.card-team-info {
  display: flex;
  flex-direction: column;
}

.card-team-name {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--card-color, var(--neon-cyan));
  letter-spacing: 0.1em;
}

.card-player-number {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--card-color, var(--neon-cyan));
  text-shadow: 0 0 10px var(--card-color-glow);
}

.card-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: var(--font-tech);
}

/* Card Graphic Center */
.player-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  margin: 1rem 0;
}

.player-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.3) 100%);
  border: 2px solid var(--card-color, var(--neon-cyan));
  box-shadow: 0 0 20px var(--card-color-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.player-avatar-placeholder svg {
  width: 50px;
  height: 50px;
  color: var(--card-color, var(--neon-cyan));
  opacity: 0.7;
}

.player-avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-player-name {
  font-size: 1.85rem;
  text-align: center;
  margin-top: 1rem;
  line-height: 1;
}

.card-player-position {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Card Stats Block */
.player-card-footer {
  z-index: 2;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

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

.stat-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-color, var(--neon-cyan));
}

.card-bio {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.4;
  padding: 0 0.5rem;
}

/* Modal System (Details overlay) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-surface-glow);
  border: 1px solid var(--glass-border-glow);
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), var(--shadow-neon-cyan);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .modal-content {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--neon-crimson);
  border-color: var(--neon-crimson);
  color: white;
}

.modal-image-panel {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .modal-image-panel {
    height: 100%;
    aspect-ratio: auto;
  }
}

.modal-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--neon-lime);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.modal-context {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-name {
  color: var(--text-muted);
}

.spec-val {
  font-family: var(--font-tech);
  color: var(--text-primary);
}

/* About / Credentials Section */
.about-section {
  border-top: 1px solid var(--glass-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.1;
  position: relative;
}

.about-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--neon-cyan);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 576px) {
  .about-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem 1rem;
  border-radius: 14px;
  text-align: center;
}

.about-stat-num {
  display: block;
  font-family: var(--font-tech);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, var(--neon-cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat-label {
  display: block;
  max-width: 12ch;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

/* Contact / Footer Section */
.footer-section {
  border-top: 1px solid var(--glass-border);
  padding: 6rem 2rem 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-title {
    font-size: 3.5rem;
  }
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.social-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--neon-cyan);
  color: hsl(250, 24%, 6%);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-3px);
}

.copyright {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

/* API Config Modal */
.api-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.api-modal.active {
  opacity: 1;
  pointer-events: all;
}

.api-modal-content {
  width: 100%;
  max-width: 450px;
  padding: 2.5rem;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.api-modal.active .api-modal-content {
  transform: scale(1);
}

.api-modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--neon-cyan);
}

.api-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.api-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* CSS Utilities for Animations */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MULTI-PAGE ADDITIONS (Pinepoint Digital continuation)
   Shared nav active state, landing section-nav cards, CTA band, global footer.
   Reuses existing design tokens / liquid-glass system.
   ========================================================================== */

/* Active nav link (current page) */
nav a.active {
  color: var(--text-primary);
}
nav a.active::after {
  width: 100%;
}

/* Landing: "Enter the Arena" section navigation cards */
.home-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.25rem;
  text-decoration: none;
  color: var(--text-primary);
}

.home-nav-card:hover {
  transform: translateY(-6px);
}

.home-nav-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--neon-cyan);
  transition: all 0.3s ease;
}

.home-nav-card:hover .home-nav-icon {
  background: rgba(0, 229, 255, 0.15);
  box-shadow: var(--shadow-neon-cyan);
}

.home-nav-icon svg {
  width: 28px;
  height: 28px;
}

.home-nav-title {
  font-size: 1.5rem;
  line-height: 1.1;
}

.home-nav-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.home-nav-link {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-link .arrow {
  transition: transform 0.3s ease;
}

.home-nav-card:hover .home-nav-link .arrow {
  transform: translateX(5px);
}

/* Landing: Contact CTA band */
.cta-band {
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.cta-content {
  max-width: 620px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 4rem;
  }
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Global site footer (shared across pages) */
.site-footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--neon-cyan);
}

.site-footer .social-links {
  margin-bottom: 0;
}

.site-footer .copyright {
  text-align: center;
}

.footer-credit-link {
  color: var(--neon-cyan);
  text-decoration: none;
}

.footer-credit-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PREMIUM TRADING CARD (Card Studio) + sport stat inputs + software emblem
   ========================================================================== */

/* Software emblem shown in the work-page detail modal */
.software-badge {
  vertical-align: -4px;
  margin-right: 0.45rem;
}

/* Neutral default tag chip (e.g. sport tags); typed tags below override it */
.tag-badge {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}

/* --- Sport-aware stat input fields under the generator form --- */
.stat-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-inputs-label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.stat-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-input-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label-input,
.stat-value-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-tech);
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-label-input {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  padding: 0.4rem;
}

.stat-value-input {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.55rem;
}

.stat-label-input:focus,
.stat-value-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

@media (max-width: 480px) {
  .stat-input-grid {
    grid-template-columns: 1fr;
  }
}

/* --- The premium card (overrides the base .player-card box) --- */
.player-card.premium-card {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--card-color, var(--neon-cyan));
  background: linear-gradient(160deg, #1c1830 0%, #0d0b14 100%);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.6),
    0 0 28px var(--card-color-glow, rgba(0, 229, 255, 0.2)),
    inset 0 0 70px rgba(0, 0, 0, 0.45);
}

/* Mouse-follow glow (fully redefines the base ::before to avoid leftovers) */
.premium-card::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  z-index: 2;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--card-color-glow, rgba(0, 229, 255, 0.2)) 0%, transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.premium-card .card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.premium-card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-card .card-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, var(--card-color-glow, rgba(0, 229, 255, 0.28)) 0%, transparent 60%),
    linear-gradient(160deg, #241f3a 0%, #0d0b14 100%);
}

.premium-card .card-fallback-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.05em;
}

.premium-card .card-photo-fallback svg {
  width: 66px;
  height: 66px;
  color: var(--card-color, var(--neon-cyan));
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.premium-card .card-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.55) 0%, rgba(8, 7, 12, 0.05) 28%, rgba(8, 7, 12, 0.45) 60%, rgba(8, 7, 12, 0.97) 100%);
}

.premium-card .card-shine {
  z-index: 5;
}

.premium-card .card-grid-lines {
  z-index: 1;
}

.premium-card .card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
}

.premium-card .card-team-name {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0d0b14;
  background: var(--card-color, var(--neon-cyan));
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 0 14px var(--card-color-glow);
}

.premium-card .card-player-number {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--card-color, var(--neon-cyan));
  border-radius: 8px;
  backdrop-filter: blur(4px);
  text-shadow: 0 0 10px var(--card-color-glow);
}

.premium-card .card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.premium-card .card-nameplate {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.premium-card .card-logo {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--card-color, var(--neon-cyan));
  border: 1.5px solid var(--card-color, var(--neon-cyan));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.premium-card .card-nameplate-text {
  display: flex;
  flex-direction: column;
}

.premium-card .card-player-name {
  font-size: 1.55rem;
  line-height: 1;
  margin: 0;
}

.premium-card .card-player-position {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.premium-card .card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  backdrop-filter: blur(6px);
}

.premium-card .stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.premium-card .stat-value {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--card-color, var(--neon-cyan));
}

.premium-card .stat-label {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.premium-card .card-soundbite {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 12px var(--card-color-glow);
}

.download-card-btn {
  width: 100%;
  max-width: 380px;
  justify-content: center;
}

/* ==========================================================================
   ABOUT PAGE — portrait placeholder + experience timeline
   ========================================================================== */

/* Portrait placeholder shown until Assets/zach_profile.png exists */
.about-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
    var(--bg-surface);
  color: var(--text-muted);
  padding: 1.5rem;
}

.about-photo-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--neon-cyan);
  opacity: 0.7;
}

.about-photo-placeholder span {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  line-height: 1.6;
}

.about-photo-placeholder code {
  color: var(--neon-cyan);
}

/* Experience timeline */
.timeline-wrap {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--glass-border);
}

.timeline-heading {
  font-size: 2.25rem;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .timeline-heading {
    font-size: 3rem;
  }
}

.timeline {
  margin-top: 2.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-lime));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.timeline-meta {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ==========================================================================
   CONTACT PAGE — layout, methods, textarea, success modal icon
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.contact-intro p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.contact-methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-method:hover {
  color: var(--neon-cyan);
}

.cm-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 255, 0.06);
  color: var(--neon-cyan);
}

.contact-form {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.contact-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.form-error {
  color: var(--neon-crimson);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* Success modal checkmark */
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-lime);
  background: rgba(128, 255, 0, 0.12);
  border: 1px solid rgba(128, 255, 0, 0.35);
  box-shadow: var(--shadow-neon-lime);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

/* Submit button loading spinner */
.btn.is-sending {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn.is-sending::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(13, 11, 20, 0.35);
  border-top-color: #0d0b14;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Success modal pop + animated checkmark draw */
.api-modal.active .success-icon {
  animation: successPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon svg path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}

.api-modal.active .success-icon svg path {
  animation: successCheck 0.5s ease-out 0.25s forwards;
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   WORK GRID — motion (video) tiles + modal video
   ========================================================================== */

.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover video {
  transform: scale(1.06);
}

.portfolio-item.is-motion .portfolio-item-content::after {
  content: '\25B6  MOTION';
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0d0b14;
  background: var(--neon-lime);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: var(--shadow-neon-lime);
}

#modalVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ==========================================================================
   WORK PAGE — Featured spotlight row
   ========================================================================== */

.featured-section {
  padding-bottom: 1rem;
}

.work-portfolio {
  padding-top: 3.5rem;
}

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

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item.featured-item {
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-glow), 0 0 26px rgba(0, 229, 255, 0.14);
}

.portfolio-item.featured-item .portfolio-item-content::before {
  content: '\2605  FEATURED';
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0d0b14;
  background: var(--neon-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: var(--shadow-neon-cyan);
}

/* ==========================================================================
   MOBILE OPTIMIZATION — prevent overflow, fit/center cards & forms
   ========================================================================== */

/* Media never forces a container wider than the screen */
img, video {
  max-width: 100%;
}

/* Let grid/flex children shrink below their content width (fixes the card +
   form blowing out past the viewport on phones). */
.lab-panel-left,
.lab-panel-right,
.contact-intro,
.contact-form,
.about-details,
.about-visual,
.home-nav-card,
.portfolio-item {
  min-width: 0;
}

@media (max-width: 600px) {
  section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  /* Comfortable margins + guaranteed centering for the trading card */
  .player-card-wrapper {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .generator-form,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Mobile responsive navigation overlay */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 11, 20, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    padding: 6rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }
  
  nav a {
    font-size: 1.25rem;
  }
}
