/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-shapes {
    display: none;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .core-info-item,
  .feature-item {
    padding: 1.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .swiper {
    margin: 0 -15px;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 85vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 95vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .price-card.featured {
    transform: scale(1.03);
  }
  
  section {
    padding: 6rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .hero-shapes {
    display: block;
  }
  
  section {
    padding: var(--section-padding);
  }
}

/* Accessibility and Performance Optimizations */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-shape {
    animation: none;
  }
  
  .fade-in {
    transition: none;
  }
  
  .swiper {
    --swiper-navigation-sides-offset: 10px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature {
    border: 2px solid var(--primary-color);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #ffffff;
    --text-light: #b3b3b3;
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --medium-gray: #404040;
    --dark-gray: #666666;
  }
  
  body {
    background-color: var(--white);
    color: var(--text-dark);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .contact-form,
  .blog-card,
  .review-card {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .navbar,
  .hero-shapes,
  .swiper-pagination,
  .swiper-navigation {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-member {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .about-feature:hover {
    transform: none;
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .nav-link,
  .btn,
  .form-control {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
} 