/* Responsive Styles */

/* Extra Small (Mobile) */
@media (max-width: 480px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-primary);
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .about-content {
    flex-direction: column;
  }

  .magical-orb {
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-md);
  }

  .footer-links ul {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* Small (Tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --font-size-4xl: 3rem;
    --font-size-3xl: 2.5rem;
    --spacing-xl: 6rem;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-primary);
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .about-content {
    flex-direction: column;
  }

  .magical-orb {
    width: 250px;
    height: 250px;
    margin-bottom: var(--spacing-md);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium (Tablets & Small Laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-content {
    gap: var(--spacing-md);
  }

  .magical-orb {
    width: 250px;
    height: 250px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large (Desktops) */
@media (min-width: 1025px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Header responsive behavior */
@media (max-width: 768px) {
  header {
    padding: var(--spacing-sm);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}