:root {
  --bg: #09111f;
  --bg-soft: #0d1728;
  --panel: rgba(16, 24, 40, 0.88);
  --panel-strong: #111c31;
  --panel-hover: #162542;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(129, 140, 248, 0.35);
  --text: #edf2ff;
  --text-soft: #b7c3d9;
  --muted: #8ea0bf;
  --primary: #7c3aed;
  --primary-2: #4f46e5;
  --cyan: #22d3ee;
  --green: #22c55e;
  --warning: #f59e0b;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 14px 35px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 20%),
    linear-gradient(180deg, #07101d 0%, #0a1220 38%, #0b1424 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.45);
  top: 50px;
  left: -40px;
}

.glow-2 {
  width: 280px;
  height: 280px;
  background: rgba(34, 211, 238, 0.28);
  top: 160px;
  right: -60px;
}

.hero,
.content-shell,
.page-footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 56px 0 28px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #dbe7ff;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.14);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: 1.07rem;
  line-height: 1.8;
}

.hero-mini-stats {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mini-stat {
  min-width: 150px;
  background: rgba(12, 21, 38, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
}

.mini-stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.mini-stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-shell {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 10px 0 50px;
}

.category-section {
  margin-bottom: 38px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 33, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.section-heading {
  margin-bottom: 20px;
}

.section-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #96f5ff;
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.75;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(19, 31, 54, 0.96), rgba(13, 22, 39, 0.98));
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0.95;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(22, 37, 66, 0.98), rgba(13, 22, 39, 1));
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-icon {
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.24);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}

.card-type {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.activity-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.activity-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #dff7ff;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.card-link {
  color: #d8dfff;
  font-weight: 700;
  font-size: 0.95rem;
}

.coming-soon {
  opacity: 0.88;
}

.coming-soon .card-link {
  color: #fcd34d;
}

.page-footer {
  text-align: center;
  padding: 10px 20px 34px;
}

.page-footer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 36px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .category-section {
    padding: 20px;
    border-radius: 22px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: 220px;
    border-radius: 20px;
  }

  .mini-stat {
    min-width: 120px;
  }
}