/* ========================================
   PROJECT TEMPLATE PAGE
   ======================================== */

/* Project Page Layout */
.project-page {
    min-height: 100vh;
    padding: 4rem 0;
}

.project-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    gap: 4rem;
}

/* Left Column: Project Info (40%) */
.project-info {
    flex: 0 0 40%;
    position: relative;
}

.project-info-sticky {
    position: sticky;
    top: 4rem;
    padding-right: 2rem;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: white;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #3f3f3f;
    border: 2px solid #3f3f3f;
    padding: 1rem 2rem;
    border-radius: 0;
}

.back-link:hover {
    background: #8FC8A7;
    color: #3f3f3f;
    transform: translateY(-2px);
}

/* Right Column: Project Gallery (60%) */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 16 / 12;
    overflow: hidden;
    border-radius: 8px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 10%);
    opacity: 0;
    transform: translateY(50px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}



.gallery-item .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-item .play-button:hover {
    background: rgba(0,0,0,0.9);
}

.gallery-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .project-container {
        gap: 3rem;
        padding: 0 3rem;
    }
    
    .project-info {
        flex: 0 0 45%;
    }
    
    .project-gallery {
        flex: 0 0 55%;
    }
}

@media (max-width: 968px) {
    .project-page {
        padding: 3rem 0;
    }
    
    .project-container {
        flex-direction: column;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .project-info {
        flex: 1;
    }
    
    .project-info-sticky {
        position: relative;
        top: 0;
        padding-right: 0;
    }
    
    .project-title {
        margin-bottom: 2rem;
    }
    
    .project-gallery {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .project-page {
        padding: 2rem 0;
    }
    
    .project-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .project-meta {
        gap: 1.5rem;
    }
    
    .gallery-item {
        border-radius: 4px;
    }
}

/* Animation Classes */
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
