/* ==========================================
   i18n.css - Multi-Language Support Styles
   ========================================== */

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.lang-btn .flag-emoji {
    font-size: 1.2rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.lang-dropdown a.active {
    background: rgba(212, 175, 55, 0.15);
    font-weight: 600;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

/* RTL Navigation */
html[dir="rtl"] .navigation {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .sidebar.active {
    transform: translateX(0);
}

html[dir="rtl"] .sidebar:not(.active) {
    transform: translateX(100%);
}

/* RTL Grid Layouts */
html[dir="rtl"] .services-grid,
html[dir="rtl"] .projects-grid,
html[dir="rtl"] .trust-grid {
    direction: rtl;
}

/* RTL Icons */
html[dir="rtl"] .fa-arrow-right::before {
    content: "\f060";
    /* Left arrow */
}

html[dir="rtl"] .fa-arrow-left::before {
    content: "\f061";
    /* Right arrow */
}

/* RTL Forms */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

/* RTL Language Switcher */
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        right: 0;
        left: 0;
        width: 100%;
    }

    html[dir="rtl"] .lang-dropdown {
        right: 0;
        left: 0;
    }
}

/* Arabic Font Support */
html[lang="ar"] {
    font-family: 'Arial', 'Tahoma', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
/* ==========================================
   i18n.css - Multi-Language Support Styles
   ========================================== */

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.lang-btn .flag-emoji {
    font-size: 1.2rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.lang-dropdown a.active {
    background: rgba(212, 175, 55, 0.15);
    font-weight: 600;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

/* RTL Navigation */
html[dir="rtl"] .navigation {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .sidebar.active {
    transform: translateX(0);
}

html[dir="rtl"] .sidebar:not(.active) {
    transform: translateX(100%);
}

/* RTL Grid Layouts */
html[dir="rtl"] .services-grid,
html[dir="rtl"] .projects-grid,
html[dir="rtl"] .trust-grid {
    direction: rtl;
}

/* RTL Icons */
html[dir="rtl"] .fa-arrow-right::before {
    content: "\f060";
    /* Left arrow */
}

html[dir="rtl"] .fa-arrow-left::before {
    content: "\f061";
    /* Right arrow */
}

/* RTL Forms */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

/* RTL Language Switcher */
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        right: 0;
        left: 0;
        width: 100%;
    }

    html[dir="rtl"] .lang-dropdown {
        right: 0;
        left: 0;
    }
}

/* Arabic Font Support */
html[lang="ar"] {
    font-family: 'Arial', 'Tahoma', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Arial', 'Tahoma', sans-serif;
}

/* Russian/Cyrillic Font Support */
html[lang="ru"] {
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Sidebar Language Switcher */
.sidebar-lang {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-lang {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sidebar-lang a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-lang a:hover,
.sidebar-lang a.active {
    color: #d4af37;
}