/* ===== style.css - Etech (نسخة نظيفة) ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --primary-dark: #6d8bcd;
    --primary-medium: #4f6c9b;
    --accent-blue: #3b82f6;
    --accent-light: #60a5fa;
    --bg-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --white: #ffffff;
    --footer-bg: #6d8bcd;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
}

.header {
    background: var(--primary-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.3);
    border-bottom: 2px solid var(--accent-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
}

.logo-container {
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.logo-image {
    max-height: 333px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-blue);
}

.lang-btn {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: var(--accent-light);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.ticker-container {
    background: var(--primary-medium);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-blue);
}

.ticker-track {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: flex;
    gap: 35px;
    animation: tickerScroll 20s linear infinite;
    font-size: 1rem;
}

.ticker-content .brand-name {
    color: var(--gold);
    font-weight: 700;
}

.ticker-content .separator {
    color: var(--gold-light);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.full-width-banner {
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 550px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.2);
}

.section-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 18px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-section {
    margin: 60px 0 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.service-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 20px;
}

.service-card .content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}

.service-card .content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card .content p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.btn-details {
    background: var(--accent-blue);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-details:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0 60px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-color: var(--accent-blue);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    display: block;
}

.feature-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--white);
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    border-color: var(--accent-blue);
}

.contact-item i {
    font-size: 1.4rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
}

footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 45px 0 35px;
    text-align: center;
    border-top: 2px solid var(--accent-blue);
}

.footer-logo-container {
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo-container:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.footer-logo-image {
    max-height: 333px;
    width: auto;
}

.footer-text {
    color: #060e1b;
    font-size: 1rem;
    margin-bottom: 10px;
}

.copyright {
    color: #11171f;
    font-size: 1.1rem;
}

.about-page {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.about-page h1 {
    color: var(--text-dark);
    font-size: 2.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 18px;
}

.about-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

.about-page p {
    color: var(--text-gray);
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 2;
}

.about-page .highlight {
    background: rgba(59, 130, 246, 0.05);
    padding: 25px;
    border-radius: 20px;
    border-right: 4px solid var(--accent-blue);
    margin: 30px 0;
}

.about-page .highlight p {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
}

.about-page .highlight strong {
    color: var(--accent-blue);
}

.about-page h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin: 45px 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.about-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0 40px;
}

.about-feature-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border-color: var(--accent-blue);
}

.about-feature-card .icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 12px;
}

.about-feature-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.about-feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.back-btn {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 50px;
    margin: 10px 0 20px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.back-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.about-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.about-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.about-contact-btn.whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.about-contact-btn.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.about-contact-btn.email {
    background: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.about-contact-btn.email:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.about-contact-btn i {
    font-size: 1.5rem;
}

.section-title::after,
.about-page h1::after,
.about-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: right 0.5s ease, left 0.5s ease, transform 0.5s ease;
}

html[dir="rtl"] .section-title::after,
html[dir="rtl"] .about-page h1::after,
html[dir="rtl"] .about-page h2::after {
    right: 0;
    left: auto;
    transform: translateX(0);
}

html[dir="ltr"] .section-title::after,
html[dir="ltr"] .about-page h1::after,
html[dir="ltr"] .about-page h2::after {
    right: auto;
    left: 0;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .ticker-content {
        font-size: 0.8rem;
        gap: 15px;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-title::after {
        width: 60px;
    }
    .logo-image {
        max-height: 150px;
    }
    .footer-logo-image {
        max-height: 150px;
    }
    .contact-section {
        gap: 15px;
    }
    .contact-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .about-page {
        padding: 25px;
    }
    .about-page h1 {
        font-size: 2.2rem;
    }
    .about-page h2 {
        font-size: 1.6rem;
    }
    .about-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .about-contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .service-card {
        min-height: 280px;
        padding: 20px;
    }
    .service-card .content h3 {
        font-size: 1.4rem;
    }
    .service-card .content p {
        font-size: 0.9rem;
    }
    .contact-item {
        padding: 10px 16px;
        font-size: 0.8rem;
        gap: 8px;
    }
    .feature-card {
        padding: 20px 15px;
    }
    .about-page {
        padding: 18px;
    }
    .about-page h1 {
        font-size: 1.8rem;
    }
    .about-page p {
        font-size: 1rem;
    }
}