/* ===== Font Face Definitions ===== */
@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Slanted.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-BoldSlanted.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  --primary-color: #FF6B35; /* يبقى لون ثابت لاستخدامه في النصوص أو الحدود */
  --primary-gradient: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --primary-gradient-hover :linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --primary-gradient-hover2 :linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  --primary-gradient-hover3 :linear-gradient(135deg, #FFA366, #3B5DB2);
  --primary-gradient-hover4 :0 0 12px rgba(255, 107, 53, 0.5);

    --secondary-color: #1E3A8A;
    --accent-color: #6B7280;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --white-color: #FFFFFF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    
    --font-primary: 'Amiri', 'Cairo', sans-serif;
    --font-secondary: 'Amiri', 'Roboto', sans-serif;
    --font-heading: 'Amiri', 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition: all 0.3s ease;
}


.animated-gradient {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  color: var(--white-color);
  padding: 1em;
  border-radius: 10px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

body.ar {
    font-family: var(--font-primary);
    direction: rtl;
}

body.en {
    font-family: var(--font-secondary);
    direction: ltr;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ar h1, .ar h2, .ar h3, .ar h4, .ar h5, .ar h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.img {
    max-width: 100%;
    height: auto;
}

/* ===== Project ===== */



/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo img {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Top Bar ===== */
.top-bar {
    font-size: 0.875rem;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

/* عند المرور بالماوس */
.navbar-nav .nav-link:hover::after {
    width: 100%;
    color: var(--primary-color) !important;
}

/* عند اختيار الرابط */
.navbar-nav .nav-link.active::after {
    width: 100%;
    color: var(--primary-color) !important;
}

/* شفافية خلفية أيقونة dropdown (السهم) */
.navbar .dropdown-toggle::after {
    background: transparent !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}


.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white;
}

.language-switcher .btn {
    border-radius: 20px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white-color);
}

.btn-primary:hover {
    background: v#e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-gradient);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient-hover);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}


/* ====== partners  =====*/
.partner-slider {
    display: flex;
    gap: 40px; /* المسافة بين الصور */
    animation: slide-back-forth 10s linear infinite;
}

.partner-item img {
    max-height: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* حركة رايحة جاية */
@keyframes slide-back-forth {
 0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
    }


/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  padding: 40px 0;
}

.clients-slider {
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  gap: 60px; /* المسافة بين الصور */
  animation: scroll-left 20s linear infinite;
}

.client img {
  height: 60px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: 0.3s;
}

.client img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* تجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
  .clients-track {
    gap: 40px;
  }
  .client img {
    height: 50px;
  }
}



/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(255, 107, 53, 0.8));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
}

.hero-features {
    margin-top: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero-feature i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-gradient);
}

.ar .hero-feature i {
    margin-right: 0;
    margin-left: 1rem;
}

/* ===== Statistics Section ===== */
.stats-section {
    background: #f9fafb;
    color: var(--primary-gradient);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
}

/* ===== About Section ===== */
.about-section {
    padding: 5rem 0;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ar .feature-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.feature-content h5 {
    color: var(--primary-gradient);
    margin-bottom: 0.5rem;
}

/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.service-card h4 {
    color: var(--primary-gradient);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* ===== Products Section ===== */
.products-section {
    padding: 5rem 0;
}

.product-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 1.5rem;
}

.product-content h5 {
    color: var(--primary-gradient);
    margin-bottom: 0.75rem;
}

.product-content p {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.testimonial-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-gradient);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    color: var(--primary-gradient);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning-color);
    margin: 0 2px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
}

.footer-widget h5 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

.ar .footer-widget h5::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gradient-hover);
    padding-left: 5px;
}

.ar .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links .social-link:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-3px);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info .contact-item i {
    color: var(--primary-gradient);
    width: 20px;
    flex-shrink: 0;
}

.newsletter-form .form-control {
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.copyright-section {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-inline a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links-inline a:hover {
    color: var(--primary-gradient-hover);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e55a2b;
    transform: translateY(-3px);
}

.ar .back-to-top {
    right: auto;
    left: 30px;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white-color);
    transform: scale(1.1);
}

.ar .whatsapp-float {
    right: auto;
    left: 30px;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card,
    .product-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .back-to-top,
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .ar .back-to-top,
    .ar .whatsapp-float {
        right: auto;
        left: 20px;
    }
    
    .whatsapp-float {
        bottom: 80px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .ar .footer-widget {
        text-align: center;
    }
    
    .ar .footer-widget h5::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Utility Classes ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light-gray {
    background-color: var(--light-color) !important;
}

.border-primary {
    border-color: var(--primary-gradient) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-custom {
    border-radius: var(--border-radius-lg) !important;
}

.font-weight-600 {
    font-weight: 600 !important;
}

.font-weight-700 {
    font-weight: 700 !important;
}

.line-height-1 {
    line-height: 1 !important;
}

.line-height-1-2 {
    line-height: 1.2 !important;
}

.line-height-1-5 {
    line-height: 1.5 !important;
}

