/* Project Pages Layout */

/* Header Container with dark background */
.project-header-container {
    background-color: var(--background-color);
    padding: 100px 150px;
    display: flex;
    flex-direction: column;
}

/* Back Button - same styling as nav bar */
.back-button {
    color: var(--secondary-text-color);
    text-decoration: none;
    position: relative;
    padding: 3px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
    width: fit-content;
}

.back-button:hover {
    color: var(--text-color);
}

.back-button::after {
    content: '';
    height: 2px;
    width: 0;
    background: var(--main-brand-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 150ms ease-in-out;
}

.back-button:hover::after {
    width: 100%;
}

.back-button .material-symbols-rounded {
    font-size: 1.25rem;
}

/* Project Info */
.project-info {
    max-width: 800px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-category {
    font-size: 1.25rem;
    color: var(--main-brand-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 2rem;
}

.project-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
}

/* Gallery Container with secondary background */
.gallery-container {
    background-color: var(--secondary-color);
    padding: 80px 150px;
    min-height: 50vh;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: calc(100vw - 50px);
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    margin-bottom: 2rem;
}

.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Video Support */
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-header-container {
        padding: 60px 25px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-category {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .gallery-container {
        padding: 60px 25px;
    }
    
    .back-button {
        margin-bottom: 40px;
    }
}

@media (max-width: 500px) {
    .project-header-container {
        padding: 40px 25px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .gallery-container {
        padding: 40px 25px;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .back-button {
        margin-bottom: 30px;
        font-size: 0.9rem;
    }
}
