body.menu-open {
    overflow: hidden;
    height: 100vh;
    /* ADD THIS */
    position: fixed;
    /* ADD THIS */
    width: 100%;
    /* ADD THIS */
}

/*MENU OVERLAY MAIN*/

.menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    background: url('../imges/menu-img-img.png');
    background-size: cover;
    background-position: center;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    
    line-height:1.1;
}

.menu-overlay.active {
    transform: translateY(0);
}
/* ================================
   MENU HEADER
   ================================ */

/* ================================
   MENU HEADER
   ================================ */
.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0; /* ✅ ADD THIS */
    pointer-events: none; /* ✅ ADD THIS */
    transition: opacity 0.6s ease; /* ✅ ADD THIS */
}

/* Show header only when menu is active */
.menu-overlay.active .menu-header {
    opacity: 1; /* ✅ ADD THIS */
    pointer-events: auto; /* ✅ ADD THIS */
}
.menu-logo {
    font-size: clamp(1.5rem, 1.6vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #1a1a1a;
}

.menu-logo:hover {
    color: #1a1a2e;
}

.menu-header-right {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}



.close-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #1a1a2e;
    transform: rotate(90deg);
}

.close-icon {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1;
}

.close-text {
    display: none;
}

/* ================================
   MENU NAVIGATION
   ================================ */
