/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.2rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  
  /* Ensure all content is visible regardless of animation state */
  *[data-sal],
  *[data-sal-duration],
  *[data-sal-delay],
  *[data-sal-easing],
  .sal-animate,
  .animate__animated {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Explicitly disable ALL transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  
  /* Reset animation properties to ensure content visibility */
  [class*="fade-"],
  [class*="slide-"],
  [class*="zoom-"],
  [class*="flip-"],
  [class*="rotate-"],
  .in-view,
  .animated,
  .sal-animate {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  
  /* Explicitly disable specific hover animations */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .social-link:hover,
  .gallery-image:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .gallery-image:hover {
    transform: none !important;
  }
  
  /* Disable scroll behavior */
  html {
    scroll-behavior: auto !important;
  }
  
  /* Disable background animations */
  .hero-section {
    background: var(--light-blue) !important; /* Use solid background instead of gradient */
  }
}

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-image,
  .blog-image,
  .team-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Dark mode support (system preference) */

/* Accessibility improvements */
@media (max-width: 575.98px) {
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
  }
  
  /* Better spacing for form elements */
  .form-control {
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Improved readability */
  p, .card-text {
    line-height: 1.7;
  }
}

/* Focus styles for keyboard navigation */
@media (any-hover: none) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Reduced motion preferences - Enhanced mobile support */
@media (prefers-reduced-motion: reduce) and (max-width: 767.98px) {
  .hero-section {
    background: var(--light-blue); /* Remove gradient on mobile with reduced motion */
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
} 

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