/* Mobile First Responsive Design */

/* Base mobile styles (up to 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  h3 {
    font-size: var(--font-size-lg);
  }
  
  /* Section spacing */
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-sm {
    padding: 2rem 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Card spacing */
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Team images */
  .team-image {
    height: 200px;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Navigation adjustments */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  /* Footer adjustments */
  #footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-link {
    display: block;
    padding: 0.5rem 0;
  }
  
  /* Disable animations on mobile */
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Mobile-specific utilities */
  .mb-section {
    margin-bottom: 3rem;
  }
  
  .pb-section {
    padding-bottom: 3rem;
  }
  
  .pt-section {
    padding-top: 3rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .team-image {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .gallery-item {
    height: 240px;
  }
  
  .team-image {
    height: 240px;
  }
  
  /* Re-enable hover effects for tablets */
  .service-card:hover,
  .team-card:hover {
    transform: translateY(-3px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .section-padding {
    padding: var(--section-padding);
  }
  
  /* Enhanced spacing for desktop */
  .mb-section {
    margin-bottom: 6rem;
  }
  
  .pb-section {
    padding-bottom: 6rem;
  }
  
  .pt-section {
    padding-top: 6rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hero shapes for large screens */
  .shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .shape-2 {
    width: 300px;
    height: 300px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Additional spacing for ultra-wide screens */
  .section-padding {
    padding: 6rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card,
  .team-card,
  .review-card {
    border-width: 0.5px;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    overflow-x: hidden;
}
  
  .service-card,
  .team-card,
  .review-card {
    border: 1px solid #000;
    break-inside: avoid;
  }
}

/* Dark mode support (if user prefers dark) */

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove parallax effects */
  #hero::before {
    animation: none;
  }
  
  .hero-shape {
    animation: none;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
  .gallery-grid .col-md-4 {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Services grid responsive behavior */
@media (max-width: 767.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Team grid responsive behavior */
@media (max-width: 991.98px) {
  .team-grid .col-lg-3 {
    margin-bottom: 2rem;
  }
}

/* Reviews grid responsive behavior */
@media (max-width: 575.98px) {
  .reviews-grid .col-md-6 {
    margin-bottom: 1.5rem;
  }
} 

.hero-content {
    padding-top: 275px;
}