/* Navbar Component Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    background-color: #ffffff;
    /* Pure white, no transparency */
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #555;
}

/* 1) Make the pastel red dot in the nav bar bigger */
.logo-dot {
    color: var(--color-accent);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 2) Use a on-hover effect for the links in the nav bar where a underline fades in. 
   Make the link text and underline dark grey and not fully black */
.nav-link {
    /* Inherits base styles from .hover-link */
    font-size: 1rem;
    font-weight: 500;
    color: #777;
    /* Specific override if needed, or rely on global */
}

/* .nav-link uses .hover-link class in HTML, so we don't need to repeat the ::after styles here 
   unless we want to override them. The global .hover-link handles the animation. */

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
}

/* Responsive adjustments for Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .hamburger {
        display: block;
        color: #b2b2b2;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 4.5rem;
        /* Adjusted to overlap slightly and remove gap */
        gap: 0;
        padding: 1rem;

        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        border-bottom-right-radius: 2rem;
        border-bottom-left-radius: 2rem;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        clip-path: inset(0px -20px -20px -20px);
        /* Hide top shadow */
        z-index: 999;
        /* Below the navbar (1000) to hide top shadow */

        /* Fade in effect */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        margin: 16px 0;
    }
}