/* Responsive CSS for VR Safety Training Template */
/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  /* Remove animations on mobile as per requirements */
  .sal-animate {
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 2rem 0;
  }
  
  /* Cards responsive adjustments */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Team photo mobile */
  .team-photo {
    height: 200px;
    font-size: 3rem;
  }
  
  /* Service image mobile */
  .service-image {
    height: 150px;
    font-size: 2rem;
  }
  
  /* Blog image mobile */
  .blog-image {
    height: 150px;
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 90vh;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Better spacing for large screens */
  .section {
    padding: 5rem 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-section {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
}

/* Dark mode preferences */

/* Reduced motion preferences - Critical requirement */
@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;
  }
  
  /* Disable all hover effects */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure proper spacing between sections on all devices */
@media (min-width: 576px) {
  .row > * {
    margin-bottom: 1rem;
  }
}

/* Container responsive behavior */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
} 

.hero-content {
    padding-top: 200px;
}