/* Hamburger Menu Styles */

.hamburger-icon {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 20px;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw; /* Adjusted width for better visibility */
    height: 60%; /* Partial height */
    background-color: #ffffff; /* White background for modern design */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto; /* Scrollable for long menus */
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-right: 1px solid #ddd; /* Subtle divider on the right */
    padding-top: 20px; /* Push menu items below the close icon */
}

/* Open State */
.hamburger-menu.open {
    transform: translateX(0);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999;
    display: none;
    transition: opacity 0.3s;
}

/* Overlay Visible State */
.overlay.visible {
    display: block;
    opacity: 1;
}

/* Close Icon */
.close-icon {
    position: absolute;
    top: 15px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    font-size: 24px;
    cursor: pointer;
    color: #4A90E2;
    transition: transform 0.2s ease-in-out;
    z-index: 1001; /* Ensure it is on top */
}

.close-icon:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}

/* Menu Items */
.hamburger-menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    margin-top: 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.hamburger-menu li {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    cursor: pointer;
    margin-top: 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.hamburger-menu li:hover {
    background-color: #4A90E2; /* Accent color */
    color: #fff;
}

/* Links and Icons */
.hamburger-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px; /* Add spacing between icon and text */
    color: #333;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.hamburger-menu ul li a i {
    font-size: 18px;
    color: #007bff; /* Blue color for icons */
}

/* Hover Effect */
.hamburger-menu ul li:hover {
    color: #4A90E2; /* Blue hover text */
}

/* Prevent Scrolling When Menu Is Open */
body.menu-open {
    overflow: hidden; /* Disable scrolling */
    position: fixed; /* Prevent content shift */
    width: 100%; /* Ensure content width stays fixed */
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Light overlay */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1100; /* Above the menu */
}

.loader-overlay.visible {
    display: flex; /* Show loader */
}

.loader-overlay .spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #4A90E2; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 70vw;
    }
    .hamburger-menu li {
        padding: 10px 15px;
    }
}
