/* Responsive Design - Mobile First */

/* Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    padding-top: 175px;
}
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  /* Cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .team-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Typography */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
  
  /* Disable animations on mobile per rules */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  .custom-card:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
    padding-top: 175px;
}
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

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

/* High density displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo {
    border-width: 2px;
  }
  
  .feature-icon {
    border: 1px solid rgba(85, 85, 239, 0.10);
  }
}

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

/* Dark mode preferences */

/* Focus and accessibility improvements */
@media (any-hover: hover) {
  .custom-card:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary-custom:hover {
    transform: translateY(-2px);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .custom-card,
  .btn-primary-custom,
  .service-card,
  .team-card {
    transition: none !important;
  }
  
  .custom-card:hover,
  .btn-primary-custom:hover {
    transform: none !important;
  }
}

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