/* رفع مشکل آیکون‌های بخش خدمات */

/* استایل برای آیکون‌های بخش خدمات */
.service-image {
    font-size: 50px;
    margin: 0 auto;
    vertical-align: middle;
    width: 100px;
    height: 100px;
    color: #dc3545;
    border-radius: 50%;
    transition: all ease 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.service-image i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
    width: 100%;
    vertical-align: middle;
    font-size: 48px;
    color: #dc3545;
    transition: all 0.3s ease;
}

/* افکت hover */
.service-box-col:hover .service-image {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.05);
}

.service-box-col:hover .service-image i {
    color: #fff;
    transform: scale(1.1);
}

/* استایل برای تصاویر */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-box-col:hover .service-image img {
    transform: scale(1.05);
}

/* استایل برای مودال خدمات */
@keyframes shimmer {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: rotate(90deg) scale(1.1); 
        opacity: 1;
    }
    50% { 
        transform: rotate(180deg) scale(1.2); 
        opacity: 0.9;
    }
    75% { 
        transform: rotate(270deg) scale(1.1); 
        opacity: 1;
    }
}

/* استایل برای دکمه‌های مودال */
#serviceModal button:hover,
#projectModal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* استایل برای متن انتخاب شده */
::selection {
    background-color: #dc3545;
    color: white;
}

::-moz-selection {
    background-color: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 767px) {
    .service-image {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .service-image i {
        font-size: 36px;
    }
    
    #serviceModal,
    #projectModal {
        padding: 15px;
    }
    
    #serviceModal > div,
    #projectModal > div {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .service-image {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .service-image i {
        font-size: 32px;
    }
    
    #serviceModal > div,
    #projectModal > div {
        max-width: 98%;
    }
}
