/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.90rem;
    }
    
    h3 {
        font-size: 1.32rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.42rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 1.00rem;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .rounded-circle[style*="width: 60px"] {
        width: 50px;
        height: 50px;
    }
    
    .rounded-circle[style*="width: 80px"] {
        width: 60px;
        height: 60px;
    }
    
    /* Gallery */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Contact Form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2rem;
    }
    
    /* Section Padding */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        [data-sal] {
            animation: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2.33rem;
    }
    
    h2 {
        font-size: 1.93rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2.60rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        min-height: 80vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        padding: 0.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1200px;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        padding: 0.5rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    /* Reduce vertical spacing */
    .py-5 {
        padding-top: 1.86rem;
        padding-bottom: 1.76rem;
    }
}

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

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    .btn,
    #footer {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    /* Increase contrast for accessibility */
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
}

/* Dark Mode Support */

/* Focus States for Keyboard Navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
} 