/* Navigation Component */
:root {
    --nav-height: 72px;
    --nav-max-width: min(1400px, 90vw);
    --nav-padding: clamp(1rem, 2vw, 2rem);
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--nav-max-width);
    margin: 0 auto;
    padding: 0 var(--nav-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-left {
    justify-content: flex-start;
    gap: clamp(2rem, 3vw, 3rem);
    flex: 0 1 auto;
}

.nav-right {
    justify-content: flex-end;
    gap: clamp(1.5rem, 2vw, 2rem);
    flex: 0 1 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--dark);
    text-decoration: none;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: clamp(180px, 15vw, 300px);
    height: 40px;
    margin: 0 clamp(1rem, 2vw, 2rem);
}

.search-input {
    border: none;
    background: none;
    padding: 0.25rem;
    width: 100%;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    color: var(--dark);
    font-family: var(--font-body);
    line-height: 1;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.5vw, 2rem);
    height: 100%;
}

.language-select {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.language-select select {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.25rem;
}

.language-select select:focus {
    outline: none;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transform: translateY(-6px);
}

.logo img {
    height: clamp(32px, 4vh, 40px);
    width: auto;
    object-fit: contain;
}

.nav-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem clamp(1.25rem, 2vw, 2rem);
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 600;
    min-width: clamp(120px, 10vw, 180px);
    white-space: nowrap;
    height: 40px;
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 108, 235, 0.3);
    background: #f47eee;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

.mobile-menu-btn i {
    font-size: 1.5rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        height: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem;
        justify-content: flex-start;
        height: auto;
    }

    .nav-links a:hover {
        background: #f5f5f5;
    }

    .search-container {
        display: none;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }

    .language-select {
        display: none;
    }

    .nav-utility {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-utility a {
        width: 100%;
        padding: 0.75rem;
        justify-content: flex-start;
    }

    .mobile-menu-btn.active i {
        color: var(--primary);
    }

    /* Dropdown adjustments for mobile */
    .nav-links .dropdown {
        width: 100%;
    }

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

    .dropdown-menu {
        position: static;
        background: #f5f5f5;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f5f5f5;
        margin-top: 0.5rem;
        display: block;
    }

    .dropdown-menu {
        display: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
    }
}

/* High-resolution screens (like your 2256x1504) */
@media (min-width: 1921px) {
    .nav-container {
        max-width: 1800px;
    }
}

/* Large screens */
@media (max-width: 1920px) {
    .nav-container {
        max-width: var(--nav-max-width);
    }
}

/* Medium-large screens */
@media (max-width: 1400px) {
    .search-container {
        width: clamp(160px, 12vw, 250px);
    }
}

/* Medium screens */
@media (max-width: 1200px) {
    .nav-left {
        gap: clamp(1.5rem, 2vw, 2.5rem);
    }
    .search-container {
        width: clamp(140px, 10vw, 200px);
    }
}

/* Tablet landscape */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-cta-button {
        padding: 0.5rem 1rem;
    }
    .search-container {
        width: clamp(120px, 8vw, 160px);
    }
    .nav-actions {
        gap: 1rem;
        margin-left: 1rem;
    }
}

/* Dropdown styling */
.nav-links .dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links .dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.8em;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

/* Desktop dropdown hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile dropdown click */
@media (max-width: 768px) {
    .dropdown.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f5f5f5;
        margin-top: 0.5rem;
        display: block;
    }

    .dropdown-menu {
        display: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary);
} 