/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Spacing adjustments */
  .section {
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 125px;
}
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  /* Team images */
  .team-image {
    height: 200px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Hero shapes - hide on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Footer */
  #footer {
    text-align: center;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .feature-card {
    min-height: 300px;
  }
  
  .price-card {
    min-height: 400px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card,
  .feature-card {
    min-height: 350px;
  }
  
  .price-card {
    min-height: 450px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: var(--container-max-width);
  }
}

/* Height-based adjustments */
@media (max-height: 600px) {
  #hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-purple: #4A0E4E;
    --primary-teal: #00695C;
    --primary-coral: #B71C1C;
    --primary-mint: #1B5E20;
    --primary-peach: #E65100;
    --dark-blue: #000000;
    --medium-gray: #424242;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card,
  .coreinfo-card,
  .career-card {
    border: 2px solid var(--dark-blue);
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-shape {
    display: none;
  }
}

/* Dark mode support (if needed) */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Focus improvements for accessibility */
@media (any-pointer: coarse) {
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
  }
}

/* Container improvements for very large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .service-card,
  .feature-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn-primary-custom,
  .btn-outline-primary-custom {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
} 

body {
    overflow-x: hidden;
}