/* Bilingual Website Styles */

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: auto;
    margin-right: 1rem;
}

.lang-toggle {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    position: relative;
    background: none;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.lang-btn .lang-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.lang-btn .lang-code {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.lang-btn:hover .lang-text,
.lang-btn:hover .lang-code {
    color: rgb(0, 0, 0);
}

.lang-btn.active .lang-text,
.lang-btn.active .lang-code {
    color: #1e3c72;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: white;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* RTL/LTR Direction Styles */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Font Family Adjustments */
.rtl {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ltr {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation Adjustments for RTL/LTR */
.rtl .navbar {
    direction: rtl;
}

.ltr .navbar {
    direction: ltr;
}

.rtl .nav-list {
    flex-direction: row-reverse;
}

.ltr .nav-list {
    flex-direction: row;
}

.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

.ltr .dropdown-menu {
    left: 0;
    right: auto;
}

/* Button and Link Adjustments */
.rtl .btn {
    direction: rtl;
}

.ltr .btn {
    direction: ltr;
}

/* Form Adjustments */
.rtl .form-group input,
.rtl .form-group select,
.rtl .form-group textarea {
    text-align: right;
    direction: rtl;
}

.ltr .form-group input,
.ltr .form-group select,
.ltr .form-group textarea {
    text-align: left;
    direction: ltr;
}

/* Icon Adjustments for RTL */
.rtl .fas.fa-chevron-down {
    transform: scaleX(-1);
}

.rtl .fas.fa-arrow-right {
    transform: scaleX(-1);
}

.rtl .fas.fa-arrow-left {
    transform: scaleX(-1);
}

/* Grid and Flex Adjustments */
.rtl .features-grid,
.rtl .products-grid {
    direction: rtl;
}

.ltr .features-grid,
.ltr .products-grid {
    direction: ltr;
}

/* Contact Section Adjustments */
.rtl .contact-content {
    direction: rtl;
}

.ltr .contact-content {
    direction: ltr;
}

.rtl .contact-item {
    text-align: right;
}

.ltr .contact-item {
    text-align: left;
}

/* Footer Adjustments */
.rtl .footer-content {
    direction: rtl;
}

.ltr .footer-content {
    direction: ltr;
}

.rtl .social-links {
    justify-content: flex-start;
}

.ltr .social-links {
    justify-content: flex-start;
}

/* Language-specific Typography */
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

.ltr h1, .ltr h2, .ltr h3, .ltr h4, .ltr h5, .ltr h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.rtl p, .rtl span, .rtl div {
    font-family: 'Cairo', sans-serif;
}

.ltr p, .ltr span, .ltr div {
    font-family: 'Inter', sans-serif;
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0;
        margin-left: 0;
        order: -1;
    }
    
    .lang-toggle {
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .lang-btn .lang-text {
        font-size: 0.7rem;
    }
    
    .lang-btn .lang-code {
        font-size: 0.6rem;
    }
}

/* Animation for Language Switch */
.language-transition {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Smooth transitions for direction changes */
* {
    transition: text-align 0.3s ease, direction 0.3s ease;
}

/* Language-specific number formatting */
.rtl .stat-number {
    font-family: 'Cairo', sans-serif;
}

.ltr .stat-number {
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb adjustments */
.rtl .breadcrumb {
    direction: rtl;
}

.ltr .breadcrumb {
    direction: ltr;
}

.rtl .breadcrumb::before {
    content: "←";
}

.ltr .breadcrumb::before {
    content: "→";
}

/* Card overlay adjustments */
.rtl .card-overlay {
    text-align: right;
}

.ltr .card-overlay {
    text-align: left;
}

/* Feature item adjustments */
.rtl .feature-item {
    text-align: right;
}

.ltr .feature-item {
    text-align: left;
}

/* Language-specific spacing */
.rtl .section-header {
    text-align: right;
}

.ltr .section-header {
    text-align: left;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .rtl .nav-menu {
        right: 0;
        left: auto;
    }
    
    .ltr .nav-menu {
        left: 0;
        right: auto;
    }
}

/* Print styles for both languages */
@media print {
    .language-switcher {
        display: none;
    }
    
    .rtl * {
        direction: rtl !important;
        text-align: right !important;
    }
    
    .ltr * {
        direction: ltr !important;
        text-align: left !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lang-toggle {
        border: 2px solid;
    }
    
    .lang-slider {
        box-shadow: 0 0 0 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lang-btn,
    .lang-slider,
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.lang-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.lang-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Language indicator for screen readers */
.lang-btn[aria-current="true"]::after {
    content: " (current)";
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}



/* Fixed Header Styles */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1e3c72 0%, #ffffff 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Add padding to body to compensate for fixed header */
body {
    padding-top: 80px !important;
}

/* Header scroll effect */
.header.scrolled {
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Ensure navbar container has proper spacing */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile responsive adjustments for fixed header */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
    
    .navbar .container {
        padding: 0.8rem 1rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Adjust scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Hero section adjustments for fixed header */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
}

