:root {
    --primary: #0a2540;
    --secondary: #0066cc;
    --accent: #ff6b00;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    /* Light theme colors only */
    --bg-color: #f8fafc;
    --text-color: #1a1a2e;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a1a2e;
    --section-bg: #f8fafc;
    --section-alt-bg: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
	
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
    text-align: left;
}

/* RTL specific styles */
html[dir="rtl"] {
    font-family: 'Inter', sans-serif;
    text-align: right;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Glassmorphism Design */
header {
    background: var(--primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.5s ease;
}


@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-scrolled {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: padding 0.3s ease;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
   /* padding: 10px 0;*/
    background: rgb(254, 240, 240);
    background: linear-gradient(90deg, rgba(254, 240, 240, 1) 0%, rgba(255, 255, 255, 1) 33%, rgba(255, 255, 255, 1) 67%, rgba(254, 240, 240, 1) 100%);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    overflow: visible !important;
}

.logo-image {
    width: 100px;
    height: 75px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.logo-image img {
    width: 75%;
    height: Auto%;
	
    object-fit: contain;
    border-radius: 10px;
}


/* Mobile breakpoints */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
        overflow: visible !important;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .logo-text {
        overflow: visible !important;
    }
    
    .logo-text h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }
    
    .logo-text span, .logo-text .company-tagline {
        font-size: 10px;
        white-space: nowrap;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }
    
    .header-container {
        padding: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo-image {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .logo-text h1 {
        font-size: 14px;
    }
    
    .logo-text span, .logo-text .company-tagline {
        font-size: 9px;
    }
    
    .header-container {
        padding: 8px 0 !important;
    }
}

@media (max-width: 360px) {
    .logo-text h1 {
        font-size: 13px;
    }
    
    .logo-text span, .logo-text .company-tagline {
        font-size: 8px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

html[dir="rtl"] nav ul {
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

html[dir="rtl"] nav ul li a::after {
    left: auto;
    right: 0;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
    z-index: 1002;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
    font-weight: 600;
    white-space: nowrap;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 140px;
    display: none;
    z-index: 1003;
    overflow: hidden;
}


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

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    color: var(--text-color);
    min-height: 44px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

html[dir="rtl"] .language-option {
    text-align: right;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.language-option img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 15px;
        position: relative;
        z-index: 1002;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .language-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-width: auto;
    }
    
    .language-text {
        display: inline-block;
    }
    
    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        transform: none;
        width: auto;
        min-width: 140px;
        max-width: 200px;
        z-index: 1003;
    }
    
    html[dir="rtl"] .language-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        margin-left: 10px;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .language-btn {
        padding: 8px 10px;
        font-size: 13px;
        gap: 6px;
    }
    
    .language-text {
        display: none;
    }
    
    .language-btn .language-text {
        display: none;
    }
    
    .language-dropdown {
        min-width: 120px;
        max-width: 160px;
    }
}

@media (max-width: 360px) {
    .language-switcher {
        margin-left: 8px;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 0;
        margin-right: 8px;
    }
    
    .language-btn {
        padding: 6px 8px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animated Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) translateX(500px) rotate(720deg);
        opacity: 0;
    }
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    min-height: 60px;
    min-width: 180px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-1);
    border-radius: 5px;
}

html[dir="rtl"] .section-title h2::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.section-title p {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* About Section */
.about {
  padding: 80px 0;
  background: linear-gradient(135deg, #f7f9fc 0%, #eaf1f9 100%);
  color: #0a2540;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(0,102,204,0.15), rgba(255,107,0,0.15));
  transition: all 0.5s ease;
}

.feature:hover::before {
  left: 0;
}

.feature:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.25);
}

.feature h4 {
  color: #0a2540;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.feature:hover h4 {
  color: #0066cc;
}

.feature p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.feature:hover p {
  color: #222;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}


html[dir="rtl"] .about-text h3 {
    text-align: right;
}


html[dir="rtl"] .about-text p {
    text-align: right;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

html[dir="rtl"] .about-image {
    transform: perspective(1000px) rotateY(-5deg);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


.feature:hover {
    transform: translateY(-15px);
    color: white;
}

.feature:hover::before {
    opacity: 1;
	
}

.feature h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Products Section */
.products {
    padding: 70px 20px;
    background: #fff;
}

.products .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.products .section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0a2540;
}

.products .section-title p {
    font-size: 16px;
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Product Video Container */
.product-video {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f2f4f8;
}

.feature1-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .feature1-video {
    transform: scale(1.06);
}

/* Video Overlay Small */
.video-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-video:hover .video-overlay-small {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background: white;
    transform: scale(1.1);
}

.play-icon i {
    color: #333;
    font-size: 20px;
    margin-left: 3px;
}

/* Product Content */
.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 10px;
}

.product-description {
    font-size: 19px;
    line-height: 1.6;
    color: #444;
}

/* Partners Section */
.partners {
    background: var(--section-alt-bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
}

.partner-logo {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
	 background: linear-gradient(120deg, rgba(0,102,204,0.15), rgba(255,107,0,0.15));
  transition: all 0.5s ease;
    transition: opacity 0.4s ease;
}

.partner-logo:hover {
    transform: translateY(-10px);
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    
    opacity: 1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.partner-logo:hover  {
 transform: translateY(-10px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.12);}

/* Footer with Integrated Map */
footer {
    background: var(--primary);
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

html[dir="rtl"] .footer-main {
    direction: rtl;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a0c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.footer-logo-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-about {
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-links-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

html[dir="rtl"] .footer-links-section h3::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
    font-size: 14px;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

html[dir="rtl"] .footer-links li a::before {
    left: auto;
    right: 0;
}

.footer-links li a:hover {
    color: white;
    padding-left: 8px;
}

html[dir="rtl"] .footer-links li a:hover {
    padding-left: 0;
    padding-right: 8px;
}

.footer-links li a:hover::before {
    width: 15px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer Map Section */
.footer-map-section {
    grid-column: 2/5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-map-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-map-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

html[dir="rtl"] .footer-map-section h3::after {
    left: auto;
    right: 0;
}

.footer-map-frame {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-grow: 1;
}

.footer-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.map-info p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 10px;
}

.map-info .contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Footer Responsive Design */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-map-section {
        grid-column: 1 / -1;
        margin-top: 30px;
    }
    
    .footer-map-frame {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 50px 0 15px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        text-align: center;
        flex-direction: column;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow);
    border: none;
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Top Section */
.top-section {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background-color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        transform: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.8rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    html[dir="rtl"] nav ul {
        left: auto;
        right: 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        color: white;
        font-size: 1.1rem;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: 700px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    html[dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Styles */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.loading-indicator.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Video Showcase Section */
.video-showcase {
    background: var(--section-alt-bg);
    padding: 100px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    cursor: pointer;
    background: var(--card-bg);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.operations-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transition: all 0.3s ease;
}

.video-caption h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.video-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Enhanced About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 2.2rem;
    margin: 40px 0 20px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text h3::after {
  ontent: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-1);
    border-radius: 5px;
}

html[dir="rtl"] .about-text h3::after {
    left: auto;
    right: 0;
}


/* Responsive Design for About Page */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .video-showcase {
        padding: 80px 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .operations-video {
        height: 250px;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-showcase {
        padding: 60px 0;
    }
    
    .operations-video {
        height: 200px;
    }
    
    .video-caption {
        padding: 20px 15px 15px;
    }
    
    .video-caption h4 {
        font-size: 1.1rem;
    }
    
    .video-caption p {
        font-size: 0.8rem;
    }
}

/* Animation for video items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item {
    animation: fadeInUp 0.6s ease forwards;
}

.video-item:nth-child(2) {
    animation-delay: 0.2s;
}

.video-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading state for videos */
.video-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* Enhanced feature cards for about page */
.about .feature {
    text-align: left;
    padding: 30px 25px;
}

.about .feature h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about .feature h4::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: #6974db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

html[dir="rtl"] .about .feature {
    text-align: right;
}

/* Enhanced Products Section */
.products {
    padding: 100px 0;
    background: var(--section-bg);
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
}

.product-image {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.product-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.spec {
    background: var(--gradient-1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Multiple Images Section */
.multi-image-container {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.multi-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-image:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.multi-image.active {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Auto Slideshow Controls */
.auto-slideshow {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.auto-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.auto-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.timer-display {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 1s linear;
    border-radius: 2px;
}

/* Technical Specifications Section */
.tech-specs {
    padding: 80px 0;
    background: var(--section-alt-bg);
}

.specs-table {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.specs-table th {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.specs-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #555;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table tr:hover {
    background: #f1f5f9;
}

/* Responsive Design for Products Page */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products {
        padding: 80px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .auto-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .specs-table {
        border-radius: 10px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 60px 0;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .multi-image-container {
        gap: 6px;
    }
    
    .multi-image {
        width: 50px;
        height: 50px;
    }
    
    .auto-slideshow {
        padding: 12px;
    }
    
    .tech-specs {
        padding: 60px 0;
    }
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

.product-card:nth-child(5) {
    animation-delay: 0.4s;
}

.product-card:nth-child(6) {
    animation-delay: 0.5s;
}

.product-card:nth-child(7) {
    animation-delay: 0.6s;
}

/* Loading state for images */
.product-image-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* RTL Support for Products */
html[dir="rtl"] .specs-table th {
    text-align: right;
}

html[dir="rtl"] .auto-controls {
    flex-direction: row-reverse;
}

html[dir="rtl"] .auto-toggle {
    flex-direction: row-reverse;
}

html[dir="rtl"] .image-counter {
    right: auto;
    left: 15px;
}

/* --- Enhanced Sticky Header --- */
header {
    background: var(--primary);
    transition: all 0.5s ease;
    position: relative;
    width: 100%;
    z-index: 999;
}

/* --- Full-width Sticky Header --- */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    padding: 8px 0;
    transition: all 0.5s ease-in-out;
    animation: stickySlideDown 0.4s ease forwards;
    z-index: 10000;
}

@keyframes stickySlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes smoothSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header.sticky .logo-text h1 {
    font-size: 38px;
    transition: font-size 0.3s ease;
}

header.sticky .logo-text span, .logo-text .company-tagline {
    font-size: 18px;
    transition: font-size 0.3s ease;
}










/* ===== Logo Split Animation ===== */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* الاسم الرئيسي */
.company-name {
  font-family: Arial black, sans-serif;
  font-size: 3.9rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: red;
  text-transform: uppercase;
  display: inline-block;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInLeft 1.6s ease-out forwards;
}

/* الوصف التحتي */
.company-tagline {
  font-family: Arial black, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  /*letter-spacing: 2px;*/
  text-transform: uppercase;
  color: Black;
  margin-top: -20px;
  margin-right: 15px;
  display: inline-block;
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 1.6s ease-out 0.4s forwards;
}

/* الحركات */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}










/* ===== Mobile Header (Logo + Name Side by Side) ===== */
@media (max-width: 768px) {
    header {
        background: var(--primary);
        position: relative;
    }

    .header-container {
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px 0;
        background: none;
        width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        flex-direction: row;
        text-align: left;
    }

    .logo-image {
        flex-shrink: 0;
        width: 55px;
        height: 55px;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 8px;
    }

    .logo-text h1 {
        font-size: 45px;
        line-height: 1.1;
        margin: 0;
    }

    .logo-text span, .logo-text .company-tagline {
        font-size: 20px;
        
        margin-top: 2px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        margin-top: 0px;
    }

    .language-switcher {
        margin-top: 6px;
    }
}

/* For very small phones */
@media (max-width: 480px) {
    .logo-image {
        width: 45px;
        height: 45px;
    }

    .logo-text h1 {
        font-size: 25px;
		
    }

    .logo-text span, .logo-text .company-tagline {
		margin-left:0px;
       font-size: 15px;
		letter-spacing: 0px;
    }
}














/* ===== Sticky Header Perfect Fix ===== */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(10, 37, 64, 0.97); /* لون خلفية مع شفافية خفيفة */
    backdrop-filter: blur(6px); /* يعطي تأثير زجاجي ناعم */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* عند التمرير يعطي شكل أنيق */
header.scrolled {
    background: rgba(10, 37, 64, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ضبط المسافة بين الهيدر وبداية الصفحة */
body {
    scroll-padding-top: 90px; /* حتى لا يغطي الهيدر أي عنصر */
}

/* تأكيد عدم التداخل مع الأقسام الأولى */
.top-section {
    margin-bottom: 0;
}

/* ================================================== */
/* Unified Header / RTL Alignment Overrides (single)  */
/* Added by ChatGPT on 2025-11-08                     */
/* ================================================== */

/* 1) Logo container alignment (LTR default: left) */
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
  background: linear-gradient(90deg, rgba(254, 240, 240, 1) 0%, rgba(255, 255, 255, 1) 33%, rgba(255, 255, 255, 1) 67%, rgba(254, 240, 240, 1) 100%);
}

/* 2) Header + nav + switcher layout (LTR default) */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  gap: 16px;
}

nav {
  flex-grow: 1;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: flex-start;
  margin-left: 40px;
}

.language-switcher {
  margin-inline-start: 20px;
  margin-inline-end: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo-container { padding-left: 20px; }
  .header-container { padding: 12px 20px; }
  nav ul { margin: 0; justify-content: center; }
}

/* ================================================== */
/* When the HTML element is set to dir="rtl" (Arabic) */
/* ================================================== */

/* Flip logo to the right in RTL */
html[dir="rtl"] .logo-container {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: 40px;
}

/* Reverse header order so nav appears on the right and switcher on the left */
html[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}

/* Nav alignment in RTL */
html[dir="rtl"] nav ul {
  justify-content: flex-end;
  margin-left: 0;
  margin-right: 40px;
}

/* Language switcher position in RTL */
html[dir="rtl"] .language-switcher {
  margin-inline-start: 0;
  margin-inline-end: 20px;
}

/* Make dropdown open from the correct side in RTL */
html[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
}

/* Mobile RTL tweak */
@media (max-width: 768px) {
  html[dir="rtl"] .logo-container { padding-right: 20px; }
}

/* ================================================== */
/* Flex Order Fix — Language Switcher Position Update */
/* ================================================== */

/* Default (LTR): Nav left, Switcher right */
.header-container {
  display: flex;
  align-items: center;
}
nav {
  order: 1;
  flex: 1;
}
.language-switcher {
  order: 2;
  margin-left: auto;
}

/* RTL: Switcher left, Nav right */
html[dir="rtl"] nav {
  order: 2;
}
html[dir="rtl"] .language-switcher {
  order: 1;
  margin-left: 0;
  margin-right: auto;
}

/* RTL dropdown opens from the left side */
html[dir="rtl"] .language-dropdown {
  right: auto;
  left: -55px;
}

/* ===== FINAL RTL HEADER OVERRIDES (Strong) ===== */

/* 1) Disable row-reverse for header in RTL */
html[dir="rtl"] .header-container {
  flex-direction: row !important;
}

/* 2) Language switcher left, nav right */
html[dir="rtl"] .language-switcher {
  order: 1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
html[dir="rtl"] nav {
  order: 2 !important;
  flex: 1 1 auto !important;
}
html[dir="rtl"] nav ul {
  justify-content: flex-end !important;
  margin-left: 0 !important;
  margin-right: 40px !important;
}

/* 3) Top logo alignment fix */
html[dir="rtl"] .logo-container {
  justify-content: flex-end !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
}

/* ===== FINAL LOGO ALIGNMENT FIX ===== */

/* Default: left-aligned (LTR) */
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
  padding-right: 0;
}

/* Arabic (RTL): right-aligned */
html[dir="rtl"] .logo-container {
  justify-content: flex-end !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
  flex-direction: row-reverse !important;
}

/* Adjust logo text spacing for RTL */
html[dir="rtl"] .logo-text {
  text-align: right !important;
  margin-right: 15px !important;
  margin-left: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-container {
    padding-left: 20px;
  }
  html[dir="rtl"] .logo-container {
    padding-right: 20px !important;
  }
}

/* === FINAL LOGO RTL ALIGN FIX === */

/* Default (LTR): left alignment */
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
  padding-right: 0;
}

/* RTL (Arabic): right alignment */
html[dir="rtl"] .logo-container {
  justify-content: flex-end !important;
  flex-direction: row-reverse !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
}

/* Adjust text beside logo in RTL */
html[dir="rtl"] .logo-text {
  text-align: right !important;
  margin-right: 10px !important;
  margin-left: 0 !important;
}



/* ===== STICKY HEADER FIX ===== */
#mainHeader {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1005; /* above hero/video */
  will-change: transform, background-color;
}
/* Compact style on scroll */
#mainHeader.header-scrolled {
  background: var(--header-bg);
  box-shadow: var(--shadow);
  padding: 6px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.2s ease;
}
/* Ensure sticky works in RTL equally (no directional overrides needed) */
html[dir="rtl"] #mainHeader { left: 0; right: 0; }



/* ===== FIXED HEADER (RTL/LTR SAFE) ===== */
:root { --header-offset: 0px; }

#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
}

html[dir="rtl"] #mainHeader { left: 0; right: 0; }

/* Push content below the fixed header */
.hero { margin-top: var(--header-offset); }

/* Compact style on scroll */
#mainHeader.header-scrolled {
  background: var(--primary);
  box-shadow: var(--shadow);
  padding: 6px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.2s ease;
}



/* ==== STICKY BELOW LOGO (FINAL) ==== */
/* Ensure the header is below the top banner and only sticks after banner scrolls out */
#mainHeader {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

/* No artificial offset on hero/content */
.hero { margin-top: 0 !important; }

/* If any previous fixed-header rules exist, neutralize them */
:root { --header-offset: 0px !important; }
html[dir="rtl"] #mainHeader { left: 0 !important; right: 0 !important; }



/* ===== RTL STICKY HEADER ORDER FIX (FINAL) ===== */
/* Ensure RTL alignment works both before and after .header-scrolled is applied */

#mainHeader .header-container {
  display: flex;
  align-items: center;
}

/* LTR defaults: nav left, switcher right */
#mainHeader nav { order: 1; flex: 1; }
#mainHeader .language-switcher { order: 2; margin-left: auto; }

/* RTL: force same order whether sticky or not */
html[dir="rtl"] #mainHeader .header-container { flex-direction: row-reverse !important; }
html[dir="rtl"] #mainHeader.header-scrolled .header-container { flex-direction: row-reverse !important; }

html[dir="rtl"] #mainHeader nav { order: 2 !important; flex: 1 1 auto !important; }
html[dir="rtl"] #mainHeader nav ul { justify-content: flex-end !important; margin-left: 0 !important; margin-right: 40px !important; }

html[dir="rtl"] #mainHeader .language-switcher { order: 1 !important; margin-left: 0 !important; margin-right: auto !important; }



/* ===== CENTERED STICKY HEADER (LTR + RTL) ===== */
#mainHeader .header-container {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  gap: 40px;
}
#mainHeader nav ul {
  justify-content: center !important;
  text-align: center;
  margin: 0 auto;
  gap: 30px;
}
#mainHeader .language-switcher {
  position: relative;
  margin: 0;
}
html[dir="rtl"] #mainHeader .header-container {
  flex-direction: row !important;
  justify-content: center !important;
}



/* ===== TRUE CENTERED STICKY HEADER (RTL + LTR FINAL) ===== */

/* Center header content horizontally in both directions */
#mainHeader .header-container {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: row !important; /* Always row, even in RTL */
  gap: 40px;
  text-align: center;
}

/* Center navigation items */
#mainHeader nav ul {
  display: flex;
  justify-content: center !important;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  gap: 30px;
}

/* Center the language switcher too */
#mainHeader .language-switcher {
  position: relative;
  margin: 0 auto !important;
}

/* RTL should NOT reverse direction, keep it centered */
html[dir="rtl"] #mainHeader .header-container,
html[dir="rtl"] #mainHeader.header-scrolled .header-container {
  flex-direction: row !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Just in case something pushes it sideways */
html[dir="rtl"] #mainHeader nav ul {
  margin: 0 auto !important;
  justify-content: center !important;
}



/* ===== Responsive Mobile Nav (RTL + LTR) ===== */
@media (max-width: 992px) {
  .mobile-menu { 
    display: inline-flex !important; 
  }
  #mainHeader nav ul {
    position: fixed;
    top: calc(var(--header-offset, 0px) + 56px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    margin: 0;
    box-shadow: var(--shadow);
    z-index: 1100;
  }
  html.nav-open #mainHeader nav ul {
    display: flex;
  }
  #mainHeader nav ul li a {
    padding: 14px 20px;
    color: var(--text-color);
  }
  html[dir="rtl"] #mainHeader nav ul li a {
    text-align: right;
  }
  html:not([dir="rtl"]) #mainHeader nav ul li a {
    text-align: left;
  }
  #mainHeader .header-container {
    justify-content: space-between !important;
  }
  #mainHeader .language-switcher { 
    z-index: 1101; 
  }
}


