/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    /* Typography Adjustments */
    .navbar-brand {
        font-size: 1.30rem !important;
    }
    
    h1, .h1 {
        font-size: 1.89rem;
    }
    
    h2, .h2 {
        font-size: 1.74rem;
    }
    
    h3, .h3 {
        font-size: 1.44rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.60rem;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form Adjustments */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Services Grid */
    #services .col-md-6,
    #services .col-lg-4 {
        margin-bottom: 1.56rem;
    }
    
    /* Team Members */
    #team .col-md-6,
    #team .col-lg-4 {
        margin-bottom: 2rem;
        text-center: center;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* FAQ Cards */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #contact .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Navbar Mobile */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Process Section Mobile */
    .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-section {
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on small devices */
    *, *::before, *::after {
        animation-duration: 0.30s !important;
        transition-duration: 0.56s !important;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .card {
        margin-bottom: 1.57rem;
    }
    
    #team img {
        width: 130px;
        height: 130px;
    }
    
    .py-5 {
        padding-top: 2.64rem;
        padding-bottom: 2.57rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Reduced animations on tablets */
    *, *::before, *::after {
        animation-duration: 0.55s !important;
        transition-duration: 0.88s !important;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .navbar-brand {
        font-size: 1.42rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.84rem;
    }
    
    /* Services Grid Tablet */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team Grid Tablet */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* FAQ Tablet */
    #faq .col-md-6 {
        margin-bottom: 1.67rem;
    }
    
    /* Contact Tablet */
    #contact .col-md-4 {
        margin-bottom: 1.71rem;
        text-align: center;
    }
    
    .py-5 {
        padding-top: 2.83rem;
        padding-bottom: 2.91rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations on desktop */
    #hero {
        min-height: 100vh;
    }
    
    /* Hover Effects Only on Desktop */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 12px rgba(137, 115, 245, 0.30);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }
    
    #team img:hover {
        border-color: var(--primary-color);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1, .h1 {
        font-size: 2.62rem;
    }
    
    h2, .h2 {
        font-size: 2.36rem;
    }
    
    .lead {
        font-size: 1.20rem;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
        box-shadow: none !important;
    }
    
    #header, #footer {
        display: none;
    }
    
    .btn {
        display: none;
    }
    
    .card {
        border: 1px solid #ededed;
        break-inside: avoid;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--text-dark);
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1.66rem;
        padding-bottom: 1.67rem;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
    }
    
    .btn:focus-visible,
    .form-control:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    #hero::before {
        display: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
}

/* Dark Mode Support (if needed) */

body {
    overflow-x: hidden;
}