/* 3D-Printing Workshops Template - Responsive Styles */
/* Mobile-First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  .hero-decoration {
    animation: none !important;
  }
  
  .service-card {
    transition: none !important;
  }
  
  .gallery-item img {
    transition: none !important;
  }
  
  .sal-animate {
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .navbar-brand {
    font-size: 18px !important;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Service cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Section padding */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on small devices */
  .hero-decoration {
    animation: none !important;
  }
  
  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-section {
    min-height: 95vh;
  }
  
  .service-card {
    padding: 2rem;
  }
}

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

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

/* Print styles */
@media print {
  .hero-decoration,
  .gallery-item:hover img {
    animation: none !important;
    transition: none !important;
  }
  
  footer {
    background: white !important;
    color: black !important;
  }
  
  .service-card {
    box-shadow: none !important;
    border: 1px solid #d4d4d4;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid var(--primary-blue-dark);
  }
  
  .faq-card {
    border: 2px solid var(--neutral-gray-dark);
  }
  
  .review-card {
    border: 2px solid var(--success-green-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-decoration {
    animation: none !important;
  }
  
  .service-card:hover {
    transform: none !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Focus management for accessibility */
@media (max-width: 991.98px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 100, 211, 0.50);
  }
  
  .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(95, 154, 235, 0.25);
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(82, 142, 220, 0.50);
  }
}

/* Container adjustments for better mobile experience */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Navbar adjustments for mobile */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-collapse {
    background: var(--primary-blue-dark);
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1rem;
  }
}

/* Form improvements for mobile */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem 0.75rem;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 16px;
  }
  
  label {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
}

/* Grid system adjustments */
@media (max-width: 575.98px) {
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}