/* header.css */

/* General Reset */
header, nav, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

header {
    position: sticky;
    top: 0; /* Sticks the header to the top of the viewport */
    z-index: 1000; /* Ensures the header stays above other elements */
    background-color: inherit; /* Keeps the existing background style */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for elegance */
}


/* Navbar Wrapper */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to bottom left, #5b3a70, #b56576);
    color: #fff;
    position: relative;
}

/* Logo */
.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

/* Desktop Menu */
.menu {
    display: flex;
    gap: 20px;
}

.menu ul {
    display: flex;
    gap: 30px;
}

.menu li a {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu for Small Screens */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger-btn div {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 250px;
    height: 100%;
    background: linear-gradient(to bottom left, #b56576, #5b3a70);
    padding: 20px;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1500;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.sidebar a {
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #fcd5ce;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {
    .sidebar {
        display: none;
    }

    .overlay {
        display: none;
    }
}
