/* =========================================
   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 (Centered Desktop 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: center;
    padding-top: 20px;
    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: 22px;
    width: 100%;
}

/* Fixed: Decreased menu link font-size for a cleaner, ultra-modern aesthetic */
.menu-item a {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 30px; 
    text-decoration: none;
    color: #0b1121; 
    text-transform: uppercase;
    letter-spacing: 4px;
    transform: translateY(100%);
    opacity: 0;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item a:hover { 
    color: #4b8ef1 !important;
    transform: scale(1.03);
}

/* --- MENU CONTACT UTILITY LINK --- */
.menu-item.menu-contact-item {
    margin-top: 15px;
}

/* Fixed: Increased font-size and weight to make the phone number stand out as the primary action */
.menu-item.menu-contact-item a {
    font-size: 32px; 
    font-weight: 900;
    color: #4b8ef1; 
    letter-spacing: 1px;
}

.menu-item.menu-contact-item a i {
    font-size: 26px;
    margin-right: 6px;
}

.menu-item.menu-contact-item a:hover {
    color: #0b1121 !important;
    transform: none;
}

/* =========================================
   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) {
    .border-frame {
        display: none !important;
    }

    .site-header { 
        padding: 15px 20px; 
    }
    
    .logo img { 
        height: 48px; 
        border-radius: 50%;
    }
    
    .menu-toggle {
        right: 20px; 
        width: 26px !important;
        min-width: 26px !important;
        height: 28px !important;
    }
    
    .line {
        width: 5px !important; 
        min-width: 5px !important;
        flex: 0 0 5px !important;
    }

    .menu-overlay {
        padding-top: 100px !important;
        align-items: flex-start !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }

    .menu-content {
        gap: 12px !important;
        padding: 15px 0 40px 0;
    }

    /* Balanced mobile tracking layout properties */
    .menu-item a {
        font-size: 19px !important;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .menu-item a:hover {
        transform: none;
    }

    .menu-item.menu-contact-item {
        margin-top: 10px !important;
    }

    .menu-item.menu-contact-item a {
        font-size: 23px !important;
    }

    .menu-item.menu-contact-item a i {
        font-size: 18px !important;
    }
}