.menu-nav {
    flex: none;
    /* ✅ Changed from "1 1 auto" */
    height: calc(100vh - 159px);
    /* ✅ Fixed height */
    min-height: calc(100vh - 159px);
    max-height: calc(100vh - 159px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Menu items centered */
    align-items: flex-end;
    margin-top: 82px; /* ✅ ADD - Exact header height */
    padding: clamp(2rem, 4vh, 4rem) clamp(2rem, 5vw, 6rem);
    gap: clamp(0.6rem, 1.2vh, 1.5rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-nav a {
    font-size: clamp(3.2rem, 4.5vw, 5rem);
    font-weight: 400;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.menu-nav a.dark {
    color: #1a1a2e;
}

.menu-nav a:hover {
    color: #1E40AF;
    transform: translateX(-10px);
}

/* ================================
   MENU FOOTER - FIXED FOR HALF SCREEN
   ================================ */
/* ================================
   MENU FOOTER - BASE (Desktop) - KEEP ORIGINAL
   ================================ */
.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    gap: 0.8rem;
    background: transparent;
}

.menu-footer-left {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    flex-shrink: 0;
}

.social-icon {
    width: clamp(40px, 3vw, 44px);
    height: clamp(40px, 3vw, 44px);
    border: 1.5px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    flex-shrink: 0;
}

.social-icon:hover {
    background: #1a1a1a;
    color: white;
}

.social-icon svg {
    width: clamp(18px, 1.2vw, 21px);
    height: clamp(18px, 1.2vw, 21px);
}

.menu-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(0.2rem, 0.4vh, 0.35rem);
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 60%;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    color: #2563EB;
    text-decoration: none;
    font-size: clamp(0.68rem, 0.85vw, 0.85rem);
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.footer-link:hover {
    color: #2b87ff;
    text-decoration: underline;
}

.footer-separator {
    color: #999;
    font-size: clamp(0.68rem, 0.85vw, 0.85rem);
    line-height: 1.2;
}

.footer-copyright {
    color: #1a1a2e;
    font-size: clamp(0.64rem, 0.8vw, 0.8rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
}


/* ===== RESPONSIVE DESIGN ===== */

/* 5. LARGE SCREENS (1921px+) */
@media (min-width: 1921px) {
    .menu-header {
        padding: 1.3rem 4rem;
    }

    .menu-logo {
        font-size: 1.8rem;
    }

    .close-icon {
        font-size: 2.5rem;
    }

    .menu-nav {
        height: calc(100vh - 180px);
        min-height: calc(100vh - 180px);
        max-height: calc(100vh - 180px);
        margin-top: 92px;
        padding: clamp(3rem, 5vh, 5rem) clamp(3rem, 6vw, 8rem);
        gap: clamp(1rem, 1.5vh, 2rem);
    }

    .menu-nav a {
        font-size: clamp(7rem, 7.5vw, 7.5rem);
    }

    .menu-footer {
        padding: 1.3rem 4rem;
        gap: 1rem;
    }

    .menu-footer-left {
        gap: 1.5rem;
    }

    .social-icon {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

    .menu-footer-right {
        max-width: 65%;
        gap: 0.4rem;
    }

    .footer-link {
        font-size: 1rem;
    }

    .footer-separator {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 0.95rem;
    }
}

/* 2. STANDARD DESKTOP (1367px - 1920px) */
@media (min-width: 1367px) and (max-width: 1920px) {
    .menu-header {
        padding: 1.1rem 3.5rem;
    }

    .menu-logo {
        font-size: 1.6rem;
    }

    .close-icon {
        font-size: 2.2rem;
    }

    .menu-nav {
        height: calc(100vh - 170px);
        min-height: calc(100vh - 170px);
        max-height: calc(100vh - 170px);
        margin-top: 87px;
        padding: clamp(2.5rem, 4.5vh, 4.5rem) clamp(2.5rem, 5.5vw, 7rem);
        gap: clamp(0.8rem, 1.3vh, 1.8rem);
    }

    .menu-nav a {
        font-size: clamp(4rem, 3.5vw, 6rem);
    }

    .menu-footer {
        padding: 1.1rem 3.5rem;
        gap: 0.9rem;
    }

    .menu-footer-left {
        gap: 1.1rem;
    }

    .social-icon {
        width: 46px;
        height: 46px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-link {
        font-size: 0.88rem;
    }

    .footer-separator {
        font-size: 0.88rem;
    }

    .footer-copyright {
        font-size: 0.82rem;
    }
}

/* 1. LAPTOP / HALF SCREEN (1025px - 1366px) - FIXED */
@media (min-width: 1025px) and (max-width: 1366px) {
        .menu-overlay {
        overflow-y: auto;
        /* ✅ Scroll entire overlay */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* iOS smooth scroll */
    }
    .menu-header {
        padding: 0.9rem 2rem;
    }

    .menu-logo {
        font-size: 1.3rem;
    }

    .close-icon {
        font-size: 1.7rem;
    }

    .menu-nav {
        height: calc(100vh - 159px);
        min-height: calc(100vh - 159px);
        max-height: calc(100vh - 159px);
        margin-top: 82px;
        gap: clamp(0.5rem, 1vh, 0.8rem);
        padding: 1.5rem clamp(3.2rem, 4vw, 5rem);
    }

    .menu-nav a {
        font-size: clamp(4rem, 3.5vw, 6rem);
    }

    .menu-footer {
        padding: 0.9rem 2rem;
        gap: 0.75rem;
    }

    .menu-footer-left {
        gap: 0.7rem;
    }

    .social-icon {
        width: 33px;
        height: 33px;
    }

    .social-icon svg {
        width: 15px;
        height: 15px;
    }

    .menu-footer-right {
        max-width: 55%;
        gap: 0.2rem;
    }

    .footer-link {
        font-size: 0.68rem;
    }

    .footer-separator {
        font-size: 0.68rem;
    }

    .footer-copyright {
        font-size: 0.64rem;
    }
}

/* 3. TABLET (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .menu-header {
        padding: 0.85rem 1.8rem;
    }

    .menu-logo {
        font-size: 1.25rem;
    }

    .close-icon {
        font-size: 1.65rem;
    }

    .menu-nav {
        height: calc(100vh - 155px);
        min-height: calc(100vh - 155px);
        max-height: calc(100vh - 155px);
        margin-top: 80px;
        padding: 1.5rem 2.5rem;
        gap: 0.6rem;
        align-items: center;
    }

    .menu-nav a {
        font-size: clamp(4rem, 3.5vw, 6rem);
    }

    .menu-footer {
        padding: 0.85rem 1.8rem;
        gap: 0.7rem;
    }

    .menu-footer-left {
        gap: 0.75rem;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }

    .social-icon svg {
        width: 15px;
        height: 15px;
    }

    .menu-footer-right {
        max-width: 58%;
    }

    .footer-link {
        font-size: 0.68rem;
    }

    .footer-separator {
        font-size: 0.68rem;
    }

    .footer-copyright {
        font-size: 0.64rem;
    }
}

/* 4. MOBILE LAYOUT (< 768px) */
@media (max-width: 768px) {
    .menu-overlay {
        overflow-y: auto;
        /* ✅ Scroll entire overlay */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* iOS smooth scroll */
    }
    .menu-header {
        padding: 0.9rem 1.5rem;
    }

    .menu-logo {
        font-size: 1.2rem;
    }

    .close-icon {
        font-size: 1.6rem;
    }

    .menu-nav {
        height: calc(100dvh - 155px);
        height: calc(100vh - 155px);
        min-height: calc(100dvh - 155px);
        min-height: calc(100vh - 155px);
        max-height: calc(100dvh - 155px);
        max-height: calc(100vh - 155px);
        margin-top: auto;
        align-items: center;
        padding: 1.5rem 1.5rem;
        gap: clamp(0.6rem, 1.2vh, 1rem);
    }

    .menu-nav a {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }

    .menu-footer {
        margin-top: -25px;
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.9rem 1.5rem;
        /* ✅ FIX - Add these 3 lines */
        position: relative;
        z-index: 1001;
        pointer-events: auto;
    }

    .menu-footer-left {
        order: 2;
        gap: 1rem;
        /* ✅ Ensure clickable */
        pointer-events: auto;
    }

    .menu-footer-right {
        order: 1;
        align-items: center;
        text-align: center;
        margin-left: 0;
        gap: 0.25rem;
        max-width: 100%;
        /* ✅ FIX - Enable pointer events */
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 0.4rem;
        /* ✅ FIX - Enable pointer events */
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .footer-separator {
        display: inline;
        pointer-events: none;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        /* ✅ Ensure clickable */
        pointer-events: auto;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
        pointer-events: none;
    }

    /* ✅ FIX - Footer Links Clickable */
    .footer-link {
        font-size: 0.7rem;
        /* Critical fixes */
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 2;
        /* Add touch padding */
        padding: 0.3rem 0.4rem;
        display: inline-block;
        /* Better touch target */
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    }

    .footer-link:active {
        background: rgba(37, 99, 235, 0.1);
        border-radius: 3px;
    }

    .footer-separator {
        font-size: 0.7rem;
    }

    .footer-copyright {
        font-size: 0.66rem;
    }
}

/* 4.1 SMALL PHONES (< 480px) */
@media (max-width: 480px) {
    .menu-overlay {
        overflow-y: auto;
        /* ✅ Scroll entire overlay */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* iOS smooth scroll */
    }
    .menu-header {
        padding: 0.75rem 1.2rem;
    }

    .menu-logo {
        font-size: 1.15rem;
    }

    .close-icon {
        font-size: 1.5rem;
    }

    .menu-nav {
        height: calc(100dvh - 155px);
        height: calc(100vh - 155px);
        min-height: calc(100dvh - 155px);
        min-height: calc(100vh - 155px);
        max-height: calc(100dvh - 155px);
        max-height: calc(100vh - 155px);
        margin-top: auto;
        padding: 1.2rem 1.2rem;
        gap: 0.5rem;
    }

    .menu-nav a {
        font-size: clamp(2.5rem, 6.5vw, 3.5rem);
        text-align: center;
    }

.menu-footer {
        margin-top: -30px;
        padding: 0.85rem 1.2rem;
        gap: 0.6rem;
        /* ✅ FIX - Add these 3 lines */
        position: relative;
        z-index: 1001;
        pointer-events: auto;
    }

    .menu-footer-left {
        gap: 0.85rem;
        pointer-events: auto;
    }

    .menu-footer-right {
        gap: 0.2rem;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .footer-links {
        gap: 0.35rem;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .social-icon {
        width: 34px;
        height: 34px;
        border-width: 1.3px;
        pointer-events: auto;
    }

    .social-icon svg {
        width: 15px;
        height: 15px;
        pointer-events: none;
    }

    /* ✅ FIX - Footer Links Clickable */
    .footer-link {
        font-size: 0.68rem;
        /* Critical fixes */
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 2;
        /* Add touch padding */
        padding: 0.3rem 0.35rem;
        display: inline-block;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    }

    .footer-link:active {
        background: rgba(37, 99, 235, 0.1);
        border-radius: 3px;
    }

    .footer-separator {
        font-size: 0.68rem;
    }

    .footer-copyright {
        font-size: 0.64rem;
    }
}







