:root {
    --primary-color: #c9151e;
    --accent-color: #f7d002;
    --text-dark: #333;
    --gradient-red: linear-gradient(135deg, #c9151e, #e63946);
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    transition: all 0.3s ease;
    padding: 1rem 0;



    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);



}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(247, 208, 2, 0.3);
    object-fit: cover;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(201, 21, 30, 0.05);
}

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

/* Enhanced Language Selector Styles */
.language-selector-container {
    position: relative;
    display: inline-block;
}

.language-selector {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: space-between;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 5px;
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-option:hover {
    background: rgba(201, 21, 30, 0.1);
}

.language-option.active {
    background: rgba(201, 21, 30, 0.15);
    color: var(--primary-color);
}

.flag-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .language-dropdown {
        position: static;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
    }

    .language-dropdown.show {
        display: block;
    }

    .language-selector {
        min-width: 140px;
    }
}

/* Navbar scrolled state adjustments */
.navbar.scrolled .language-selector {
    background: rgba(255, 255, 255, 0.9);
}
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(201, 21, 30, 0.1);
}

.language-option.active {
    background: rgba(201, 21, 30, 0.15);
    color: var(--primary-color);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.8rem;
    }

    .navbar-brand img {
        height: 50px;
        width: 50px;
    }

    .language-selector {
        margin-top: 0;
    }
}




@media (max-width: 767px) {
    .language-dropdown {
        position: static;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .language-dropdown.show {
        display: block;
    }
}

/* Sound Toggle Styles */
.sound-toggle-container {
    position: relative;
    display: inline-block;
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 100px;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sound-toggle.muted {
    background: rgba(201, 21, 30, 0.1);
    color: var(--primary-color);
}

.sound-toggle.muted #soundIcon {
    color: var(--primary-color);
}

/* Navbar scrolled state adjustments */
.navbar.scrolled .sound-toggle {
    background: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .sound-toggle {
        min-width: 90px;
        padding: 8px 12px;
    }
}
