header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #222;
    color: white;
}

.nav-links {
    display: none;
    gap: 1rem;
    list-style: none;
    position: absolute;
    top: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--primary);
    width: clamp(150px, calc(40vw), 400px);
    font-size: 1.4rem;
    padding: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.nav-middle {
    display: flex;
    gap: 1rem;
}

.nav-middle button, .nav-end button {
    background-color: transparent;
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nav-middle button:after, .nav-end button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-middle button:hover:after, .nav-end button:hover:after {
    width: 80%;
}

.nav-middle button:hover, .nav-end button:hover {
    color: var(--primary);
    background-color: transparent;
    transform: none;
    box-shadow: none;
}
