/* تنظیمات کلی فونت */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    /* یک رنگ پس‌زمینه خیلی ملایم */
}

/* استایل برای سکشن اصلی (Hero Section) */
.hero-section {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    /* ترکیب رنگ سرمه‌ای و آبی */
    color: white;
    padding: 100px 0;
    border-radius: 0 0 50px 50px;
    /* یک خمیدگی مدرن پایین هدر */
}

/* استایل بخش خدمات */
.service-card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    /* حرکت به بالا هنگام هاور */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* سایه عمیق‌تر */
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #e3f2fd;
    color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

/* استایل بخش نمونه‌کارها */
.portfolio-item {
    position: relative;
    overflow: hidden;
    /* این باعث میشه عکس وقتی زوم شد از کادر بیرون نزنه */
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* عکس رو فیت میکنه که دفرمه نشه */
    transition: transform 0.5s ease;
    /* نرم زوم شدن */
}

.portfolio-item:hover img {
    transform: scale(1.1);
    /* ۱۰ درصد زوم میشه */
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    /* وقتی موس رفت روش، متن ظاهر بشه */
}

/* استایل فوتر */
footer {
    background-color: #2c3e50;
    /* همون رنگ سرمه‌ای هدر */
    color: #bdc3c7;
    font-size: 0.9rem;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
    /* وقتی موس میره روش سفید بشه */
    padding-right: 5px;
    /* یه حرکت ریز به راست */
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #3498db;
    /* رنگ آبی هنگام هاور */
    color: white;
}

/* افکت شناور شدن لوگو */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}
/* افکت هاور نمونه کار */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1 !important; /* ظاهر شدن لایه تیره */
}
.portfolio-item img {
    transition: transform 0.5s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1); /* زوم شدن عکس */
}