/* =============================
   Modern Logo Font Styling
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

.logo-text h1.company-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; /* Bold */
  font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
  color: #000; /* Modern black */
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1px;
}

.logo-text h3.company-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400; /* Not bold */
  font-size: clamp(1rem, 1vw + 0.6rem, 1.4rem);
  color: #000; /* Modern black */
  margin: 2px 0 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-text h1.company-name {
    font-size: 1.6rem;
  }
  .logo-text h3.company-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-text h1.company-name {
    font-size: 1.4rem;
  }
  .logo-text h3.company-tagline {
    font-size: 0.9rem;
  }
}


/* =============================
   Multilingual Font System
   ============================= */
/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

/* Default (English / French) */
body[lang="en"], 
body[lang="fr"], 
html[lang="en"], 
html[lang="fr"] {
  font-family: 'Poppins', sans-serif;
}

/* Arabic font, larger for better readability */
body[lang="ar"], 
html[lang="ar"] {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15em; /* 15% larger Arabic text */
}

/* Logo section multilingual styling */
.logo-text h1.company-name,
.logo-text h3.company-tagline {
  font-family: 'Poppins', sans-serif;
  color: #000;
}

/* Arabic version of logo text */
html[lang="ar"] .logo-text h1.company-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 800; /* Bold for H1 */
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  color: #000;
}
html[lang="ar"] .logo-text h3.company-tagline {
  font-family: 'Cairo', sans-serif;
  font-weight: 400; /* Not bold for H3 */
  font-size: clamp(1.2rem, 1.5vw + 0.6rem, 1.6rem);
  color: #000;
}


