/* ===== Variables ===== */
:root {
  --pink: #ff2d7b;
  --pink-light: #ff6b9d;
  --cyan: #00e5ff;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --yellow: #fbbf24;
  --green: #10b981;
  --orange: #f97316;
  --dark: #0f0a1a;
  --dark-2: #1a0f2e;
  --text: #f0e6ff;
  --text-muted: #a89bb5;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(15, 10, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255, 45, 123, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0, 229, 255, 0.12) 0%, transparent 60%);
  animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 45, 123, 0.2), rgba(0, 229, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 20%, var(--pink) 40%, var(--cyan) 60%, var(--purple-light) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite alternate;
  margin-bottom: 20px;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ===== Floating Shapes ===== */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  animation: float 8s ease-in-out infinite alternate;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--pink);
  top: -40px;
  right: -60px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--cyan);
  bottom: 10%;
  left: -40px;
  animation-delay: -2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--yellow);
  top: 40%;
  right: 5%;
  animation-delay: -4s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  background: var(--purple);
  bottom: -60px;
  right: 30%;
  animation-delay: -6s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 45, 123, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255, 45, 123, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== Sections ===== */
section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* ===== Cards Section ===== */
.cards-section {
  max-width: 1100px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: height 0.4s;
}

.card-1::before { background: linear-gradient(90deg, var(--pink), var(--yellow)); }
.card-2::before { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.card-3::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.card:hover::before {
  height: 6px;
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.card-1 .card-list li::before { color: var(--pink); }
.card-2 .card-list li::before { color: var(--cyan); }
.card-3 .card-list li::before { color: var(--green); }

/* ===== Quiz ===== */
.quiz-section {
  background:
    radial-gradient(ellipse 60% 40% at 30% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 60%, rgba(255, 45, 123, 0.06) 0%, transparent 60%);
}

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  backdrop-filter: blur(8px);
}

.quiz-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-bottom: 24px;
  overflow: hidden;
}

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

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quiz-counter,
.quiz-score {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-score {
  color: var(--green);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  min-height: 3em;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  text-align: left;
  width: 100%;
}

.quiz-option:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.quiz-option .letter {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.quiz-option.correct {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.12);
}

.quiz-option.correct .letter {
  background: var(--green);
  color: #fff;
}

.quiz-option.wrong {
  border-color: var(--pink);
  background: rgba(255, 45, 123, 0.1);
}

.quiz-option.wrong .letter {
  background: var(--pink);
  color: #fff;
}

.quiz-option.disabled {
  cursor: default;
  opacity: 0.7;
}

.quiz-option.disabled.correct {
  opacity: 1;
}

.quiz-feedback {
  margin-top: -12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.quiz-feedback.wrong {
  background: rgba(255, 45, 123, 0.10);
  border: 1px solid rgba(255, 45, 123, 0.2);
  color: var(--pink-light);
}

.quiz-footer {
  display: flex;
  justify-content: flex-end;
}

/* ===== Quiz Result ===== */
.quiz-result {
  text-align: center;
  padding: 20px 0;
}

.quiz-result-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.quiz-result-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.quiz-result-score {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quiz-result .btn {
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  section {
    padding: 60px 16px;
  }

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

  .quiz-container {
    padding: 24px 20px;
  }

  .quiz-question {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}
