/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #e2e8f0; /* Matching button background */
    padding: 1rem 1rem; /* Reduced side padding */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px; /* Reduced max-width for better centering */
    margin: 0 auto;
    padding: 0 1rem; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: #111; /* Darker text for better contrast */
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    margin-right: 2rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #000; /* Darker on hover */
    text-decoration: none;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.nav-link {
    color: #111; /* Dark text for better contrast */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #000; /* Darker on hover/active */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #94a3b8; /* Muted color for underline */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #111; /* Darker color for hamburger */
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: #e2e8f0; /* Matching button background */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin: 16px 0;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }
}

/* Ensure content doesn't hide behind fixed navbar */
body {
    padding-top: 80px;
}
