/* Mobile First Responsive Design */

/* 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;
  }
  
  /* Section padding adjustments */
  section {
    padding: 3rem 0;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photo adjustments */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Footer mobile */
  #footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Disable animations on mobile for better performance */
  .service-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
  
  /* FAQ cards mobile */
  .faq-card {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Still disable animations on small devices */
  .service-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography fine-tuning for tablets */
  h1 {
    font-size: 2.25rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  /* Section spacing for tablets */
  section {
    padding: 4.5rem 0;
  }
  
  /* Service cards for tablets */
  .service-card {
    padding: 1.8rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  /* Contact form tablets */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Gallery for tablets */
  .gallery-item img {
    height: 225px;
  }
  
  /* Team photos for tablets */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Reduced animations on tablets */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Fine-tune spacing for large screens */
  .service-card {
    padding: 1.9rem;
  }
  
  .contact-form {
    padding: 2.75rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full animations and effects for large screens */
  .container-xl {
    max-width: 1320px;
  }
  
  /* Enhanced hover effects for desktop */
  .service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  }
  
  .gallery-item img {
    height: 260px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 991.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-shape {
    display: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon {
    /* Ensure crisp icons on retina displays */
    background-size: contain;
  }
  
  .team-photo {
    /* Better image quality on high DPI */
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  .hero-shape,
  .navbar,
  #footer {
    display: none;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Ensure all animations are disabled for users who prefer reduced motion */
  .service-card,
  .gallery-item,
  .btn-primary,
  .btn-outline-primary,
  .faq-card {
    transition: none !important;
  }
  
  .service-card:hover,
  .gallery-item:hover,
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none !important;
  }
}

/* Focus states for keyboard navigation */
@media (min-width: 992px) {
  .service-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    outline: 3px solid var(--primary-1);
    outline-offset: 2px;
  }
  
  .faq-card:focus-within {
    border-color: var(--primary-1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: 2px solid var(--primary-1);
    outline-offset: 1px;
  }
}

/* Container max-widths for better content control */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
}

/* Ensure proper spacing in grid layouts */
.row > * {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .row > * {
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .row > * {
    margin-bottom: 0;
  }
} 

body {
    overflow-x: hidden;
}