/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography - smaller sizes for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  /* No animations on mobile */
  .hero-section::before {
    display: none;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Cards spacing */
  .feature-card,
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form */
  .form-control {
    padding: 0.65rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem 0;
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-card {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Better spacing for larger screens */
  .section-desc {
    max-width: 700px;
  }
  
  .container {
    max-width: 1140px;
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 2px solid #000;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid #222222;
  }
  
  .btn-primary {
    border: 3px solid #000;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-section::before {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
  }
  
  body {
    color: #000;
    background: white;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
} 

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