/* Base Styles */
nav {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    color: #1f2937;
    padding: 1.2rem 5vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 30;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.brand span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16a34a;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #1f2937;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    bottom: -2px;
    left: 0;
    border-radius: 5px;
    background-color: #3cb372d8;
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    bottom: -2px;
    left: 0;
    border-radius: 5px;
    background-color: #3cb372d8;
}

.nav-links a:hover {
    color: #0d4b29d8;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #16a34a;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.overlay.open {
    display: block;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background-color: #ffffff;
    color: #1f2937;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 20;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-header span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #16a34a;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #16a34a;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 1.125rem;
    position: relative;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar.open .sidebar-link {
    transform: translateX(0);
    opacity: 1;
}

.sidebar.open .sidebar-link:nth-child(1) {
    transition-delay: 0.1s;
}

.sidebar.open .sidebar-link:nth-child(2) {
    transition-delay: 0.2s;
}

.sidebar.open .sidebar-link:nth-child(3) {
    transition-delay: 0.3s;
}

.sidebar.open .sidebar-link:nth-child(4) {
    transition-delay: 0.4s;
}

.sidebar-link:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #86efac;
}

.sidebar-link:hover {
    color: #16a34a;
}

/* Media Queries */

/* Mobile (≤768px) */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* Tablet/Desktop (>768px) */
@media screen and (min-width: 769px) {

    .sidebar,
    .overlay {
        display: none !important;
    }

    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}