@font-face {
    font-family: 'Optima';
    src: url('fonts/optima.woff2') format('woff2'),
         url('fonts/optima.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

header {
    --primary-color: #2e0146;
    --secondary-color: #f8f9fa;
    --text-color: #ffffff;
    --menu-text-hover: #2e0146;
    --auth-color: #fedde4;
    --auth-hover: #fedde4;
    --auth-secondary: #fedde4;
    --auth-text: #2e0146;
    --auth-text-hover: white;
    --auth-text-reg: white;
    --transition: all 0.3s ease;
    --auth-btn-text: white;
    font-family: 'Optima', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header *,
.navbar,
.navbar *,
.nav-links,
.nav-links *,
.auth-buttons,
.auth-buttons *,
.logo,
.logo * {
    font-family: inherit;
}

.navbar {
    background: #4d5fa1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 70px;
    flex-wrap: wrap;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li {
    margin: 0 0.8rem;
    position: relative;
}

.nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.3rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-links > li > a:hover {
    color: var(--menu-text-hover);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links > li > a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    position: relative;
    height: 100%;
    opacity: 1;
}

.auth-buttons::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: #ddd;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon-about {
    width: 32px;
    height: 32px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .navbar {
        background: #4d5fa1;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .hamburger {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-icon-about {
        display: block !important;
        width: 32px !important;
        height: 32px !important;
    }

    .nav-links,
    .auth-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin: 0;
        opacity: 1;
        animation: none;
    }

    .nav-links.active,
    .auth-buttons.active {
        display: flex !important;
    }

    .nav-links {
        padding-top: 1rem;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        justify-content: center;
        animation: none;
        opacity: 1;
    }

    .nav-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .auth-buttons {
        margin: 1rem 0 0 0;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .auth-buttons::before {
        display: none;
    }
}