/* Language Switcher - Dual Flag Toggle */
.lang-switcher-container {
    display: inline-flex;
    align-items: center;
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    gap: 8px;
    backdrop-filter: blur(4px);
    margin-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

[dir="ltr"] .lang-switcher-container {
    margin-left: 0;
    margin-right: 1.5rem;
}

.lang-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    background: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform: scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Active State - Neon Blue */
.lang-option.active {
    border-color: var(--clr-neon-blue);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    z-index: 1;
}

.lang-option:hover:not(.active) {
    opacity: 0.8;
    transform: scale(1);
}

/* Tooltip on Hover */
.lang-switcher-container::after {
    content: 'Change Language';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.lang-switcher-container:hover::after {
    opacity: 1;
}

/* Override existing button styles if any remain */
.lang-switcher-btn {
    display: none !important;
}

/* -------------------------------------------
   LTR LAYOUT FIXES (RESTORED)
------------------------------------------- */
[dir="ltr"] body {
    font-family: var(--font-en);
}

[dir="ltr"] .highlight {
    font-weight: 700;
}

/* Fix Hero Title Alignment */
[dir="ltr"] .hero-text {
    text-align: left;
}

[dir="ltr"] .hero h1 {
    letter-spacing: -1px;
}

/* Fix Card Icons */
[dir="ltr"] .card-glass {
    flex-direction: row-reverse;
    text-align: left;
}

[dir="ltr"] .card-glass .icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Fix Features List Icons */
[dir="ltr"] .features-list li {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="ltr"] .features-list li::before {
    right: auto;
    left: 0;
}

/* Navbar Link Indicator */
[dir="ltr"] .nav-links a::after {
    left: 0;
    right: auto;
    width: 0;
}

[dir="ltr"] .nav-links a:hover::after,
[dir="ltr"] .nav-links a.active::after {
    width: 100%;
}

/* Fix Footer Alignment */
[dir="ltr"] .footer-grid {
    text-align: left;
}

/* Fix Input Fields */
[dir="ltr"] input,
[dir="ltr"] textarea {
    text-align: left;
}

/* Fix Testimonial Quotes */
[dir="ltr"] .quote-icon {
    left: 1.5rem;
    right: auto;
    /* Flip quote position */
    transform: scaleX(1);
}

/* General Direction Fixes */
[dir="ltr"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="ltr"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="ltr"] .text-end {
    text-align: right !important;
}

[dir="ltr"] .text-start {
    text-align: left !important;
}