/* ===== PROJECTS SECTION ===== */

/* Base Section Styles */
#Projects {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

#Projects .container-fluid {
    padding: 0 15px;
}

#Projects .row.no-gutter {
    margin: 0 -15px;
}

#Projects .col-lg-4,
#Projects .col-sm-6 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Project Grid Layout */
.grid {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Project Figure/Image Styles */
.grid figure {
    position: relative;
    margin: 0;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
}

.grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    transform: scale(1.05);
}

.grid figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    text-transform: none;
    font-size: 1.25em;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Project Title & Description */
.project-title {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}

.project-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
}

/* Hover Effects */
.grid:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

.grid:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

.project-title span {
    color: #f4d03f;
    font-weight: 700;
}

/* Enhanced Hover Effects */
figure.effect-ruby:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

figure.effect-ruby:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

/* View Details Button */
.grid figcaption a {
    display: inline-block;
    padding: 8px 16px;
    background: #ffcc33;
    color: #111111;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.grid figcaption a:hover {
    background: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 767px) {
    #Projects {
        padding: 40px 0;
    }
    
    #Projects .col-lg-4,
    #Projects .col-sm-6 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .grid figure {
        height: 250px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .grid figure {
        height: 200px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-desc {
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.wow.fadeInLeft {
    animation-duration: 0.8s;
}

.wow.fadeIn {
    animation-duration: 0.6s;
}

/* Performance Optimizations */
.grid figure img {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
