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

/* --- General & Variables --- */
:root {
    --bg-light: #ffffff;
    --bg-light-accent: #f8f9fa;
    --primary-accent: #0052d4; /* Professional Blue */
    --secondary-accent: #65c7f7; /* Lighter Sky Blue */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 82, 212, 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(0, 82, 212, 0.6), rgba(5, 15, 25, 0.8)); /* Branded dark 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;
    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 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(--primary-accent), var(--secondary-accent));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--glass-border);
}

.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;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-track {
    display: flex;
    width: calc(250px * 26); /* 13 original + 13 duplicates */
    animation: scroll 60s linear infinite;
}

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 13)); /* Move by the width of the original 13 logos */
    }
}

.slide {
    width: 250px;
    height: 200px; /* doubled from 100px to accommodate larger logos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    flex-shrink: 0;
}

.slide img {
    max-width: 100%;
    max-height: 120px; /* doubled from 60px */
    width: auto;
    filter: grayscale(100%) contrast(0.5) brightness(1.2);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.slide:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Ensure logo slider works in RTL pages: force LTR layout for track so it loops correctly */
.logo-slider, .logo-track { direction: ltr; }

/* --- 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, #0052d4); }

.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, #0052d4); box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.15); }
.error-msg { color: #0052d4; 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; }

@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;
    }
    .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;
    }
    .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;
    }
    .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;
}
