/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Remove all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.95rem;
    }
    
    h2 {
        font-size: 1.60rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .navbar-brand {
        font-size: 1.44rem !important;
    }
    
    /* Hero section */
    #hero {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    /* Remove decorative elements on mobile */
    #hero::before,
    #hero::after {
        display: none;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Button sizing */
    .btn-primary {
        padding: 10px 20px;
        font-size: 1.00rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Navbar spacing */
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Form controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.71rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.32rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    /* Tablet-specific card heights */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
}

/* Large devices (desktops, 995px and up) */
@media (min-width: 997px) {
    /* Full animations enabled on desktop */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.93rem;
    }
    
    h2 {
        font-size: 2.34rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .card:hover {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #ededed;
        box-shadow: none;
    }
}

/* Accessibility improvements */
@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;
    }
}

/* Dark mode support */

/* Reduced contrast mode */
@media (prefers-contrast: less) {
    .card {
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .card {
        border: 2px solid var(--dark-green);
    }
    
    .btn-primary {
        border-width: 2px;
    }
}

/* Focus improvements for better accessibility */
@media (any-hover: none) {
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
} 