/* VR Safety Training Simulations - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
    --element-spacing: 1.5rem;
    --font-size-base: 0.9rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-xxl: 1.25rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .service-item,
  .price-item,
  .team-member,
  .review-item,
  .case-study-item,
  .career-item {
    margin-bottom: 1.82rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .process-item::before {
    width: 30px;
    height: 30px;
    font-size: 0.89rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --section-padding: 4rem 0;
    --element-spacing: 1.75rem;
  }
  
  .hero-content {
    padding: 2.5rem 0;
    padding-top: 250px;
}
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item img {
    height: 180px;
  }
  
  .team-member img {
    width: 130px;
    height: 130px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 4.5rem 0;
    --element-spacing: 2rem;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero-content {
    padding: 3rem 0;
    padding-top: 250px;
}
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item img {
    height: 200px;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  .navbar-brand {
    font-size: 1.23rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-item img {
    height: 220px;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-item img {
    height: 250px;
  }
  
  .hero-content {
    padding: 4rem 0;
    padding-top: 250px;
}
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  :root {
    --section-padding: 3rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero,
  .gallery,
  .contact {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
  
  .service-item,
  .price-item,
  .team-member,
  .review-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-size: 50% 50%;
  }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .service-item,
  .gallery-item img {
    transition: none;
  }
  
  .service-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Dark Mode Support */

/* Focus States for Accessibility */
@media (max-width: 767.98px) {
  .navbar-toggler:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Button Responsiveness */
@media (max-width: 575.98px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.94rem;
  }
}

/* Form Responsiveness */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 1rem; /* Prevents zoom on iOS */
  }
}

/* Navigation Responsiveness */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Card Spacing Adjustments */
@media (max-width: 767.98px) {
  .row [class*="col-"] {
    margin-bottom: 1.73rem;
  }
  
  .row [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Image Responsiveness */
@media (max-width: 575.98px) {
  .gallery-item img {
    height: 200px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-item img {
    height: 220px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-item img {
    height: 240px;
  }
}

/* Typography Adjustments */
@media (max-width: 575.98px) {
  .section-title h2 {
    font-size: 1.82rem;
  }
  
  .section-title h3 {
    font-size: 1.52rem;
  }
}

/* Spacing Adjustments */
@media (max-width: 767.98px) {
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  .mt-5 {
    margin-top: 2rem;
  }
  
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
} 