/* 
 * subRobots.com - Responsive Stylesheet
 * Ensures the website is responsive across different devices
 */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
  /* Base Typography */
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Header & Navigation */
  .site-header .container {
    flex-wrap: wrap;
  }
  
  .logo-container {
    flex: 1 1 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    flex: 1 0 100%;
    order: 4;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: var(--spacing-md) 0;
    background-color: rgba(0, 51, 102, 0.95);
    border-top: 1px solid var(--primary-yellow);
    margin-top: var(--spacing-sm);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: var(--spacing-xs) 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .social-links {
    flex: 1 1 50%;
    justify-content: flex-end;
    order: 2;
  }
  
  /* Hero Section */
  .hero-section {
    height: auto;
    min-height: 500px;
    padding-top: 140px;
    padding-bottom: var(--spacing-xl);
  }
  
  .hero-content {
    margin-top: 20px;
    padding-top: 30px;
  }
  
  .glitch-text {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* About Section */
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: var(--spacing-lg);
  }
  
  /* Downloads Section */
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact Section */
  .contact-content {
    flex-direction: column;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Base Typography */
  h1 {
    font-size: 3rem;
  }
  
  /* Downloads Section */
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact Section */
  .contact-content {
    flex-direction: column;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Downloads Section */
  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Animation Optimizations for Mobile */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .glitch-text {
    text-shadow: 
      0 0 5px var(--primary-blue),
      0 0 10px var(--neon-blue);
    animation: none;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-header,
  .hero-section,
  .contact-form,
  .footer-social,
  .btn {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
  
  .app-card,
  .download-card,
  .contact-info {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}