/* Responsive Styles */

/* Tablets and below */
@media (max-width: 1024px) {
  html {
    font-size: 95%;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Medium tablets */
@media (max-width: 768px) {
  html {
    font-size: 90%;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: var(--spacing-md) 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 1000;
  }
  
  .logo img {
    height: 35px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin: var(--spacing-md) 0;
  }
}

/* Small tablets and large phones */
@media (max-width: 640px) {
  html {
    font-size: 85%;
  }
  
  .container {
    width: 95%;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .footer-links a {
    display: block;
    margin: var(--spacing-sm) 0;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  html {
    font-size: 80%;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: var(--spacing-md);
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .game-image {
    height: 180px;
  }
  
  .footer-logo {
    flex-direction: column;
  }
  
  .footer-logo img {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* Very small mobile phones */
@media (max-width: 360px) {
  html {
    font-size: 75%;
  }
  
  .container {
    width: 92%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .game-image {
    height: 160px;
  }
}

/* Handle landscape orientation on small screens */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0;
  }
  
  .nav-links {
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* High resolution screens */
@media (min-width: 1600px) {
  html {
    font-size: 110%;
  }
  
  .container {
    max-width: 1400px;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}