/* =========================================
   1. BORDER FRAME
   ========================================= */
.border-frame {
    position: fixed;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border-radius: 30px; 
    box-shadow: 0 0 0 2000px #ffffff;
    pointer-events: none;
    z-index: 9999;
    box-sizing: border-box;
}

/* =========================================
   2. HEADER & STABILIZED TOGGLE ICON
   ========================================= */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100000;
    box-sizing: border-box;
}

.logo img {
    height: 80px;
    width: auto;
    border-radius: 50px;
    display: block;
}

.menu-toggle {
    position: absolute;
    right: 50px; 
    top: 50%;
    transform: translateY(-50%);
    
    /* LOCKED WIDTH PREVENTS SHRINKING */
    width: 36px !important; 
    min-width: 36px !important;
    max-width: 36px !important;
    height: 38px !important;
    
    cursor: pointer;
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    z-index: 100001;
    flex: none !important;
}

.line {
    display: block !important;
    width: 7px !important; 
    min-width: 7px !important;
    height: 100%; 
    background-color: #ffffff; 
    border-radius: 4px;
    animation: wave 1.8s infinite ease-in-out;
    transition: background-color 0.3s ease;
    flex: 0 0 7px !important;
}

.line:nth-child(1) { animation-delay: 0s; }
.line:nth-child(2) { animation-delay: 0.3s; }
.line:nth-child(3) { animation-delay: 0.6s; }

body.menu-open .line {
    background-color: #000000;
    animation: none;
    height: 100%;
}

@keyframes wave {
    0%, 100% { height: 100%; }
    50% { height: 50%; }
}

/* =========================================
   3. MENU OVERLAY (Lowered Menus)
   ========================================= */
.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9998;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 150px;
    visibility: hidden;
    background-color: transparent !important; 
}

.overlay-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    fill: #ffffff; 
}

.menu-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.menu-item a {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 45px;
    text-decoration: none;
    color: #000000; 
    text-transform: uppercase;
    transform: translateY(100%);
    opacity: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-item a:hover { 
    color: #ff4d4d !important;
    transform: translateX(10px);
}

/* =========================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media screen and (max-width: 992px) {
    .site-header { padding: 25px 35px; }
    .logo img { height: 65px; }
    .menu-toggle { right: 35px; }
}

@media screen and (max-width: 576px) {
    .site-header { padding: 15px 25px; }
    .logo img { height: 55px; }
    
    .menu-toggle {
        right: 25px; 
        width: 30px !important;
        min-width: 30px !important;
        height: 32px !important;
    }
    .line {
        width: 6px !important; 
        min-width: 6px !important;
        flex: 0 0 6px !important;
    }

    .menu-overlay {
        padding-top: 105px; /* Lowered menus into white area */
        align-items: flex-start;
    }

    .menu-item a {
        font-size: 34px;
        letter-spacing: 2px;
    }
}