/* ========================================
   PCPS INTERACTIVE WEBSITE - MAIN STYLES
   Theme: Deep Red & White Premium
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #C1121F;
  --primary-dark: #9b0d18;
  --primary-light: #e63946;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #e9ecef;
  --dark: #1a1a2e;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow: 0 8px 32px rgba(193, 18, 31, 0.15);
  --shadow-lg: 0 20px 60px rgba(193, 18, 31, 0.2);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ========================================
   NAVBAR
======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(193, 18, 31, 0.1);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(193, 18, 31, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(193, 18, 31, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.standalone-page-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(193, 18, 31, 0.25);
  margin: 0 auto 1rem;
  display: block;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(193, 18, 31, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 18, 31, 0.4) !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 5px;
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 50%, #ffe0e3 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatBlob 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-light), transparent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff6b81, transparent);
  bottom: -100px;
  left: -50px;
  animation-delay: 3s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: 50%;
  left: 40%;
  animation-delay: 6s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating particles */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.2;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193, 18, 31, 0.1);
  border: 1px solid rgba(193, 18, 31, 0.2);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(193, 18, 31, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(193, 18, 31, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(193, 18, 31, 0.3);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ========================================
   SECTIONS
======================================== */
.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ========================================
   CARDS
======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(193, 18, 31, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(193, 18, 31, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.card-icon.red { background: rgba(193, 18, 31, 0.1); }
.card-icon.blue { background: rgba(13, 110, 253, 0.1); }
.card-icon.green { background: rgba(25, 135, 84, 0.1); }
.card-icon.orange { background: rgba(253, 126, 20, 0.1); }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(193, 18, 31, 0.08);
  color: var(--primary);
}

/* Challenge Cards (index.html) */
.challenge-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(193, 18, 31, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.challenge-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.challenge-card-header {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  position: relative;
  overflow: hidden;
}

.challenge-card-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: -60px;
  right: -60px;
}

.challenge-card-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.challenge-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.challenge-card-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.challenge-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.challenge-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.challenge-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray);
}

.challenge-features li:last-child { border: none; }

.challenge-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================
   HOW IT WORKS SECTION
======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(193, 18, 31, 0.35);
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

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

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
}

.cta-section .section-title { color: white; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.8); }

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.85rem; }
.footer-bottom a { color: var(--primary-light); text-decoration: none; }

/* ========================================
   QUIZ / CHALLENGE PAGES
======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.page-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-section {
  background: white;
  padding: 2rem;
  border-bottom: 1px solid var(--gray);
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.progress-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.progress-text span {
  color: var(--primary);
  font-weight: 700;
}

.progress-score {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.progress-bar-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gray);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Container */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.question-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(193, 18, 31, 0.08);
  animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.question-number {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 10px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.question-section-badge {
  background: rgba(193, 18, 31, 0.08);
  color: var(--primary);
  border-radius: 10px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.question-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.code-block::before {
  content: 'Python';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Poppins', sans-serif;
}

.code-block .kw { color: #cba6f7; }
.code-block .fn { color: #89b4fa; }
.code-block .str { color: #a6e3a1; }
.code-block .num { color: #fab387; }
.code-block .op { color: #89dceb; }
.code-block .cm { color: #585b70; font-style: italic; }

/* Options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-btn {
  background: var(--light-gray);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(193, 18, 31, 0.05);
  transform: translateY(-2px);
}

.option-btn.selected {
  border-color: var(--primary);
  background: rgba(193, 18, 31, 0.08);
  color: var(--primary);
}

.option-btn.correct {
  border-color: #198754;
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  animation: correctPulse 0.5s ease;
}

.option-btn.wrong {
  border-color: var(--primary);
  background: rgba(193, 18, 31, 0.08);
  color: var(--primary);
  animation: wrongShake 0.4s ease;
}

.option-btn.reveal-correct {
  border-color: #198754;
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.option-key {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(193, 18, 31, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-btn.correct .option-key { background: rgba(25, 135, 84, 0.15); color: #198754; }
.option-btn.wrong .option-key { background: rgba(193, 18, 31, 0.15); color: var(--primary); }
.option-btn.reveal-correct .option-key { background: rgba(25, 135, 84, 0.15); color: #198754; }

/* Explanation Box */
.explanation-box {
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.05), rgba(193, 18, 31, 0.02));
  border: 1px solid rgba(193, 18, 31, 0.15);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.explanation-box.show { display: block; }

.explanation-box .title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explanation-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quiz Actions */
.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(193, 18, 31, 0.12);
  padding: 0.9rem 0 0.15rem;
}

.quiz-actions .btn {
  padding: 11px 20px;
}

/* Result Page */
.result-section {
  display: none;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.result-section.show { display: block; }

.result-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 50px rgba(193, 18, 31, 0.4);
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-score-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.result-score-total {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.result-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.result-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.result-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.result-badge {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 120px;
}

.result-badge-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.result-badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray);
}

.section-divider-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  background: rgba(193, 18, 31, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ========================================
   BBM SPECIFIC STYLES
======================================== */
.graph-selector-wrap {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.graph-selector-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}

.graph-selector {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.graph-selector:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.1);
}

.chart-area {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--gray);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-area canvas {
  max-height: 260px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ========================================
   CONFETTI (Result page)
======================================== */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -10px;
  animation: confettiFall linear forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

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

  .question-card { padding: 1.5rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .result-badges { flex-direction: column; align-items: center; }

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

  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .quiz-container { padding: 2rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
