/* Arabic Home Page Styles */
/* New Vision Premium Homepage Styles - Light & Professional Theme */

/* --- General & Variables --- */
:root {
    /* New Vision Brand Colors */
    --brand-primary: #0d2d68;     /* Deep Navy Blue */
    --brand-success: #11a976;     /* Success Green */
    --brand-info: #2473be;        /* Info Blue */
    --brand-accent: #00e5fa;      /* Cyan Accent */
    --brand-dark: #0a0a0c;        /* Almost Black */
    
    /* Applied Colors */
    --bg-light: #ffffff;
    --bg-light-accent: #f8f9fa;
    --primary-accent: var(--brand-primary);
    --secondary-accent: var(--brand-accent);
    --text-dark: var(--brand-dark);
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(13, 45, 104, 0.1);
    --shadow-color: rgba(13, 45, 104, 0.15);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'IBM Plex Sans Arabic', sans-serif; 
    margin: 0;
    padding: 0;
}

.home-main {
    overflow-x: hidden;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Section Base --- */
.home-main section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 5s ease infinite;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    min-height: 100vh;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(25deg, rgba(13, 45, 104, 0.6), rgba(10, 10, 12, 0.8)); /* New Vision branded gradient overlay */
    z-index: 1;
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    max-width: 800px;
    position: relative; /* Ensure content sits above the overlay */
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-info));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 4s ease infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .btn {
    margin: 0 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-actions .btn .lucide {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-success));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--shadow-color);
    background: linear-gradient(90deg, var(--brand-success), var(--brand-accent));
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-3px);
}

.hero-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* --- Trust Section --- */
/* Removed old trust section + icon list styles in favor of the new premium logo slider */
/* .trust-section { ... } */
/* .trust-title { ... } */
/* .trust-logos { ... } */
/* .trust-logos .lucide { ... } */
/* .trust-logos .lucide:hover { ... } */

/*
--- Trust Indicators / Logo Slider ---
*/

.trust-section {
    background-color: #f8f9fa; /* A very light grey for subtle separation */
    padding: 60px 0;
    border-top: 1px solid var(--glass-border); /* fixed undefined --section-border */
    border-bottom: 1px solid var(--glass-border); /* fixed undefined --section-border */
}

.trust-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- تحسين حركة الشعار (seamless marquee) --- */
.logo-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    direction: ltr;
    background: var(--bg-light);
    padding: 30px 0;
}

.logo-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    animation: logo-marquee 40s linear infinite;
    will-change: transform;
    min-width: 100%;
    align-items: center;
}

/* توحيد ارتفاع جميع الصور */
.logo-slider .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    max-width: 200px;
    height: 120px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-slider .slide:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ضبط الصور لتكون بارتفاع موحد */
.logo-slider .slide img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 8px auto;
    display: block;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-slider .slide:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* اسم الشركة */
.trusted-company-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* إزالة المسافة بين التكرارات */
.slide.no-gap {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.logo-track .slide.no-gap + .slide {
    margin-left: 0 !important;
}

@keyframes logo-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

/* تحسين استجابة الشريط */
@media (max-width: 768px) {
    .logo-slider .slide {
        min-width: 100px;
        max-width: 150px;
        height: 100px;
        padding: 0 10px;
    }
    
    .logo-slider .slide img {
        max-height: 60px;
    }
    
    .trusted-company-name {
        font-size: 0.75rem;
    }
    
    .logo-track {
        gap: 2rem;
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .logo-slider .slide {
        min-width: 80px;
        max-width: 120px;
        height: 90px;
        padding: 0 8px;
    }
    
    .logo-slider .slide img {
        max-height: 50px;
    }
    
    .trusted-company-name {
        font-size: 0.7rem;
    }
    
    .logo-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
}

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

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    background: var(--bg-light);
}

.feature-icon {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-accent);
}

