/* Home Page — Default Layout */

/* ─── Structure ─────────────────────────────── */

.home-page {
  display: flex;
  flex-direction: column;
}

.home-hero {
  background: rgb(var(--c-surface-muted));
}

.home-section {
  padding: 4rem 0;
  border-top: 1px solid rgb(var(--c-edge-subtle));
}

.home-section-alt {
  background: rgb(var(--c-surface-muted));
}

/* ─── Section Fade-In Animation ─────────────── */

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

.home-section {
  animation: fadeInUp 0.6s ease-out both;
}

.home-section:nth-child(2) { animation-delay: 0.05s; }
.home-section:nth-child(3) { animation-delay: 0.1s; }
.home-section:nth-child(4) { animation-delay: 0.15s; }
.home-section:nth-child(5) { animation-delay: 0.2s; }
.home-section:nth-child(6) { animation-delay: 0.25s; }

/* ─── Game Card Hover ───────────────────────── */
/* Targets cards inside the games and projects slots */

.home-games a,
.home-projects a {
  transition: all 0.2s ease;
}

.home-games a:hover,
.home-projects a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* ─── Feature Icon Pulse ────────────────────── */

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.home-features .home-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

.home-features div:nth-child(1) .home-icon { animation-delay: 0s; }
.home-features div:nth-child(2) .home-icon { animation-delay: 1s; }
.home-features div:nth-child(3) .home-icon { animation-delay: 2s; }

/* ─── Hero Dot Grid Background ──────────────── */
/* The dot grid div is inside the hero slot content — theme targets it by class */

.home-hero {
  position: relative;
  overflow: hidden;
}

/* ─── Community Cards ───────────────────────── */

.home-community .rounded-lg {
  transition: border-color 0.2s ease;
}

.home-community .rounded-lg:hover {
  border-color: rgb(var(--c-accent));
}
