:root {
  --bg: #0b1020;
  --bg2: #141b34;
  --card: #171f3c;
  --text: #f8fafc;
  --muted: #cbd5e1;

  --orange: #ff8c42;
  --yellow: #ffd166;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --green: #10b981;
  --pink: #ec4899;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Devanagari", sans-serif;
  background:
    radial-gradient(circle at top right, #312e81 0%, transparent 30%),
    radial-gradient(circle at bottom left, #7c2d12 0%, transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
}

/* HERO */

.hero {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "🕉️";
  position: absolute;
  font-size: 12rem;
  opacity: 0.05;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.1);

  margin-bottom: 20px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffd166;
  letter-spacing: 1px;

  text-shadow:
    0 0 10px rgba(255, 209, 102, 0.3),
    0 0 25px rgba(255, 140, 66, 0.15);
}

.hero p {
  max-width: 900px;
  margin: auto;
  font-size: 1.15rem;
  color: var(--muted);
}

/* COMMON */

.section {
  max-width: 1300px;
  margin: auto;
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
}

.section-title span {
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.25);
}

/* FEATURED */

.featured {
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 40px;
  border-radius: 30px;
  text-align: center;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.20),
    0 0 25px rgba(255, 209, 102, 0.05);
}

.sanskrit {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2;
  color: #ffd166;
  margin-bottom: 25px;
}

.meaning {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 900px;
  margin: auto;
}

/* CATEGORY */

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

.card {
  padding: 30px;
  border-radius: 24px;
  text-decoration: none;
  color: white;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: 0.35s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.card p {
  color: rgba(255, 255, 255, 0.85);
}

.card1 {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.card2 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.card3 {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.card4 {
  background: linear-gradient(135deg, #10b981, #047857);
}

.card5 {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.card6 {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

/* POPULAR */

.popular {
  display: grid;
  gap: 20px;
}

.popular a {
  display: block;
  padding: 22px 25px;
  border-radius: 20px;
  text-decoration: none;
  color: white;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: 0.3s;
}

.popular a:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.09);
}

/* QUOTE */

.quote-section {
  padding: 100px 20px;
  text-align: center;
}

.quote-box {
  max-width: 900px;
  margin: auto;
  padding: 40px;

  background: rgba(255, 255, 255, 0.05);

  border-radius: 30px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.quote-box p {
  font-size: 1.5rem;
  color: #ffd166;
}

/* MOBILE */

@media (max-width: 768px) {
  .hero {
    padding: 80px 15px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .sanskrit {
    font-size: 1.3rem;
  }

  .featured {
    padding: 25px;
  }

  .quote-box p {
    font-size: 1.1rem;
  }
}
