/* PROJECT PAGE ONLY STYLES */

/* Override main styles for project pages */
.project-page {
    min-height: auto;
    display: block;
    padding: 0;
    background: linear-gradient(135deg, 
        rgb(5, 10, 20) 0%, 
        rgb(15, 25, 45) 30%,
        rgb(10, 15, 30) 60%,
        rgb(20, 30, 50) 85%,
        rgb(8, 12, 25) 100%);
    position: relative;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
}

/* Hero Section */
.project-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-image {
    width: 100%;
    margin: 0 0 2rem 0;
    padding: 0;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid white;
    display: block;
    border-radius: 12px;
}

.hero-image a{
    max-width: 800px;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: rgb(20, 30, 50);
    border-radius: .7rem;
    padding: .5rem .7rem;
    border: white 1px solid;
}

.hero-image a:hover{
    transition: all 0.5s ease;
    background-color: white;
    color: rgb(20, 30, 50);
    border: rgb(20, 30, 50) 1px solid;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 1.5rem 0;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: metropolis-light;
}

/* Project Meta - Horizontal Bar Layout */
.project-meta-bar {
    display: flex;
    gap: 4rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    flex: 0 0 auto;
}

.meta-item h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: metropolis-thin;
    opacity: 0.7;
}

.meta-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Content Container */
.project-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.content-section {
    margin-bottom: 7rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: metropolis-light;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Project Navigation */
.project-nav {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn {
    padding: .8rem 1.5rem;
    border: 1px solid white;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: white;
    color: rgb(0, 0, 26);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .project-content,
    .project-nav {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .project-meta-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .project-meta-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .project-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}