/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero .container {
    padding: 0 1rem;
  }
  
  /* NO ANIMATIONS ON MOBILE - as per requirements */
  #hero::before {
    display: none;
  }
  
  /* Section padding reduction */
  section {
    padding: 2.5rem 0;
  }
  
  /* Cards stack properly */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Services mobile layout */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team cards mobile */
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps mobile */
  .process-step {
    padding-left: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .process-step::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
  
  /* Form improvements */
  .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.875rem 1rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog grid mobile */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  #footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  /* NO ANIMATIONS ON MOBILE - as per requirements */
  #hero::before {
    display: none;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 90vh;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #hero {
    min-height: 95vh;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  #blog_grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Remove floating animation */
  #hero::before {
    animation: none !important;
  }
  
  /* Remove hover transforms */
  .card:hover,
  .blog-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #800080;
    --accent-color: #008000;
    --gray-800: #000000;
    --gray-100: #ffffff;
  }
  
  .card {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    border: 2px solid var(--gray-800);
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements */
  #header,
  #footer,
  .btn,
  .navbar {
    display: none !important;
  }
  
  /* Ensure good contrast */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  /* Touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

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

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Specific mobile menu fixes - using standard Bootstrap 5 only */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

body {
    overflow-x: hidden;
}