/* Project Details Page Styles */

:root {
    --border-radius: 12px; /* Match the main styles.css */
}

.project-details-section {
    padding: 120px 0 80px;
    background-color: #f9f9f9;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-projects {
    margin-bottom: 30px;
}

.back-to-projects a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.back-to-projects a:hover {
    color: #000;
}

.back-to-projects i {
    margin-right: 8px;
}

.project-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
}

.project-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: #000;
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.project-info-col {
    flex: 1;
    min-width: 300px;
}

.project-gallery-col {
    flex: 1;
    min-width: 300px;
}

.project-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.project-info:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #333;
}

.value {
    color: #666;
}

.project-description h3,
.project-technologies h3,
.project-gallery-col h3 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.project-description h3:after,
.project-technologies h3:after,
.project-gallery-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #000;
}

.project-description {
    margin-bottom: 30px;
}

.project-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-description li {
    margin-bottom: 8px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-badge {
    background-color: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-3px);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-cta {
    margin-top: 30px;
}

.error-message {
    text-align: center;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .back-to-projects {
        margin-bottom: 20px;
    }
    
    .project-info, .project-description, .project-technologies {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .project-details-section {
        padding: 100px 0 50px;
    }
    
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .tech-badges {
        justify-content: center;
    }
}