/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.55rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* No animations on mobile */
    *,
    *::before,
    *::after {
        animation: none;
        transition: none;
    }
    
    #hero::before {
        display: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2.40rem;
    }
    
    h2 {
        font-size: 1.90rem;
    }
    
    /* Reduced animations on tablets */
    .card:hover {
        transform: translateY(-2px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: var(--container-max-width);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    .card-body {
        padding: 2rem;
    }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--background-light);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Gallery responsive grid */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Team section responsive */
@media (max-width: 767.98px) {
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
}

/* Services cards responsive */
@media (max-width: 575.98px) {
    #services .card {
        margin-bottom: 1.68rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Process section responsive */
@media (max-width: 767.98px) {
    .bg-primary.rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    .bg-primary.rounded-circle .h4 {
        font-size: 1.36rem;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Form responsive */
@media (max-width: 575.98px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 1rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    #contact,
    footer {
        display: none;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .rounded-circle {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Dark mode support (if browser/OS supports it) */