/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #hero h1 {
        font-size: 1.87rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.99rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-4x {
        font-size: 2.68rem !important;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    /* No animations on mobile for better performance */
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 8px 10px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .fa-3x {
        font-size: 2.68rem !important;
    }
    
    .fa-4x {
        font-size: 3rem !important;
    }
    
    section {
        padding: 2.5rem 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero h1 {
        font-size: 2.39rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Large Devices (desktops, 996px and up) */
@media (min-width: 994px) {
    section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 2.82rem;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.65rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
}

/* Team Cards Responsive */
@media (max-width: 767.98px) {
    .col-md-6.col-lg-4 {
        margin-bottom: 1.77rem;
    }
}

/* Pricing Cards Responsive */
@media (max-width: 991.98px) {
    .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer ul {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    #footer li {
        margin: 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer {
        display: none;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #f2f2f2;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--neutral-dark);
    }
}

/* Dark Mode Support */