/* ========================================
   Modern Cards for Services, Blog, Projects
   ======================================== */

/* Blog Cards */
.single-blog-item {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.single-blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12),
                0 16px 48px rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-img {
    position: relative;
    overflow: hidden;
}

.blog-img img {
    transition: transform 0.5s ease;
}

.single-blog-item:hover .blog-img img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    margin-bottom: 15px;
}

.blog-meta span {
    display: inline-block;
    color: #007bff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d20;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.single-blog-item:hover .blog-title h4 {
    color: #007bff;
}

.blog-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

.blog-info span {
    display: flex;
    align-items: center;
}

.blog-info i {
    margin-right: 5px;
    color: #007bff;
}

.blog-read-more {
    margin-top: 15px;
}

.read-more-link {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.single-blog-item:hover .read-more-link {
    color: #0056b3;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.single-blog-item:hover .read-more-link i {
    transform: translateX(5px);
}

/* Project Cards */
.single-project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.single-project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12),
                0 16px 48px rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    transition: transform 0.5s ease;
}

.single-project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.single-project-item:hover .project-overlay {
    opacity: 1;
}

.project-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.single-project-item:hover .project-content {
    transform: translateY(0);
}

.project-content h4 {
    margin-bottom: 10px;
}

.project-content h4 a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h4 a:hover {
    color: #007bff;
}

.project-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 5px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.project-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Service Cards Enhancement */
.single-service-item {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.single-service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12),
                0 16px 48px rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 40px;
}

.service-image img {
    transition: transform 0.5s ease;
}

.single-service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.4s ease;
    z-index: 10;
}

.single-service-item:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.service-icon i {
    font-size: 28px;
    color: #fff;
}

.service-content h4 {
    margin-bottom: 15px;
}

.service-content h4 a {
    color: #1a1d20;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-service-item:hover .service-content h4 a {
    color: #007bff;
}

.service-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-price {
    margin-bottom: 15px;
}

.service-price .badge {
    font-size: 14px;
    font-weight: 600;
}

.read-more {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.single-service-item:hover .read-more i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-service-item {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        top: 18px;
        left: 18px;
    }
    
    .service-icon i {
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .single-service-item {
        padding: 28px 22px;
    }
    
    .service-content h4 a {
        font-size: 20px;
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        top: 16px;
        left: 16px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .project-content h4 a {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .single-service-item {
        padding: 25px 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 
                    0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .single-service-item:hover {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.12),
                    0 12px 40px rgba(0, 123, 255, 0.08);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        top: 15px;
        left: 15px;
        border-radius: 10px;
    }
    
    .service-icon i {
        font-size: 22px;
    }
    
    .service-image {
        margin-top: 35px;
    }
    
    .blog-content,
    .service-content {
        padding: 20px;
    }
    
    .blog-title h4,
    .service-content h4 a {
        font-size: 18px;
    }
    
    .service-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .single-service-item {
        padding: 20px 18px;
        border-radius: 12px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        top: 12px;
        left: 12px;
        border-radius: 8px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-image {
        margin-top: 30px;
        border-radius: 10px;
    }
    
    .service-content h4 a {
        font-size: 17px;
    }
    
    .service-content p {
        font-size: 13px;
    }
    
    .service-price .badge {
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .read-more {
        font-size: 13px;
    }
    
    .blog-title h4 {
        font-size: 16px;
    }
    
    .project-content h4 a {
        font-size: 16px;
    }
}

/* Empty State */
.alert {
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
}

.alert i {
    font-size: 20px;
}
