/* Enhanced Project Block Styles */

.project-block__project {
    display: block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-block__project:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.project-block__project:hover .project-block__image {
    transform: scale(1.08);
}

.project-block__project:hover .project-block__project-title {
    color: #0066cc;
}

/* Glass Industry - Blue Theme */
.project-block__project:has(span[style*="rgba(0,102,204"]):hover {
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.25) !important;
}

/* Soda Ash Industry - Green Theme */
.project-block__project:has(span[style*="rgba(0,153,51"]):hover {
    box-shadow: 0 15px 40px rgba(0, 153, 51, 0.25) !important;
}

/* Button Hover Effect */
a[href="projects.php"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4) !important;
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-block__title {
        font-size: 28px !important;
    }
    
    .project-block__project {
        margin-bottom: 20px;
    }
}

/* Image overlay on hover */
.project-block__image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-block__project:hover .project-block__image-wrapper::after {
    opacity: 1;
}

/* Badge animation */
.project-block__image-wrapper span[style*="position: absolute"] {
    transition: all 0.3s ease;
}

.project-block__project:hover .project-block__image-wrapper span[style*="position: absolute"] {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Section divider animation */
div[style*="background: linear-gradient(90deg, transparent 0%, #ddd"] {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

/* Title decorative lines animation */
.project-block__subtitle span[style*="background: linear-gradient"] {
    animation: expandLine 0.8s ease-out;
}

@keyframes expandLine {
    from {
        width: 0px;
    }
    to {
        width: 60px;
    }
}
