/* Why Work Section - Red Brand Enhancement */

.work-area {
    position: relative;
    background-color: #ffffff;
}

/* Section Title Enhancement */
.work-area .section-title .title {
    color: #1f2937;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.work-area .section-title .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    border-radius: 2px;
}

/* Single Work Card */
.single-work {
    border: 2px solid rgba(220, 38, 38, 0.15);
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px;
}

.single-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-work:hover::before {
    transform: scaleX(1);
}

.single-work::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.single-work:hover::after {
    opacity: 1;
}

.single-work:hover {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.15),
        0 0 0 1px rgba(220, 38, 38, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* Work Icon */
.single-work-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, 0.2);
    padding: 16px;
}

.single-work-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
    transition: all 0.4s ease;
}

.single-work:hover .single-work-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: rgba(220, 38, 38, 0.4);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.single-work:hover .single-work-icon img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) brightness(1.1);
    transform: scale(1.05);
}

/* Work Contents */
.single-work-contents {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.single-work-contents-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    transition: all 0.3s ease;
}

.single-work-contents-title a {
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.single-work-contents-title a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.single-work:hover .single-work-contents-title a {
    color: #dc2626;
}

.single-work:hover .single-work-contents-title a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Border Enhancement */
.single-work-border {
    border: 2px solid rgba(220, 38, 38, 0.15) !important;
}

.single-work-border:hover {
    border-color: rgba(220, 38, 38, 0.4) !important;
}

/* Animation Enhancements */
@keyframes pulseRed {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

.single-work:hover .single-work-icon {
    animation: pulseRed 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .single-work {
        padding: 28px 20px;
    }
    
    .single-work-icon {
        width: 70px;
        height: 70px;
        padding: 14px;
    }
    
    .single-work-contents-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .single-work {
        padding: 24px 16px;
    }
    
    .single-work-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    
    .single-work-contents-title {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .work-area .section-title .title {
        font-size: 24px;
    }
    
    .single-work {
        padding: 20px 14px;
    }
}

/* Staggered Animation Delay */
.single-work:nth-child(1) {
    animation-delay: 0.1s;
}

.single-work:nth-child(2) {
    animation-delay: 0.2s;
}

.single-work:nth-child(3) {
    animation-delay: 0.3s;
}

.single-work:nth-child(4) {
    animation-delay: 0.4s;
}

/* Grid Layout Enhancement */
.work-area .row {
    display: flex;
    flex-wrap: wrap;
}

.work-area .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

