/* Main Styles - Optimized for Performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', sans-serif;
    background-image: url('../background/5807511704156883413.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #333;
    word-spacing: normal;
    letter-spacing: normal;
    will-change: scroll-position;
    transform: translateZ(0);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 212, 224, 0.3) 0%, rgba(168, 213, 186, 0.3) 50%, rgba(245, 245, 245, 0.3) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    background: rgba(168, 213, 186, 0.7);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10000;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 80px;
    width: auto;
    loading: lazy;
    decoding: async;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    border: 2px solid #B3D4E0;
    background: rgba(179, 212, 224, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(245, 245, 245, 0.8);
    color: #1a3d1f;
}

.nav-link span {
    display: inline;
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 10001;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.current-lang:hover {
    background: rgba(245, 245, 245, 0.2);
}

.flag {
    font-size: 1.2rem;
}

.lang-text {
    font-size: 0.9rem;
    color: #2c5530;
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #2c5530;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(168, 213, 186, 0.3);
}

/* Performance optimizations */
.nav-link {
    will-change: transform;
    transform: translateZ(0);
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 5px 8px;
        min-width: auto;
        flex: 1;
        text-align: center;
        max-width: 120px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 4px 6px;
        max-width: 100px;
    }
    
    .main-header {
        padding: 10px 0;
    }
}