/* ==========================================================================
   Responsive Intermediary Rules (Breakpoints for Tablet & Mobile Layouts)
   ========================================================================== */



@media (max-width: 1024px) {
    .header-container {
        padding: 0 32px;
    }
    .nav-links {
        gap: 24px;
        display: flex;
        flex-direction: column;
        margin-bottom: 10vw;
    }
}


@media (max-width: 1023px) {
    /* Hide desktop features once mobile structure triggers */
    .desktop-nav, 
    .header-cta {
        display: none !important;
    }
.nav-links {
        gap: 24px;
        display: flex;
        flex-direction: column;
        margin-bottom: 5vw;
    }
    .site-header {
        padding: 20px 0;
    }

    .header-container {
        padding: 0 24px;
    }

    /* Display Hamburger Toggle */
    .menu-toggle {
        display: flex;
    }
    .logo img{
    height: 60px;
    width: 100%;
}

    /* Fullscreen Mobile Overlay Layout Styling */
    .mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        z-index: 999;
        padding: 20px 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    }

    .mobile-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 60px; /* Perfectly positions visual elements lower */
    }

    .menu-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .close-icon {
        font-size: 32px;
        font-weight: 300;
        color: var(--color-text);
        display: block;
        line-height: 1;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        width: 100%;
        margin-top: -20vw;
    }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px; /* Strict vertical element spacing from UI image 3 */
        width: 100%;
        margin-bottom: 40px;
    }

    .mobile-nav-links a {
        font-size: 20px;
        font-weight: 500;
        color: var(--color-text);
        text-decoration: none;
        letter-spacing: -1px;
    }

    .mobile-cta-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 60px;
    }

    .btn-register-mobile {
        display: inline-block;
        background-color: var(--color-accent);
        color: var(--color-text-white);
        text-decoration: none;
        font-size: 18px;
        font-weight: 700;
        padding: 12px 30px;
        border-radius: 100px;
        text-align: center;
        width: auto;
        min-width: 200px;
    }
    #fullimg img{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}