/* =============================
   Enhanced Logo Font Styling
   ============================= */

/* English / French logo */
.logo-text h1.company-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 900; /* Extra bold */
  font-size: clamp(2.2rem, 2.5vw + 1rem, 3.2rem);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
  margin: 0;
}

.logo-text h3.company-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.5rem);
  color: #333;
  text-transform: none;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Arabic logo */
html[lang="ar"] .logo-text h1.company-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 2.8vw + 1rem, 3.5rem);
  color: #000;
  letter-spacing: 0.5px;
}

html[lang="ar"] .logo-text h3.company-tagline {
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.6vw + 0.6rem, 1.8rem);
  color: #222;
}


/* =============================
   Balanced Logo Font Styling (Final)
   ============================= */

/* English / French logo */
.logo-text h1.company-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 900; /* Extra bold */
  font-size: clamp(2rem, 2.2vw + 0.8rem, 2.8rem);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  margin: 0;
}

.logo-text h3.company-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem);
  color: #333;
  text-transform: none;
  letter-spacing: 0.4px;
  margin-top: 4px;
  line-height: 1.2;
}

/* Arabic logo */
html[lang="ar"] .logo-text h1.company-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 2.5vw + 0.9rem, 3rem);
  color: #000;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.1;
}

html[lang="ar"] .logo-text h3.company-tagline {
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw + 0.5rem, 1.5rem);
  color: #222;
  margin-top: 3px;
  line-height: 1.2;
}

