/* Mobile-First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    h3, .h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 2rem 0;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero .container {
        padding: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    /* Footer adjustments */
    #footer .col-md-6,
    #footer .col-lg-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Team member images */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form adjustments */
    .row.g-3 > .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on mobile as per requirements */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Card hover effects disabled */
    .card:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    /* Team images */
    .card-img-top.rounded-circle {
        width: 140px;
        height: 140px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Section padding */
    section {
        padding: 4rem 0;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Card grid adjustments */
    .col-md-6.col-lg-4 .card {
        height: 100%;
    }
    
    /* Team images */
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full section padding */
    section {
        padding: 5rem 0;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography full size */
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Full typography scale */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2.25rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 6rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    #footer,
    .btn,
    form {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
    
    /* Section spacing for print */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Card styles for print */
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    /* Remove background colors */
    .bg-light,
    .bg-primary {
        background: white !important;
    }
}

/* Accessibility - Reduced motion */
@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;
    }
    
    /* Disable hover effects for reduced motion */
    .card:hover {
        transform: none !important;
    }
    
    .card:hover .card-img-top {
        transform: none !important;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support (respects system preference) */

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid var(--gray-400) !important;
    }
    
    .btn {
        border-width: 3px !important;
    }
    
    .form-control {
        border-width: 3px !important;
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card .card-body {
            padding: 1rem 0.5rem;
        }
    }
} 