/* Responsive Styles */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ghost-1 {
    top: 10%;
    left: 5%;
  }
  
  .ghost-3 {
    bottom: 10%;
    left: 15%;
  }
}

/* Mobile Styles (less than 768px) */
@media screen and (max-width: 767px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  .main-nav {
    width: 100%;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
  }
  
  .main-nav.active ul {
    display: flex;
  }
  
  .main-nav li {
    margin: 10px 0;
  }
  
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content, .disclaimer-content {
    padding: 20px;
  }
  
  .about-content p, .disclaimer-content p {
    font-size: 1rem;
  }
  
  .candle {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
  
  .footer-nav li {
    margin: 0 10px 10px;
  }
  
  .floating-ghost {
    bottom: 20px;
    right: 20px;
    font-size: 30px;
  }
}

/* Small Mobile Styles (less than 480px) */
@media screen and (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .game-info h3 {
    font-size: 1rem;
  }
  
  .play-button {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
  
  .ghost {
    width: 40px;
    height: 60px;
  }
  
  .ghost::before {
    font-size: 20px;
    top: 5px;
    left: 10px;
  }
}

/* Height-based Media Queries */
@media screen and (max-height: 600px) {
  .hero {
    min-height: 400px;
  }
  
  .hero-content {
    padding: 20px 0;
  }
}

/* Landscape Orientation */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 400px;
  }
  
  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px 10px;
  }
}

/* High-resolution displays */
@media screen and (min-width: 1500px) {
  .container {
    max-width: 1400px;
  }
  
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
}