/* Загальні стилі, які впливають і на навігацію */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    color: #FF6B00;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Основне меню для десктопу */
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FF6B00;
}

/* Випадаюче меню для десктопу */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    color: #333;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-link:hover {
    background: #f5f5f5;
    color: #FF6B00;
    padding-left: 25px;
}

.search-icon {
    margin: 0 15px;
    cursor: pointer;
    color: white;
}

.contact-btn {
    background-color: #FF6B00;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.contact-btn:hover {
    background-color: #e05f00;
}

/* Мобільне меню */
.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1000;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding: 80px 20px 30px;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-item {
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link i {
    transition: transform 0.3s;
}

.mobile-nav-link.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-dropdown-menu.active {
    max-height: 1000px;
}

.mobile-dropdown-item {
    list-style: none;
}

.mobile-dropdown-link {
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    font-size: 14px;
    transition: color 0.3s;
}

.mobile-dropdown-link:hover {
    color: #FF6B00;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 998;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Спеціальні пункти, які завжди видимі */
.mobile-nav-permanent {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-permanent-item {
    list-style: none;
    margin-bottom: 10px;
}

.mobile-nav-permanent-link {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.mobile-nav-permanent-link.jobs {
    background-color: #333;
}

.mobile-nav-permanent-link.signin {
    background-color: transparent;
    border: 1px solid white;
}

.mobile-nav-permanent-link.signup {
    background-color: #FF6B00;
}

.mobile-nav-permanent-link:hover {
    opacity: 0.9;
}

/* Адаптивні стилі для навігації */
@media (max-width: 1200px) {
    .nav-links {
        gap: 5px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (max-width: 1080px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
    }
    
    .mobile-nav {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 22px;
    }
}