/* Home Page Styles - Huggy Mix Sprunki Music Box Theme */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-secondary);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../image/hiro2.jpg") center/cover;
  opacity: 0.3;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.8) 0%,
    rgba(255, 107, 53, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #000000 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3), 0 0 10px rgba(255, 255, 255, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-hr {
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border: none;
  margin: 2rem auto;
  border-radius: 2px;
}

.hero-btn {
  font-size: 1.2rem;
  padding: 18px 40px;
  animation: pulse 2s ease-in-out infinite;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--dark-bg);
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  animation: glow 3s ease-in-out infinite alternate;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 65, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Game Section */
.game-section {
  padding: 5rem 0;
  background: var(--darker-bg);
  position: relative;
}

.game-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--border-color);
  position: relative;
}

.game-wrapper::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 15px;
  z-index: -1;
  animation: glow 3s ease-in-out infinite alternate;
}

.game-iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: none;
  border-radius: 12px;
}

/* How to Play Section */
.how-to-play {
  padding: 5rem 0;
  background: var(--dark-bg);
}

.how-to-play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.how-to-item {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.how-to-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
  border-color: var(--secondary-color);
}

.how-to-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.how-to-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.how-to-list {
  list-style: none;
  padding: 0;
}

.how-to-list li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.how-to-list li::before {
  content: "🎵";
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-size: 1.2rem;
}

/* Music Modes Section */
.music-modes {
  padding: 5rem 0;
  background: var(--darker-bg);
}

.music-modes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.music-modes-text {
  position: relative;
}

.music-modes-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.music-modes-features {
  display: grid;
  gap: 1rem;
}

.music-modes-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.music-modes-feature:hover {
  transform: translateX(10px);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.music-modes-feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.music-modes-feature-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

.music-modes-visual {
  position: relative;
}

.music-modes-placeholder {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.music-modes-placeholder:hover {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.music-modes-icon {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.music-modes-placeholder p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Reviews Section */
.reviews {
  padding: 5rem 0;
  background: var(--dark-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
  border-color: var(--secondary-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.review-info {
  flex: 1;
}

.review-name {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.review-rating {
  color: var(--warning-color);
  font-size: 1rem;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Rhythm Challenge Section */
.rhythm-challenge {
  padding: 5rem 0;
  background: var(--darker-bg);
  position: relative;
}

.rhythm-challenge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  animation: glow 3s ease-in-out infinite alternate;
}

.rhythm-challenge-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.rhythm-challenge-text h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.rhythm-challenge-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.rhythm-features {
  display: grid;
  gap: 1rem;
}

.rhythm-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.rhythm-feature:hover {
  transform: translateX(10px);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.rhythm-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rhythm-challenge-visual {
  position: relative;
}

.rhythm-challenge-visual img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.rhythm-challenge-visual:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .music-modes-content,
  .rhythm-challenge-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid,
  .how-to-play-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .game-iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .feature-card,
  .how-to-item,
  .review-card {
    padding: 1.5rem;
  }

  .game-iframe {
    height: 250px;
  }
}

/* Animations */
.feature-card,
.how-to-item,
.review-card {
  animation: slideIn 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.how-to-item:nth-child(1) {
  animation-delay: 0.1s;
}
.how-to-item:nth-child(2) {
  animation-delay: 0.2s;
}
.how-to-item:nth-child(3) {
  animation-delay: 0.3s;
}

.review-card:nth-child(1) {
  animation-delay: 0.1s;
}
.review-card:nth-child(2) {
  animation-delay: 0.2s;
}
.review-card:nth-child(3) {
  animation-delay: 0.3s;
}
.review-card:nth-child(4) {
  animation-delay: 0.4s;
}
.review-card:nth-child(5) {
  animation-delay: 0.5s;
}
.review-card:nth-child(6) {
  animation-delay: 0.6s;
}
