/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1, .display-5 {
        font-size: 2rem;
    }
    
    h2, .h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        text-align: center;
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Reduce padding on mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Team member images */
    .card-img-top.rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer adjustments */
    #footer .container {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    h1, .display-5 {
        font-size: 2.25rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section for tablets */
    #hero {
        min-height: 90vh;
    }
    
    /* Card hover effects for tablets */
    .card:hover {
        transform: translateY(-1px);
    }
    
    /* Gallery spacing */
    #gallery .row {
        margin: 0 -0.75rem;
    }
    
    #gallery .col-md-4 {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled on desktop */
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced card effects */
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.08);
    }
    
    /* Team section layout */
    #team .row {
        justify-content: center;
    }
    
    /* Services grid optimization */
    #services .row.g-4 {
        row-gap: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero content spacing */
    #hero .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Enhanced typography */
    .lead {
        font-size: 1.25rem;
    }
    
    /* Gallery grid enhancements */
    #gallery .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger hero content */
    h1, .display-5 {
        font-size: 3rem;
    }
    
    h2, .h3 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and footer */
    #header,
    #footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        color: black !important;
        background: white !important;
    }
    
    /* Remove shadows and effects */
    .card,
    .shadow-sm {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 70vh;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove 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 hover transforms */
    .card:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark mode support */