/* Responsive Styles */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .art-piece {
    height: 300px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    margin-top: var(--space-lg);
  }
}

/* Mobile Styles (< 768px) */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  section {
    padding: var(--space-xl) 0;
  }
  
  /* Header Mobile Navigation */
  header {
    padding: var(--space-sm);
  }
  
  .menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu li {
    margin: var(--space-md) 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
  }
  
  /* Banner */
  .banner {
    height: 90vh;
  }
  
  .banner h1 {
    font-size: 2.5rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  /* Features */
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  /* Games */
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Small Mobile Styles (< 480px) */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .banner {
    height: 85vh;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .menu {
    width: 100%;
  }
}

/* Height-based Media Queries */
@media screen and (max-height: 600px) {
  .banner {
    height: auto;
    min-height: 100vh;
    padding: 100px 0;
  }
}

/* High Resolution Screens */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  h1 {
    font-size: 5rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff3d89;
    --secondary: #00a4a7;
    --accent: #ff7b00;
    --contrast: #8c52ff;
  }
}

/* Reduce Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .abstract-shape, .art-piece, .btn-primary:before, .btn-play:before {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  header, .banner, .features, .contact, footer {
    padding: 10px 0;
  }
  
  .container {
    max-width: 100%;
  }
  
  .abstract-shape, .logo-shape, .logo-shape-2, .menu-toggle, .btn-primary, .cursor {
    display: none;
  }
  
  .about-content, .feature-grid, .game-grid, .contact-content {
    display: block;
  }
  
  .feature-item, .game-card, .info-item {
    margin-bottom: 20px;
  }
  
  .art-piece {
    height: 200px;
    border: 1px solid #000;
  }
}