/* VR Safety Training Template - Responsive Styles */

/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Hero Section */
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  /* No animations on mobile */
  .hero::before {
    animation: none !important;
  }
  
  /* Typography Adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
  
  /* Sections */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-sm {
    padding: 1.5rem 0;
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .contact-form {
    margin-bottom: 1.5rem;
  }
  
  .service-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Cards */
  .process-card {
    margin-bottom: 2rem;
  }
  
  .process-number {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  /* Price Plan Cards */
  .price-plan-card.featured {
    transform: none;
  }
  
  .price-plan-price {
    font-size: 1.75rem;
  }
  
  /* Form Elements */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn + .btn {
    margin-left: 0;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    width: 0.5rem;
    height: 0.5rem;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 1.5rem;
  }
  
  /* Disable Scroll Animations on Mobile */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Still no animations on small mobile */
  .hero::before {
    animation: none !important;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .service-card,
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Enable animations on tablets and up */
  .hero::before {
    animation: float 20s ease-in-out infinite;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 95vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .contact-form {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-DPI displays */
  .service-card,
  .team-card,
  .contact-form {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Print Media Queries */
@media print {
  .hero {
    min-height: auto;
    background: none !important;
  }
  
  .hero::before {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-card,
  .feature-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  .gallery-item {
    display: none;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    animation: none !important;
  }
  
  .service-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Dark Mode Support */

/* Container Adjustments for Better Spacing */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Form Responsiveness */
@media (max-width: 575.98px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  select.form-control {
    font-size: 16px;
  }
}

/* Navigation Responsiveness */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}

/* Grid System Adjustments */
@media (max-width: 767.98px) {
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Image Responsiveness */
@media (max-width: 575.98px) {
  img {
    border-radius: 6px;
  }
  
  .gallery-item {
    margin-bottom: 0.75rem;
  }
}

/* Typography Scaling */
@media (min-width: 1400px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  p {
    font-size: 1.125rem;
    line-height: 1.7;
  }
} 

.hero-content {
    padding-top: 125px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
