﻿.navbar {
    width: 100%;
    background: rgba(13, 16, 34, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo span {
    font-family: "Poly", Helvetica, sans-serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.navbar-logo-image {
    height: 100px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 18px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-item a {
    font-family: "Inter", Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #E8EDF6;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .navbar-item a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

.navbar-cta .cta-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F7554C 0%, #FF9A62 100%);
    color: #0E101B;
    font-family: "Inter", Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(247, 85, 76, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.navbar-cta .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(247, 85, 76, 0.45);
    background: linear-gradient(135deg, #FF7B6F 0%, #FFC483 100%);
}

.mobile-display {
    display: none;
}


.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    position: relative;
    width: 36px;
    height: 36px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-item-container{
    display: flex;
    flex-direction: row;
    gap:12px;
    justify-content: center;
    align-items: center;
}



.lang-select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: "Inter", Helvetica, sans-serif;
    font-weight: 500;
    padding: 8px 16px 8px 12px;
    margin: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: inset 0px 0.5px 0px rgba(255, 255, 255, 0.2), 
                0px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-right: 35px;
    min-width: 100px;
}





@media (max-width: 768px) {
    .lang-select {
        font-size: 0.85rem;
        padding: 6px 30px 6px 10px;
        min-width: 85px;
    }
    
   
}




.navbar-toggle span {
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: #fff;
  

    right: 0;
    margin: auto;
    transition: 0.3s;
    border-radius: 2px;
}
.navbar-toggle span:nth-child(1) {
    top: 6px;
}
.navbar-toggle span:nth-child(2) {
    top: 14px;
}
.navbar-toggle span:nth-child(3) {
    top: 22px;
}





@media (max-width: 768px) {
    .navbar {
        padding: 16px 18px;
    }

    .navbar-container {
        position: relative;
        flex-wrap: nowrap;
    }

    .navbar-logo-image {
        height: 60px;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 16, 34, 0.96);
        backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item a {
        font-size: 18px;
        font-weight: 600;
    }

    .navbar-cta {
        display: none;
    }

    .navbar-toggle {
        display: flex;
        z-index: 101;
    }

  
    .navbar-toggle.active span:nth-child(1) {
        top: 14px;
        transform: rotate(45deg);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        top: 14px;
        transform: rotate(-45deg);
    }


    .desktop-lang-dropdown {
      display: none;
    }

    .navbar-menu .mobile-display {
        display: block;
        margin-top: 20px;
    }

    .navbar-menu .mobile-display .cta-button {
        font-size: 18px;
        padding: 12px 24px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }

    .navbar-menu {
        gap: 20px;
    }

    .navbar-item a {
        font-size: 14px;
    }

    .navbar-cta .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
.translation-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.translation-container select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    line-height: 1.4;
    min-height: 2.2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    vertical-align: middle;
}

.translation-container::after {
    content: "▼";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 0.7rem;
    pointer-events: none;
}

.translation-container select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.translation-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.translation-container select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.translation-container select option:hover {
    background: #3a3a3a;
}



@media (max-width: 768px) {
    .translation-container select {
        font-size: 0.85rem;
        padding: 0.4rem 1.8rem 0.4rem 0.6rem;
        min-height: 2rem;
    }
    
    .translation-container::after {
        right: 0.4rem;
        font-size: 0.6rem;
    }
}

.custom-lang-dropdown {
    position: relative;
    display: inline-block;
    min-width: 48px;
    cursor: pointer;
    z-index: 200;
}
.custom-lang-dropdown .dropdown-selected {
    

    border-radius: 50%;
    padding: 6px;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s;
    width: 38px;
    height: 38px;
}
.custom-lang-dropdown .dropdown-selected img.lang-flag {
    width: 24px;
    margin-right: 2px;
    height: 24px;
    object-fit: contain;
    
    border-radius: 50%;
}
.custom-lang-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #23243a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 60px;
    padding: 6px 0;
    z-index: 300;
}
.custom-lang-dropdown .dropdown-options.show {
    display: block;
}
.custom-lang-dropdown .dropdown-option {
    padding: 6px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
}
.custom-lang-dropdown .dropdown-option:hover {
    background: #31324a;
}
.custom-lang-dropdown .dropdown-option img.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
@media (max-width: 768px) {
    .custom-lang-dropdown {
        min-width: 40px;
    }
    .custom-lang-dropdown .dropdown-selected {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    .custom-lang-dropdown .dropdown-options {
        min-width: 48px;
        border-radius: 10px;
    }
    .custom-lang-dropdown .dropdown-option {
        padding: 4px 10px;
    }
    .custom-lang-dropdown .dropdown-option img.lang-flag {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    #desktop-lang-dropdown {
        display: none !important;
    }

    #selectLanguageDesktop {
        display: none !important;
    }
}
