* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.user-image{
    object-fit: contain;
    height: 30px;
    width: 30px;
    border-radius: 15px;
    margin-left: 5px;
    margin-right: 25px;
}

/* Do not change this */
.thesidebar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, #000000, #0000006b);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    color: #000;
}

/* Flex container to align brand and nav */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
}

.logo-image {
    object-fit: cover;
    margin-left: 30px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
}

.logo-image:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.project-name {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 200;
    margin-left: 10px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: text-shadow 0.3s ease-in-out;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    position: relative;
    flex: 0 0 auto;
}

.nav-links a {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    background-color: #00ff88;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s;
}

.nav-links a:hover {
    color: #00ff88;
    transition: color 0.4s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    box-shadow: 0 0 8px #00ff88;
}


/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #000000, #0000006b);
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    z-index: 101;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    font-size: 16px;
    padding: 10px 20px;
    display: block;
    color: white;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media screen and (max-width: 920px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: linear-gradient(180deg, #000000, #0000006b);
        padding: 1rem 0;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.5s ease-in-out;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 20px;
        padding: 10px;
        color: white;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: linear-gradient(180deg, #000000, #0000006b);
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
