/* ============================================
   FIX CSS - Mobile overrides
   ============================================ */

/* Video Background Fixes */
.video-background .video-container video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* Contact Background Image Fix */
.contact-background {
    background-size: cover !important;
    background-position: center !important;
}

.contact-background > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Ensure hero content stays above video */
.content-overlay {
    position: relative;
    z-index: 2;
}

/* Prevent horizontal scroll from animations */
body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Mobile Navigation */
@media screen and (max-width: 992px) {
    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links.nav-active li {
        opacity: 1;
    }

    .burger:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }
}

/* Timeline mobile adjustments */
@media screen and (max-width: 768px) {
    .timeline-item .timeline-content:hover {
        transform: translateX(0);
    }

    .work-overlay {
        padding: 24px 20px 20px;
    }

    .work-title {
        font-size: var(--text-lg);
    }

    .service-item {
        padding: 28px 24px;
    }

    .modal-content {
        max-width: 95%;
        width: 100%;
    }

    .video-exit-button {
        top: 12px;
        right: 12px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 12px 16px;
    }

    .nav-links {
        width: 100%;
        border-left: none;
        padding-top: calc(72px + env(safe-area-inset-top, 0px));
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .client {
        padding: 14px;
    }

    .client img {
        max-height: 44px;
    }

    #clients .container {
        gap: 32px;
    }
}
