/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-5 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    h3, .h5 {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    p, .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding-top: 100px;
        text-align: center;
    }
    
    #hero .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team member images */
    #team img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    /* Process section mobile */
    #process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Padding adjustments */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* NO ANIMATIONS on mobile - as per requirements */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }
    
    #team img:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-5 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 120px;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 190px;
    }
    
    /* Team images */
    #team img {
        width: 130px;
        height: 130px;
    }
    
    /* Process circles */
    #process .rounded-circle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography fine-tuning */
    h1, .display-5 {
        font-size: 2.5rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 100px;
    }
    
    /* Team section layout */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Services grid adjustment */
    #services .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Process section */
    #process .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full desktop experience with animations */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #team img:hover {
        transform: scale(1.05);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    /* Hero section desktop */
    #hero {
        min-height: 100vh;
    }
    
    /* Team member layout */
    #team .col-lg-3:last-child {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Process section horizontal layout */
    #process .col-lg-2 {
        text-align: center;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    /* Hero section enhanced */
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Reduced motion support - critical for accessibility */
@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;
    }
    
    .card:hover,
    #team img:hover,
    #gallery img:hover,
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Ensure minimum touch target sizes on mobile */
@media (max-width: 767.98px) {
    .nav-link,
    .btn,
    .card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Dark mode support (if needed in future) */

body {
    overflow-x: hidden;
}