/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.79rem;
    }
    
    h2 {
        font-size: 1.62rem;
    }
    
    h3, h4 {
        font-size: 1.36rem;
    }
    
    h5 {
        font-size: 1.24rem;
    }
    
    h6 {
        font-size: 1rem;
    }
    
    p {
        font-size: 1.03rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Team images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 1.67rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 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.88rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 110px;
        height: 110px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Desktop specific styles */
    .container {
        max-width: 1140px;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 13px 35px rgba(0,0,0,0.2);
    }
    
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 2.54rem;
    }
    
    h2 {
        font-size: 2.37rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1.57rem;
        padding-bottom: 1.62rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Print styles */
@media print {
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* Accessibility - Focus states */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Dark mode support (future-proofing) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 7px 15px rgba(0,0,0,0.1);
    }
    
    .btn {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

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

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Team section responsive grid */
@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
} 