/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    direction: rtl;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.orange {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn--secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn--secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    text-align: center;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

.navbar__logo-img {
    width: 50px;
    height: auto;
}

.navbar__logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}




/* Language Switcher Styles */
.language-switcher {
    display: flex;
    margin-right: 1rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-btn {
    padding: 8px 15px;
    border: none;
    background-color: var(--light-color);
    color: var(--text-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.language-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.language-btn:first-child {
    border-right: 1px solid #ddd;
}

/* RTL/LTR direction classes */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Modern Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px; /* Adjust based on header height */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    text-align: right;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 600px;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background: var(--accent-color);
}

.prev {
    right: 20px;
}

.next {
    left: 20px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 95vh;
        min-height: 500px;
    }

    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
    }
    
}
/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature__card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature__description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Dark Theme About Section */
.about {
  padding: 80px 0;
  position: relative;
  background-color: #2C3E50; /* Dark background */
  color: #f5f5f5; /* Light text */
}

.about__content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about__text {
  flex: 1;
}

.about__image {
  flex: 1;
}

.about__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* Removed shadow */
  border: 1px solid rgba(255,255,255,0.1); /* Subtle border instead */
}

.section__title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;

  color: #ffffff; /* Bright white for headings */
}



.about__description {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #e0e0e0; /* Light gray for better readability */
}

.about__stats {
  display: flex;
  flex-wrap: wrap; /* Allow stats to wrap on smaller screens */
  gap: 25px;
  margin-top: 2.5rem;
}

.stat__item {
  text-align: center;
  background: rgba(255,255,255,0.05); /* Subtle stat background */
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 120px;
  transition: transform 0.3s ease;
}

.stat__item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

.stat__label {
  font-size: 1rem;
  color: #b0b0b0; /* Slightly dimmed label */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about__content {
    flex-direction: column;
    gap: 40px;
  }
  
  .about__image {
    order: -1; /* Image first on mobile */
  }
  
  .about__img {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .about__stats {
    gap: 15px;
    justify-content: center;
  }
  
  .stat__item {
    min-width: 100px;
    padding: 12px 15px;
  }
  
  .stat__number {
    font-size: 2rem;
  }
}
/* Contact Section */
.contact {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contact__content {
  display: flex;
  gap: 60px;
}

.contact__info {
  flex: 1;
}

.contact__form {
  flex: 1;
}

.section__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
     text-align: center;

}

.contact__description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: right; /* RTL alignment */
}

.contact__details {
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  text-align: right; /* RTL alignment */
}

.contact__icon {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact__social {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: var(--transition);
}

.social__link:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .contact {
    padding: 40px 0;
  }
  
  .contact__content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .section__title,
  .contact__description,
  .contact__item {
    text-align: center;
  }
  
  .contact__item {
    justify-content: center;
    flex-direction: row-reverse; /* Icon on right for RTL */
  }
  
  .contact__social {
    justify-content: center;
  }
  
  .contact__form {
    margin-top: 20px;
  }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer__logo-img {
    width: 40px;
    height: auto;
}

.footer__logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.footer__description {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__item {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer__item:hover {
    opacity: 1;
}

.footer__link {
    color: var(--white);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer__icon {
    color: var(--accent-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

/* =========================================== */
/* MOBILE STYLES (768px and below) */
/* =========================================== */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 15px 0;
        position: relative;
    }
    
    
    
    /* Adjust call button for mobile */
    .navbar__call {
        margin-right: auto;
        margin-left: 15px;
    }

    /* Dropdown Icon Animation */
    .navbar__dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .navbar__dropdown.active .navbar__dropdown-icon {
        transform: rotate(180deg);
    }
    
    /* Hide regular call button on mobile */
    .navbar__call {
        display: none;
    }
    
    /* Hero Section Adjustments */
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    /* About Section Stats */
    .about {
    padding: 40px 0;
  }
  
  .about__content {
    flex-direction: column-reverse; /* Image on top, text below */
    gap: 30px;
    text-align: center;
  }
  
  .about__image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .section__title {
    text-align: center;
    font-size: 1.8rem;
    
  }
  
  .section__title::after {
    margin: 15px auto; /* Center the underline */
        text-align: center;

  }
  
  .about__description {
    text-align: center;
    font-size: 1rem;
  }
  
  .about__stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat__item {
    margin-bottom: 15px;
  }
    
    /* Language Switcher Adjustments */
    .language-switcher {
        margin-right: 0;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .section__title {
        font-size: 1.8rem;
            text-align: center;

    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Contact Section Stack on Mobile */
    .contact__content {
        grid-template-columns: 1fr;
    }
}
/* Companies style */
.companies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.company__card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 80px; /* Space for button */
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.company__logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.company__logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition);
}

.company__title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.english-name {
    font-weight: 500;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
}

.company__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 60px;
}

.company__btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: calc(100% - 40px);
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Hover Effects */
.company__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.company__card:hover .company__logo {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .companies__grid {
        grid-template-columns: 1fr;
    }
    
    .company__logo-container {
        height: 100px;
    }
    
    .company__description {
        min-height: auto;
    }
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Changed to left for RTL */
  z-index: 999;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-btn i {
  font-size: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  width: max-content;
  background: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid #333;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Pulse Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.whatsapp-btn {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 60px;
    left: 78%;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-btn i {
    font-size: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}
.py-3{
    margin: 60px;
    
}

.ml-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
/* Override MailerLite's default form styles */
.ml-form-embedContainer .ml-form-embedWrapper,
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
    max-width: 100% !important;
    border-radius: 0% !important;

}
/* Responsive adjustments */
@media (max-width: 768px) {
    .ml-form-embedContainer .form-row {
        margin: 0;
    }
    
    .ml-form-embedContainer .ml-form-fieldRow {
        flex: 0 0 100%;
        padding: 0;
    }
    .product-img {
   
    object-fit: fill
    }
}