/* ================================
   Indie Game Development Course
   CSS Design System
   ================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Dark Theme with Neon Accents */
  --color-bg-primary: #0d0d0d;
  --color-bg-secondary: #1a1a1a;
  --color-bg-tertiary: #242424;
  --color-bg-card: #1e1e1e;

  --color-text-primary: #f5f5f5;
  --color-text-secondary: #b8b8b8;
  --color-text-muted: #808080;

  --color-accent-magenta: #ff006e;
  --color-accent-magenta-dark: #d90368;
  --color-accent-cyan: #06ffa5;
  --color-accent-cyan-dark: #00d9ff;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);

  --glow-magenta: 0 0 20px rgba(255, 0, 110, 0.4);
  --glow-cyan: 0 0 20px rgba(6, 255, 165, 0.4);

  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-cyan-dark);
}

a:focus {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 2px;
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-magenta), var(--color-accent-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.navbar-menu a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  position: relative;
  transition: color var(--transition-base);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-accent-cyan);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-cyan);
  transition: width var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: var(--text-2xl);
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://source.unsplash.com/1600x900/?indie,gaming,neon');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
  animation: fadeInUp 1s ease;
}

.hero-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
  animation: fadeInUp 1.2s ease;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-magenta-dark));
  color: white;
  box-shadow: var(--shadow-md), var(--glow-magenta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-magenta);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent-cyan);
  border: 2px solid var(--color-accent-cyan);
}

.btn-secondary:hover {
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  box-shadow: var(--glow-cyan);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-3xl) var(--space-md);
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 0, 110, 0.2);
  border-color: var(--color-accent-magenta);
}

.card-number {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-magenta);
  background: rgba(255, 0, 110, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

/* ===== ACCORDION ===== */
.accordion {
  margin-bottom: var(--space-md);
}

.accordion-item {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-header {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-accent-cyan);
}

.accordion-header:focus {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: -2px;
}

.accordion-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
  color: var(--color-accent-magenta);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
}

.accordion-body {
  padding: 0 var(--space-lg) var(--space-lg);
}

.accordion-subsection {
  margin-bottom: var(--space-lg);
}

.accordion-subsection h4 {
  color: var(--color-accent-cyan);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.accordion-subsection p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.content-source {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: var(--space-sm);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.accordion-subsection ul {
  margin-left: var(--space-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.key-takeaways {
  background: rgba(6, 255, 165, 0.05);
  border-left: 3px solid var(--color-accent-cyan);
  padding: var(--space-md);
  margin-top: var(--space-md);
  border-radius: var(--border-radius-sm);
}

.key-takeaways h5 {
  color: var(--color-accent-cyan);
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.key-takeaways ul {
  margin-left: var(--space-lg);
}

/* ===== WORKSHOP STEPPER ===== */
.workshop-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  position: relative;
  padding: var(--space-md) 0;
}

.workshop-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

.stepper-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  margin-bottom: var(--space-xs);
}

.stepper-step.active .stepper-circle {
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-magenta-dark));
  border-color: var(--color-accent-magenta);
  color: white;
  box-shadow: var(--glow-magenta);
}

.stepper-step.completed .stepper-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.stepper-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  transition: color var(--transition-base);
}

.stepper-step.active .stepper-label,
.stepper-step.completed .stepper-label {
  color: var(--color-text-primary);
}

/* ===== WORKSHOP PHASE ===== */
.workshop-phase {
  display: none;
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.workshop-phase.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.phase-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-accent-magenta), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phase-goal {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.phase-tasks {
  margin-bottom: var(--space-lg);
}

.phase-tasks h4 {
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-md);
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-base);
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.task-checkbox {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent-magenta);
  cursor: pointer;
}

.task-label {
  flex: 1;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  cursor: pointer;
}

.phase-output {
  background: rgba(255, 0, 110, 0.05);
  border-left: 3px solid var(--color-accent-magenta);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius-sm);
}

.phase-output h4 {
  color: var(--color-accent-magenta);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.phase-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ===== CALCULATOR ===== */
.calculator {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.calculator h4 {
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-md);
}

.calc-input-group {
  margin-bottom: var(--space-md);
}

.calc-input-group label {
  display: block;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.calc-input-group input {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
}

.calc-input-group input:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 255, 165, 0.1);
}

.calc-result {
  background: rgba(6, 255, 165, 0.1);
  border: 2px solid var(--color-accent-cyan);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  text-align: center;
  margin-top: var(--space-lg);
}

.calc-result-label {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.calc-result-value {
  color: var(--color-accent-cyan);
  font-size: var(--text-4xl);
  font-weight: 700;
  font-family: var(--font-heading);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.calc-section {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-section h5 {
  color: var(--color-accent-magenta);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-xs);
}

.resource-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.resource-tab-content.hidden {
  display: none;
}

.resource-tab-content {
  animation: fadeIn 0.4s ease;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copyright {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent-cyan);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .workshop-stepper {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .stepper-step {
    flex: 0 0 calc(20% - var(--space-md));
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --text-4xl: 1.875rem;
    --text-5xl: 2rem;
    --text-6xl: 2.5rem;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
    padding: var(--space-xl) var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .workshop-stepper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-lg);
  }

  .stepper-step {
    flex: 0 0 80px;
  }

  .stepper-label {
    display: none;
  }

  .workshop-phase {
    padding: var(--space-md);
  }

  .phase-navigation {
    flex-direction: column;
  }
}

/* Impressum Page */
.impressum-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
}

.impressum-content h1 {
  margin-bottom: var(--space-xl);
}

.impressum-section {
  margin-bottom: var(--space-xl);
}

.impressum-section h3 {
  color: var(--color-accent-magenta);
  margin-bottom: var(--space-md);
}

.impressum-section p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.placeholder {
  color: var(--color-accent-cyan);
  font-style: italic;
}

/* ===== COMPLETION MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--color-bg-tertiary);
  margin: auto;
  padding: 0;
  border: 2px solid var(--color-accent-magenta);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 50px rgba(255, 0, 110, 0.4);
  position: relative;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), transparent);
}

.modal-header h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--text-2xl);
}

.modal-body {
  padding: var(--space-xl);
  text-align: center;
}

.modal-body p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.modal-actions {
  margin-top: var(--space-xl);
}

.close-modal {
  color: var(--color-text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 1;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--color-text-primary);
  text-decoration: none;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== CONFETTI CANVAS ===== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}


/* ===== SUBSECTION TABS ===== */
.subsection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-sm);
}

.subsection-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.subsection-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
}

.subsection-tab-btn.active {
  background: var(--color-accent-magenta);
  border-color: var(--color-accent-magenta);
  color: white;
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.accordion-subsection.hidden {
  display: none !important;
}

.accordion-subsection {
  animation: fadeIn 0.3s ease;
}