/* Mobile-first responsive design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* NO animations when scrolling in mobile resolution */
    [data-sal] {
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    body {
        padding-top: 70px;
    overflow-x: hidden;
}
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Team member images */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Reduce padding for mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Contact form adjustments */
    #contact .col-lg-4 {
        margin-top: 2rem;
    }
    
    /* Typography adjustments */
    .display-6 {
        font-size: 1.5rem;
    }
    
    .fs-4 {
        font-size: 1rem;
    }
    
    .fs-5 {
        font-size: 0.9rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery grid for mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 75px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.125rem;
    }
    
    .card-img-top {
        height: 175px;
    }
    
    .card-img-top.rounded-circle {
        width: 135px;
        height: 135px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding-top: 80px;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 185px;
    }
    
    .card-img-top.rounded-circle {
        width: 140px;
        height: 140px;
    }
    
    /* Adjust grid for tablets */
    .col-md-6.col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Specific mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Print styles */
@media print {
    body {
        padding-top: 0;
    }
    
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

/* Accessibility - respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support */

/* Reduced data mode - minimize animations and effects */
@media (prefers-reduced-data: reduce) {
    * {
        animation: none;
        transition: none;
    }
    
    .shadow,
    .shadow-sm {
        box-shadow: none;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

/* Touch device adjustments */
@media (any-pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
} 