@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 144px;
    background: rgba(23, 23, 23, 0.65);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: height 0.3s ease-in-out;
}

.header-container {
    width: 100%;
    max-width: 1920px;
    padding: 0 13.33%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 178.8px;
    height: 80px;
    object-fit: contain;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.menu ul {
    list-style: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    font-family: 'Inter', sans-serif;
    color: white;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
}

.menu ul li:last-child {
    margin-left: 72px;
    margin-right: 13.33%;
}

.menu ul li .btn {
    background: #00A1F0;
    color: white;
    padding: 16px 45px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
}

.menu-icon {
    width: 30px;
    height: 3px;
    background: white;
    display: block;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    width: 30px;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -10px;
}

.menu-icon::after {
    top: 10px;
}

.menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.user-menu {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(23, 23, 23, 0.65);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.text-primary {
    color: #007bff;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .header-container {
        padding: 0 10%;
    }

    .menu ul li:last-child {
        margin-right: 10%;
    }
}

@media (max-width: 1100px) {
    .header-container {
        padding: 0 6%;
    }

    .menu ul li:last-child {
        margin-right: 6%;
    }
}

@media (max-width: 1000px) {
    .header-container {
        padding: 0 5%;
    }

    .menu ul li:last-child {
        margin-right: 5%;
    }

    header {
        height: 100px;
    }

    .logo img {
        width: 120px;
        height: 60px;
    }
}

@media (max-width: 950px) {
    .header-container {
        padding: 0 4%;
    }

    .menu ul li:last-child {
        margin-right: 4%;
    }
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 3%;
    }

    .menu ul li:last-child {
        margin-right: 3%;
    }
}

@media (max-width: 880px) {
    .header-container {
        padding: 0 2%;
    }

    .menu ul li:last-child {
        margin-right: 2%;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
    }

    .menu-list {
        visibility: hidden;
        opacity: 0;
        height: 0;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background: rgba(23, 23, 23, 0.95);
        padding: 10px;
        border-radius: 6px;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, height 0.3s ease-in-out;
        z-index: 1000;
        width: 200px;
        text-align: center;
    }

    .menu-list.active {
        visibility: visible;
        opacity: 1;
        height: auto;
    }

    .menu ul li:last-child {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 500px) {
    header {
        height: 80px;
    }

    .logo img {
        width: 100px;
        height: 50px;
    }
}