/* =========================================
   INDEX PAGE — HOME ONLY
   ========================================= */

/* --- Hero Section --- */
.hero {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--secondary-color);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    padding-top: 140px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- Services Marquee --- */
.services-section { padding: 80px 0; background-color: var(--white); }

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 20s linear infinite;
    gap: 20px;
}

.service-card {
    width: 300px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card img { width: 100%; height: 100%; object-fit: cover; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Features Section --- */
.features-section { background-color: var(--light-bg); padding: 80px 0; }
.features-container { display: flex; align-items: center; gap: 50px; }
.features-image { flex: 1; border-radius: 15px; overflow: hidden; }
.features-text { flex: 1; }

.features-text h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.features-text p { margin-bottom: 15px; color: #555; }
.features-icons { display: flex; gap: 30px; margin-top: 30px; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.feature-item img { width: 40px; height: 40px; }

/* --- Working Process --- */
.process-section {
    background-color: var(--white);
    padding: 80px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.process-card { position: relative; padding: 20px; }

.process-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.process-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.process-step {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    font-size: 14px;
}

.process-card h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.process-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .process-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 220px;
        right: -20px;
        width: 40px;
        height: 2px;
        border-top: 2px dashed var(--primary-color);
    }
}

/* --- Team Section --- */
.team-section { background-color: var(--light-bg); padding: 80px 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.team-card:hover { transform: translateY(-5px); }

.team-img {
    height: 280px;
    background-color: #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img img { transform: scale(1.05); }

.team-card h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.team-card p {
    font-size: 14px;
    color: #777;
    padding-bottom: 20px;
}

/* --- FAQ Section --- */
.faq-section { background-color: var(--light-bg); padding: 80px 0; }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--primary-color); }

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-question { color: var(--primary-color); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer { max-height: 300px; padding: 0 25px 20px; }

.faq-answer p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   INDEX PAGE RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .hero h1 { font-size: 36px; }
    .hero { padding-top: 60px; }
    .features-container { flex-direction: column; }
    .process-grid { grid-template-columns: 1fr; gap: 50px; }
    .process-card:not(:last-child)::after { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-question { font-size: 16px; padding: 18px 20px; }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 60px 0 60px;
    }

    .hero h1 { font-size: 28px; line-height: 1.3; }
    .hero p { font-size: 14px; padding: 0 15px; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn { width: 100%; max-width: 300px; }

    .team-grid { grid-template-columns: 1fr; }

    .faq-question { font-size: 15px; padding: 16px 18px; }
    .faq-icon { font-size: 20px; }
}

/* RTL tweaks for index page */
html[dir="rtl"] .faq-question { text-align: right; }
html[dir="rtl"] .faq-icon { margin-left: 0; margin-right: 15px; }
html[dir="rtl"] .features-container { flex-direction: row-reverse; }
@media (max-width: 991px) {
    html[dir="rtl"] .features-container { flex-direction: column; }
}