.feature-icon .lucide {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Industries Section --- */
.industries-section {
    background-color: var(--bg-light-accent);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.industry-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.industry-icon .lucide {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.industry-card:hover .industry-icon .lucide {
    color: var(--primary-accent);
}

.industry-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.industry-card:hover h4 {
    color: var(--primary-accent);
}

/* --- Tech Stack Section --- */
.techstack-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    list-style: none;
    padding: 0;
}

.tech-icon .lucide {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-icon .lucide:hover {
    color: var(--primary-accent);
    transform: translateY(-5px) scale(1.1);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--bg-light);
    margin-bottom: 30px;
}

.cta-btn {
    background: white;
    color: var(--primary-accent);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact section styles for homepage */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.contact-info .section-title {
    text-align: right;
    margin-bottom: 20px;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-dark, #212529); }
.contact-list .lucide { width: 20px; height: 20px; color: var(--primary-accent); }

.contact-form { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 82, 212, 0.08); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row + .form-row { margin-top: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-weight: 600; margin-bottom: 6px; color: #343a40; }
.form-field input, .form-field textarea { border: 1px solid #dee2e6; border-radius: 8px; padding: 12px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.15); }
.error-msg { color: var(--brand-primary); font-size: 12px; min-height: 16px; margin-top: 4px; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 14px; color: #198754; }

.phone-ltr { direction:ltr; unicode-bidi:bidi-override; display:inline-block; color: var(--text-dark, #212529); }

.contact-list .phone-ltr { color: var(--text-dark, #212529) !important; font-weight:600; opacity:1; }

/* WhatsApp link styling */
.whatsapp-link {
  color: #25D366 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-link:hover {
  color: #128C7E !important;
  text-decoration: none;
}

.whatsapp-link .phone-ltr {
  color: #25D366 !important;
}

.whatsapp-link:hover .phone-ltr {
  color: #128C7E !important;
}

/* WhatsApp icon hover effect */
.contact-list li:has(.whatsapp-link):hover svg {
  fill: #128C7E !important;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.4;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px 40px;
    }
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.4;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .tech-icon .lucide {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 575px) {
    body:not([class*="elementor-page-"]) .site-main.home-main {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
    }
}

@media (max-width: 480px) {
    .home-main section {
        padding: 60px 0;
    }
    .hero-content {
        padding: 20px;
        border-radius: 10px;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .trust-logos {
        flex-wrap: wrap;
        gap: 20px;
    }
}

body:not([class*="elementor-page-"]) .site-main.home-main {
    max-width: 100% !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
}

/* ========================================
   RTL OVERRIDES FOR PREMIUM SECTIONS
   ======================================== */

/* Capabilities Section RTL */
.capabilities-premium-section[dir="rtl"] .capability-arrow svg,
body[dir="rtl"] .capability-arrow svg,
html[dir="rtl"] .capability-arrow svg {
    transform: scaleX(-1);
}

body[dir="rtl"] .capability-card-premium:hover .capability-arrow svg,
html[dir="rtl"] .capability-card-premium:hover .capability-arrow svg {
    transform: scaleX(-1) translateX(-3px);
}

/* Solutions Section RTL - Flip animation direction */
body[dir="rtl"] .solution-card-interactive:hover .solution-card-inner,
html[dir="rtl"] .solution-card-interactive:hover .solution-card-inner {
    transform: rotateY(-180deg);
}

body[dir="rtl"] .solution-back,
html[dir="rtl"] .solution-back {
    transform: rotateY(-180deg);
}

body[dir="rtl"] .solution-features,
html[dir="rtl"] .solution-features {
    text-align: right;
}

/* Industries Section RTL */
body[dir="rtl"] .industry-bg-icon,
html[dir="rtl"] .industry-bg-icon {
    left: -30px;
    right: auto;
}

body[dir="rtl"] .industry-card-modern:hover .industry-bg-icon,
html[dir="rtl"] .industry-card-modern:hover .industry-bg-icon {
    transform: scale(1.2) rotate(-15deg);
}

/* Arabic Font Adjustments */
[dir="rtl"] .section-title-xl,
[dir="rtl"] .capability-title,
[dir="rtl"] .solution-front h3,
[dir="rtl"] .solution-back h4,
[dir="rtl"] .industry-card-modern h4 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
}

[dir="rtl"] .section-subtitle,
[dir="rtl"] .capability-desc,
[dir="rtl"] .solution-front p,
[dir="rtl"] .solution-back > p,
[dir="rtl"] .industry-card-modern p {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 500;
}

[dir="rtl"] .section-badge {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 600;
}

/* Ensure proper text alignment for Arabic */
[dir="rtl"] .capability-card-premium,
[dir="rtl"] .solution-back,
[dir="rtl"] .industry-card-modern {
    text-align: right;
}

[dir="rtl"] .solution-features li {
    flex-direction: row-reverse;
}

/* Responsive RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .section-header {
        text-align: center;
    }
    
    [dir="rtl"] .capability-card-premium,
    [dir="rtl"] .industry-card-modern {
        text-align: center;
    }
    
    [dir="rtl"] .solution-features {
        text-align: center;
    }
    
    [dir="rtl"] .solution-features li {
        justify-content: center;
    }
}
