/* 
 * PROJECTS STYLES - CONSOLIDATED
 * Combinaison de projects.css, clean-projects.css, project-layout-fix.css et completely-flat.css
 */

/* Project card base styles */
.project-card {
    padding: 0;
    margin-bottom: 4rem;
    position: relative;
    /* Ensure completely flat appearance */
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    transition: none !important;
    overflow: visible !important;
    transform: none !important;
}

/* Prevent any transforms on hover of the card itself */
.project-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure proper flex layout */
.project-card .d-flex {
    display: flex;
    flex-direction: column;
}

/* Project heading styles */
.project-card h3 {
    transition: color 0.2s ease;
    margin-bottom: 0.5rem;
}

/* Project subheading styles */
.project-card .subheading {
    margin-bottom: 1.25rem;
    color: #666;
}

/* Better spacing between projects */
.resume-section#projects .resume-section-content > h2 {
    margin-bottom: 3rem;
}

/* Project divider line */
.project-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.08);
}

/* Project details section */
.project-details {
    background-color: transparent;
    padding: 1.5rem 0 0 0;
    margin-top: 1.5rem;
    position: relative;
    border: none !important;
    box-shadow: none !important;
}

/* Decorative line before project details */
.project-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* Clean tech stack display */
.project-details strong {
    color: #555;
    font-weight: 600;
}

/* Image gallery container */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1.5rem;
    max-width: 300px;
}

/* Project images container */
.project-images {
    margin-top: 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

/* Placeholder for screenshots */
.screenshot-placeholder {
    width: 100%;
    height: 150px;
    background-color: #f8f9fa;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.placeholder-text {
    text-align: center;
    padding: 10px;
}

/* Actual screenshots */
.project-screenshot {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    max-height: 180px;
    object-fit: contain;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
}

/* Desktop layout optimizations */
@media (min-width: 768px) {
    .project-card .d-flex {
        flex-direction: row;
    }
    
    .project-card .flex-grow-1 {
        padding-right: 2rem;
        flex: 1;
        max-width: calc(100% - 320px);
    }
    
    .project-images {
        margin-top: 0.5rem;
        max-width: 300px;
    }
    
    .project-card .d-flex .flex-shrink-0 {
        margin-left: auto;
    }
}

/* Mobile layout adjustments */
@media (max-width: 767px) {
    .project-card {
        padding: 1rem;
    }
    
    .project-card .d-flex .flex-grow-1 {
        margin-bottom: 1.5rem;
    }
    
    .project-images {
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .screenshot-placeholder {
        height: 120px;
    }
}