/* Responsive refinement */
@media (max-width: 768px) {
  .logo-text h1.company-name {
    font-size: 1.6rem;
  }
  .logo-text h3.company-tagline {
    font-size: 1rem;
  }

  html[lang="ar"] .logo-text h1.company-name {
    font-size: 1.9rem;
  }
  html[lang="ar"] .logo-text h3.company-tagline {
    font-size: 1.2rem;
  }
}


/* =============================
   Premium Multilingual Stepped Logo Styling (Final)
   ============================= */

/* Logo container layout */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left aligned for stepped layout */
  line-height: 1;
}

/* English / French logo */
html[lang="en"] .logo-text h1.company-name,
html[lang="fr"] .logo-text h1.company-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 2.3vw + 0.8rem, 2.9rem);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

html[lang="en"] .logo-text h3.company-tagline,
html[lang="fr"] .logo-text h3.company-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; /* bold */
  font-size: clamp(1.1rem, 1.1vw + 0.5rem, 1.4rem);
  color: #333;
  letter-spacing: 0.5px;
  margin-top: 4px;
  margin-left: 10px; /* stepped effect */
  line-height: 1.1;
}

/* Arabic logo */
html[lang="ar"] .logo-text {
  align-items: flex-end;
}

html[lang="ar"] .logo-text h1.company-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 2.6vw + 0.9rem, 3rem);
  color: #000;
  letter-spacing: 0.3px;
  margin: 0;
}

html[lang="ar"] .logo-text h3.company-tagline {
  font-family: 'Cairo', sans-serif;
  font-weight: 700; /* bold Arabic */
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.6rem);
  color: #222;
  margin-top: 4px;
  margin-right: 10px; /* mirrored step */
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html[lang="en"] .logo-text h1.company-name,
  html[lang="fr"] .logo-text h1.company-name {
    font-size: 1.7rem;
  }
  html[lang="en"] .logo-text h3.company-tagline,
  html[lang="fr"] .logo-text h3.company-tagline {
    font-size: 1.1rem;
    margin-left: 6px;
  }

  html[lang="ar"] .logo-text h1.company-name {
    font-size: 2rem;
  }
  html[lang="ar"] .logo-text h3.company-tagline {
    font-size: 1.3rem;
    margin-right: 6px;
  }
}
