/*
================================
    الشركة العربية للصناعات - أنماط CSS
    Main Styles - Complete & Clean
================================
*/

/* ============== CSS Variables ============== */
:root {
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-gold: #d4af37;
    --accent-light: #f5f5f5;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --font-family: 'Tajawal', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s ease-in-out;
}

/* ============== Global Styles ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--accent-light);
    overflow-x: hidden;
}

/* ============== Back to Top Button ============== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ============== Page Header ============== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--accent-gold);
    position: relative;
    z-index: 1;
}

/* ============== Hero Section ============== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.3));
}

/* ============== Wave Effect ============== */
.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,64L60,74.7C120,85,240,107,360,106.7C480,107,600,85,720,80C840,75,960,85,1080,90.7C1200,96,1320,107,1380,112L1440,117L1440,120L1380,120C1320,120,1200,120,1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z' fill='%23f5f5f5'/%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 120px;
    z-index: 10;
}

/* ============== Section Titles ============== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
    border-radius: 2px;
}

/* ============== Services Section ============== */
.services-section {
    background: var(--accent-light);
    padding: 80px 0;
}

.service-card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    margin: 0 auto var(--spacing-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-weight: 700;
}

.service-card p {
    color: #666;
    margin: 0;
}

/* ============== SLIDER STYLES - شامل للمنتجات والآلات ============== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    background: #f5f5f5;
}


.slider {
    height: 500px !important;
    aspect-ratio: unset !important;
}

.slider-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #f5f5f5;
}


.slider-image.active {
    display: block;
}

.slider-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--accent-light);
    border-radius: 0 0 15px 15px;
    flex-wrap: wrap;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-dark);
}

.indicator:hover {
    background: var(--accent-gold);
}

.indicator.active {
    background: var(--accent-gold);
    transform: scale(1.3);
}

/* ============== About Section ============== */
.about-image {
    position: relative;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

/* ============== Clients List ============== */
.clients-list {
    list-style: none;
}

.clients-list li {
    padding: 0.75rem 0;
    color: #555;
    font-weight: 500;
}

.clients-list i {
    color: var(--accent-gold);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* ============== Leadership Section ============== */
.leadership-section {
    padding: 80px 0;
}

.leadership-card {
    background: var(--text-light);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 3px solid var(--accent-gold);
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leadership-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
    margin: 0 auto var(--spacing-lg);
}

.leadership-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.leadership-card .position {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.leadership-card .description {
    color: #666;
}

/* ============== Vision Cards ============== */
.vision-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.vision-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.vision-card:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-10px);
}

.vision-card h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    font-size: 1.5rem;
}

.vision-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ============== Value Cards ============== */
.value-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--accent-gold);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 auto var(--spacing-md);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
    font-weight: 700;
}

/* ============== Stats Section ============== */
.stats-section {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============== Contact Form ============== */
.contact-form-wrapper {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 700;
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-control-lg {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-family: var(--font-family);
    direction: rtl;
}

.form-control:focus,
.form-control-lg:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ============== Contact Info ============== */
.contact-info {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* ============== Social Links ============== */
.social-links {
    padding-top: var(--spacing-lg);
    border-top: 1px solid #eee;
}

.social-links h5 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 700;
}

.social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    color: var(--primary-dark);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 5px;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* ============== WhatsApp Button ============== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ============== Buttons ============== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--primary-dark);
    color: var(--text-light);
    text-decoration: none;
}

/* ============== Footer ============== */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-gold);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credit strong {
    color: var(--accent-gold);
}

/* ============== CTA Section ============== */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 900;
}

.cta-section .lead {
    color: #666;
}

/* ============== Gallery Section ============== */
.gallery-section {
    padding: 80px 0;
}

/* ============== Animations - الحركات ============== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-in {
    animation: slideInUp 0.8s ease-in-out 0.2s both;
}

/* ============== Light Box Animations ============== */
#lightbox-overlay {
    animation: fadeIn 0.3s ease;
}

#lightbox-overlay button {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#lightbox-overlay button:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* ============== Responsive Design - التجاوب مع الأجهزة ============== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .slider {
        aspect-ratio: 16 / 10;
    }

    .slider-image:hover {
        transform: scale(1.01);
        filter: brightness(1.03);
    }

    .back-to-top {
        bottom: 90px;
    }

    #lightbox-overlay button {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .slider {
        aspect-ratio: 4 / 3;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .leadership-card {
        padding: 1.5rem;
    }

    .leadership-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    #lightbox-overlay button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
