/* Mobile First Responsive Design */

/* Extra Small Devices (xs) - Default styles are mobile-first */

/* Small Devices (sm) - 576px and up */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .service-card .card-img-top {
    height: 220px;
  }
}

/* Medium Devices (md) - 768px and up */
@media (min-width: 768px) {
  :root {
    --section-padding: 100px 0;
  }
  
  .hero-section h1 {
    font-size: 3.2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .service-card .card-img-top {
    height: 240px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Large Devices (lg) - 992px and up */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .service-card .card-img-top {
    height: 260px;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .process-step {
    padding: 2.5rem;
  }
  
  .timeline-item {
    padding-left: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Extra Large Devices (xl) - 1200px and up */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .service-card .card-img-top {
    height: 280px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra Extra Large Devices (xxl) - 1400px and up */
@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 4.5rem;
  }
  
  .service-card .card-img-top {
    height: 300px;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 767.98px) {
  /* No scroll animations on mobile for performance */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 0.9rem;
  }
  
  /* Mobile navigation - use Bootstrap 5 default */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Mobile cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* Mobile form */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Mobile buttons */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile hero decorative elements */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Mobile timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 8px;
    height: 8px;
  }
  
  .timeline-item::after {
    left: 3px;
  }
  
  /* Mobile process steps */
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .process-step::before {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: -15px;
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile footer */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Mobile spacing */
  .section {
    padding: 60px 0;
  }
  
  .mb-4 {
    margin-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2.5rem !important;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card .card-img-top {
    height: 220px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look crisp on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Disable all Sal.js animations */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  /* Hide interactive elements */
  .navbar,
  .footer,
  .btn,
  .gallery-grid,
  #Blog {
    display: none !important;
  }
  
  /* Ensure proper page breaks */
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  /* Print-friendly colors */
  .bg-primary-green,
  .bg-secondary-blue,
  .bg-accent-orange {
    background: #fff !important;
    color: #000 !important;
  }
  
  /* Print typography */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 

.hero-content {
    padding-top: 175px;
}