﻿.project-card {
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Image Wrapper for Zoom Effect */
.project-img-container {
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    height: 220px;
}

.project-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-img-top {
    transition: transform 0.6s ease;
}

/* Modern Badges */
.status-badge-overlay {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Custom Progress Bar */
.fancy-progress-wrapper {
    background: #f1f5f9;
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 15px;
}

.fancy-progress-bar {
    height: 8px;
    border-radius: 100px;
    position: relative;
    transition: width 1s ease-in-out;
}

    .fancy-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    }

/* Type Adjustments */
.project-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.project-cost {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
}

.project-img-container {
    height: 220px; /* Define a fixed height for the image area */
    width: 100%;
    overflow: hidden;
}

.project-img-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the magic property: it crops instead of stretching */
    object-position: center; /* Keeps the center of the image visible */
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-fixed {
    transform: scale(1.1); /* Subtle zoom effect on hover */
}
