/* Mobile-First Responsive Design */
/* Following Bootstrap 5 breakpoints: xs: <576px, sm: ≥576px, md: ≥768px, lg: ≥992px, xl: ≥1200px, xxl: ≥1400px */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  /* No animations on mobile as per requirements */
  .animate-on-scroll {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Cards spacing */
  .card-body {
    padding: 1.5rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Blog grid mobile */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  /* Contact info mobile */
  .contact-info {
    padding: 1.5rem;
    margin-top: 1rem;
  }
  
  /* Form spacing */
  .form-control {
    margin-bottom: 1rem;
  }
  
  /* Button sizing */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Navbar brand size */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Section title spacing */
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Footer spacing */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Team image sizing */
  .team-img {
    width: 60px;
    height: 60px;
  }
  
  /* Price text sizing */
  .price {
    font-size: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #blog_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn {
    width: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    text-align: left;
  }
  
  /* Restore animations on tablet and up */
  .animate-on-scroll {
    transition: all 0.6s ease;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero decorative elements */
  .hero-section::before,
  .hero-section::after {
    display: block;
  }
  
  /* Enhanced hover effects on desktop */
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-study-card:hover,
  .process-card:hover,
  .timeline-card:hover,
  .career-card:hover,
  .core-info-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .section {
    padding: 5rem 0;
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Dark mode support */

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .form-control {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

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

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