/* Tablet & Mobile Styles */
@media (max-width: 992px) {
    :root {
        --container-width: 100%;
        --spacing-xl: 48px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 24px;
        --spacing-xl: 40px;
    }

    .container {
        padding: 0 24px;
        /* Increased side padding for mobile */
    }

    /* Navbar Mobile */
    .mobile-menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Below navbar */
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .nav-links .separator {
        display: none;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 0 40px;
        /* Adjusted top padding */
        min-height: auto;
        /* Allow content to dictate height on mobile if needed */
    }

    .hero-bg-left {
        width: 100%;
        height: 50%;
        /* Top half */
        left: 0;
        top: 0;
    }

    .hero-bg-right {
        width: 100%;
        height: 50%;
        /* Bottom half */
        right: 0;
        top: 50%;
    }

    /* Adjust Dual Market Buttons layout */
    .hero-content>div.d-flex {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Model Page Specifics */
    .section .container>div {
        grid-template-columns: 1fr !important;
    }

    /* Fix layers diagram on mobile */
    .float-anim {
        transform: scale(0.8);
    }
}