/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  /* Section spacing */
  section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Price cards */
  .price-card .price {
    font-size: 2.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 1rem;
  }
  
  .process-step::before {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services and price plans */
  .service-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team layout */
  .team-row .col-md-6:nth-child(3) {
    display: none;
  }
  
  /* Services layout adjustments */
  .services-row .col-md-4:nth-child(n+4) {
    margin-top: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Enhanced hover effects for larger screens */
  .card:hover {
    transform: translateY(-8px);
  }
  
  /* Better spacing for desktop */
  .hero-section {
    padding: 0;
  }
  
  section {
    padding: 5rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Better typography for large screens */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .section-desc {
    font-size: 1.2rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for very large screens */
  section {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

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

/* High DPI displays */
@media (min-resolution: 2dppx) {
  /* Ensure crisp images and icons */
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  * {
    color: black !important;
    background: white !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .hero-section::before {
    display: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Disable animations in mobile for better performance */
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Dark mode support (respects system preference) */

/* Focus styles for better accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Ensure hamburger menu stays functional */
  .navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
  }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
  /* Disable hover effects on mobile */
  .card:hover,
  .btn:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Better touch targets */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
} 

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