header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--color-accent);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s, background-color 0.2s;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-primary);
    background: var(--color-primary-light-bg);
}

.nav-links a.active {
    opacity: 1;
    color: var(--color-primary);
    background: var(--color-primary-light-bg);
}

.nav-links a.contact-button {
    color: var(--color-bg);
    font-weight: 600;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-accent), var(--color-primary));
    background-size: 300% 100%;
    opacity: 1;
    border: none;
    animation: colorShift 8s ease infinite;
    transition: transform 0.1s;
}

.nav-links a.contact-button:hover {
    background: linear-gradient(135deg, var(--color-primary-darkest), var(--color-primary-hover));
    transform: scale(1.02);
}

.nav-links a.contact-button:active {
    background: linear-gradient(135deg, var(--color-primary-darkest), var(--color-primary-hover));
    transform: scale(0.95);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media screen and (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    body.menu-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 5rem;
        padding-left: 0;
        background: var(--color-bg-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-top: 1px solid var(--color-accent);
    }
}

footer {
    padding: 0.5rem;
    text-align: center;
    border-top: 3px solid var(--color-primary);
}

footer p {
    opacity: 0.6;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}