/* ============================================
   CODE NEST STUDIOS - UNIFIED DARK THEME
   Grade 9 Math Practice
   ============================================ */

:root {
  /* === Core Palette (Dark Mode - Matching Main Site) === */
  --bg-body: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #06b6d4;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border: rgba(148, 163, 184, 0.1);

  /* === Typography === */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* === Base Styles === */
body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: white;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* === Utilities === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section {
  padding: 80px 0;
}

.bg-secondary {
  background: rgba(0, 0, 0, 0.2);
}

.bg-tertiary {
  background: rgba(255, 255, 255, 0.02);
}

.gradient-text {
  background: linear-gradient(to right, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mb-lg {
  margin-bottom: 2rem;
}

.mb-xl {
  margin-bottom: 4rem;
}

.mt-xl {
  margin-top: 4rem;
}

/* === Grid System === */
.grid {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

/* === Subject Cards (Specific Adjustments) === */
.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.subject-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }
}