/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.8;
    color: #333;
}

/* ===== الهيدر ===== */
.hero-section {
    width: 100%;
    height: auto;          /* الارتفاع يتكيف مع حجم الصورة تلقائياً */
    overflow: hidden;
    background-color: #ffffff; /* يطابق خلفية الشعار */
    margin: 0;
    padding: 0;
}

.hero-section img {
    width: 100%;           /* يملأ العرض بالكامل */
    height: auto;          /* يحافظ على النسبة الأصلية */
    display: block;
}

/* ===== قسم من نحن ===== */
.about-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-section h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 30px;
    color: #27ae60;
}

.about-section p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 2;
    font-weight: 500;
}

/* ===== قسم المنتجات ===== */
.products-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: #27ae60;
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 3px solid #27ae60;
}

/* ===== معرض المنتجات ===== */
.gallery-section {
    padding: 80px 20px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
    font-size: 18px;
    font-weight: 700;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 50px;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.close-lightbox:hover {
    color: #27ae60;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 22px;
    font-weight: 700;
    background: rgba(0,0,0,0.7);
    padding: 10px 30px;
    border-radius: 5px;
}

/* ===== قسم الاتصال ===== */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border: 3px dashed #27ae60;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #2c3e50;
}

.file-upload-label:hover {
    background: #e8f5e9;
    border-color: #2ecc71;
}

.file-upload-label i {
    font-size: 40px;
    color: #27ae60;
    margin-bottom: 10px;
    display: block;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #27ae60;
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    display: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== الفوتر ===== */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-section h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #27ae60;
}

.footer-section .contact-info {
    font-size: 22px;
    margin: 15px 0;
    font-weight: 500;
}

.footer-section .contact-info strong {
    color: #27ae60;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.social-links a[href*="maps"]:hover {
    background: #db4437;
}

.social-links a[href*="facebook"]:hover {
    background: #1877f2;
}

.social-links a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ===== التجاوب مع الجوال ===== */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .about-section h2,
    .section-title,
    .contact-section h2 {
        font-size: 28px;
    }

    .about-section p {
        font-size: 16px;
    }

    .product-card h3 {
        font-size: 22px;
    }

    .gallery-item .caption {
        font-size: 16px;
    }

    .footer-section h3 {
        font-size: 24px;
    }

    .footer-section .contact-info {
        font-size: 18px;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .social-links a {
        width: 60px;
        height: 60px;
    }

    .social-links img {
        width: 30px;
        height: 30px;
    }
}