/* --- استایل‌های عمومی --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    background: #f4f4f4;
    direction: rtl;
}
h1, h2, h3 { color: #333; }
section { padding: 50px 20px; border-bottom: 1px solid #ddd; }

/* --- هدر و نویگیشن (اصلاح شده) --- */
header {
    background: #222; /* رنگ پس‌زمینه به مشکی تغییر کرد */
    color: #fff; /* رنگ متن داخل هدر سفید شد */
    padding: 10px 20px;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header h1 {
    color: #fff; /* اطمینان از سفید بودن رنگ عنوان */
}
header nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }

/* استایل دکمه تماس برای آیکون اصلاح شد */
.call-button {
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.call-button:hover {
    background: #218838;
}
.call-button svg {
    width: 20px;
    height: 20px;
}

/* --- بخش Hero (هدر تصویری) --- */
#hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/img3.jpeg'); background-size: cover; background-position: center; color: white; padding: 100px 20px; }
#hero h2 { color: white; font-size: 2.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#hero p { font-size: 1.2rem; }
.main-call-button { display: inline-block; background: #dc3545; color: white; padding: 15px 30px; font-size: 1.2rem; font-weight: bold; border-radius: 8px; margin-top: 20px; text-decoration: none; border: none; }

/* --- گالری تصاویر --- */
#gallery h2 { margin-bottom: 40px; }
.slider-container { position: relative; max-width: 900px; margin: auto; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); aspect-ratio: 16 / 9; background-color: #e0e0e0; }
.slider { position: relative; width: 100%; height: 100%; }

.slide {
    display: none;
    width: 100%;
    height: 100%;
}
.slide.active-slide {
    display: block;
}
/* این خط تغییر کرد تا کل عکس نمایش داده شود */
.slide img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* --- دکمه‌های گالری --- */
.prev-btn, .next-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.5); color: white; border: none; cursor: pointer; padding: 15px; font-size: 18px; z-index: 100; }
.prev-btn { right: 10px; border-radius: 0 5px 5px 0; }
.next-btn { left: 10px; border-radius: 5px 0 0 5px; }

/* --- سایر بخش‌ها --- */
#services { background: #fff; }
#services .service-item { margin-bottom: 20px; }
#contact ul { list-style: none; padding: 0; }
#contact li { margin-bottom: 10px; font-size: 1.1rem; }
footer { background: #333; color: white; padding: 20px; }
footer a { color: #00aaff; }

/* --- طراحی واکنش‌گرا --- */
@media (min-width: 768px) {
    #services { display: flex; justify-content: space-around; max-width: 1200px; margin: auto; }
    .service-item { width: 30%; }
}

