/* -------------------------------------------------------------------------- */
/*                               MOBILE OPTIMIZATION                          */
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 960px) {

    /* RESET DESKTOP NAVBAR CONSTRAINT */
    body,
    html {
        overflow-x: hidden;
        position: relative;
    }

    .container {
        width: 100%;
        padding: 0 20px;
        overflow: hidden;
    }

    .navbar {
        min-width: auto;
        width: 92% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 15px;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
        position: fixed;
        /* Fixed to cover screen if needed or scroll with navbar */
        right: 0px;
        top: 80px;
        /* Slight gap below navbar */
        background: #000000;
        /* Pure black for high contrast */
        flex-direction: column;
        align-items: center;
        width: 90%;
        /* Match navbar width constraint if centered, or 100% */
        left: 50%;
        transform: translateX(-50%) translateY(-150%);
        /* Start hidden above or to side */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 0;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        gap: 25px;
        z-index: 998;
        visibility: hidden;
        /* Hide completely when not active */
        opacity: 0;
    }

    .nav-links.nav-active {
        transform: translateX(-50%) translateY(0%);
        visibility: visible;
        opacity: 1;
    }



    .nav-links li {
        opacity: 1;
        /* Ensure visible */
    }

    .nav-links a {
        color: white !important;
        /* White text in dark mobile menu */
        font-size: 1.2rem;
    }

    /* BURGER MENU VISIBILITY */
    .burger {
        display: block !important;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: #333;
        /* Dark lines for white navbar */
        margin: 5px;
        transition: all 0.3s ease;
    }

    /* Animate Burger to X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* HERO ADJUSTMENTS */
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 40px;
        overflow: hidden;
    }

    .hero-grid {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem !important;
        padding: 0;
        margin-bottom: 30px;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 30px;
        transform: scale(0.8);
        /* Shrink iPhone on mobile */
    }

    .iphone-container {
        width: 280px !important;
        /* Force small width for mobile */
        height: 560px !important;
    }

    .hero-btns {
        flex-direction: column;
        /* Stack buttons */
        width: 100%;
        padding: 0 20px;
        gap: 12px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    /* FLOATING CTA */
    .floating-cta {
        display: none !important;
        /* Hide floating CTA on mobile to clear screen */
    }

    /* MARQUEE */
    .marquee-track {
        margin: 10px 0 30px 0;
        transform: rotate(-1deg) scale(0.9);
        /* Reduce scale */
    }

    .marquee-content-scroll span {
        font-size: 1.8rem;
        margin: 0 20px;
    }

    /* BENTO GRID */
    .bento-grid {
        flex-direction: column;
        height: auto;
    }

    .bento-card {
        height: 250px;
        /* Fixed height for mobile cards */
        width: 100%;
        flex: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* PLANNING PAGE MOBILE */
    .planning-dynamic-grid {
        grid-template-columns: 1fr;
    }

    .z-team-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .z-team-bar::after {
        display: none;
    }

    /* FOOTER */
    .footer-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .socials {
        margin-top: 10px;
    }

    .socials a {
        margin: 0 10px;
    }
}