/* =================================================================
   Navigation Alignment & Multilanguage Support Fix
   ================================================================= */

/* Ensure perfect vertical alignment */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* All navigation items should have consistent height */
.nav-link,
.nav-links .btn-secondary,
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Consistent height */
    line-height: 1;
    vertical-align: middle;
}

/* Navigation link base styles */
.nav-link {
    color: #e1e5e9;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #00f5ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #0099cc);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Contact button in nav - matches language switcher height */
.nav-links .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 22px;
    background: transparent;
    border: none;
    outline: 1px solid rgba(160, 169, 184, 0.3);
    outline-offset: -1px;
    color: #a0a9b8;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links .btn-secondary:hover {
    background: rgba(0, 245, 255, 0.05);
    outline-color: rgba(0, 245, 255, 0.5);
    color: #e1e5e9;
    transform: none;
    box-shadow: none;
}

.nav-links .btn-secondary::after {
    display: none;
}

/* Language switcher alignment */
.language-switcher {
    display: flex;
    gap: 0;
    margin-left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    height: 40px; /* Match other nav items */
}

.lang-btn {
    background: transparent;
    border: none;
    color: #a0a9b8;
    padding: 8px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    color: #e1e5e9;
}

.lang-btn.active {
    background: linear-gradient(135deg, #00f5ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.lang-btn.active:hover {
    transform: scale(1.05);
}

/* Mobile menu alignment */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-link,
    .nav-links .btn-secondary {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .language-switcher {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Ensure sections have proper spacing for anchor links */
section[id] {
    scroll-margin-top: 100px;
}
