/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-success:hover,
    .btn-outline-success:hover {
        transform: none;
    }
    
    /* Section padding */
    section {
        padding: 60px 0;
    }
    
    /* Team member images */
    .team img {
        width: 80px;
        height: 80px;
    }
    
    /* Timeline adjustments */
    .timeline .card::before {
        display: none;
    }
    
    /* Gallery grid */
    .gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 110px 0 70px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Section padding */
    section {
        padding: 70px 0;
    }
    
    /* Team images */
    .team img {
        width: 100px;
        height: 100px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    /* Cards layout */
    .services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team layout */
    .team .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline layout */
    .timeline .row {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Bootstrap container override removed */
    
    /* Hero section */
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 125px;
}
    
    /* Services grid */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Bootstrap container override removed */
    
    /* Hero section */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    /* Enhanced spacing */
    section {
        padding: 100px 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Adjust for tablet portrait */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 125px;
}
    
    /* Card layout */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Tablet Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    /* Bootstrap container override removed */
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 125px;
}
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .form-control,
    footer {
        display: none;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Avoid page breaks inside elements */
    .card,
    .timeline-item {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid #000;
    }
    
    .btn-outline-success {
        border-width: 2px;
    }
    
    .text-custom-muted {
        color: #333 !important;
    }
}

/* Dark Mode Support */

/* Bootstrap Container Overrides Removed - Using Default Bootstrap 5 Container */

/* Bootstrap Grid System Overrides Removed - Using Default Bootstrap 5 Grid */

/* Bootstrap Display Utility Overrides Removed - Using Default Bootstrap 5 Utilities */ 