/* Project Page Styles */
.project-page {
    background: #000;
    color: #fff;
    min-height: 100vh;
}

/* Close Button */
.project-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.2s ease;
}

/* Project Hero */
.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
}

.project-category {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-title {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    max-width: 800px;
}

.project-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    opacity: 0.9;
}

/* Project Content */
.project-content {
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-main {
    max-width: 1000px;
    margin: 0 auto;
}

.project-description {
    margin-bottom: 80px;
}

.project-description h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.project-description p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.detail-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.detail-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* Project Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .project-content {
        padding: 80px 60px;
    }

    .project-hero-content {
        padding: 80px 60px;
    }
}

@media (max-width: 992px) {
    .project-title {
        font-size: 36px;
    }

    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .project-gallery {
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .project-content,
    .project-hero-content {
        padding: 60px 30px;
    }

    .project-hero {
        height: 60vh;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .project-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 576px) {
    .project-content,
    .project-hero-content {
        padding: 40px 20px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.prev-project,
.next-project {
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
    padding: 20px;
    flex: 1;
}

.prev-project {
    text-align: left;
}

.next-project {
    text-align: right;
}

.prev-project span,
.next-project span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.prev-project h4,
.next-project h4 {
    font-size: 18px;
    margin: 0;
}

/* Project Footer */
.project-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.6);
}

.project-footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.project-footer p {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

.project-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.project-footer a:hover {
    opacity: 0.7;
}

/* Additional Mobile Styles */
@media (max-width: 992px) {
    .project-navigation {
        margin-top: 60px;
        padding-top: 40px;
    }

    .prev-project h4,
    .next-project h4 {
        font-size: 16px;
    }

    .project-footer {
        padding: 30px 60px;
    }
}

@media (max-width: 768px) {
    .project-content {
        padding: 60px 20px;
    }

    .project-hero-content {
        padding: 60px 20px;
    }

    .project-description h2 {
        font-size: 20px;
    }

    .project-description p {
        font-size: 16px;
    }

    .project-navigation {
        margin-top: 40px;
        padding-top: 30px;
        flex-direction: column;
        gap: 20px;
    }

    .prev-project,
    .next-project {
        padding: 15px;
        text-align: center;
    }

    .project-footer {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .project-hero {
        height: 50vh;
    }

    .project-title {
        font-size: 24px;
    }

    .project-category {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .project-navigation {
        margin-top: 30px;
        padding-top: 20px;
    }

    .prev-project h4,
    .next-project h4 {
        font-size: 14px;
    }

    .prev-project span,
    .next-project span {
        font-size: 10px;
    }

    .project-footer {
        padding: 20px;
    }

    .project-footer p {
        font-size: 14px;
    }
}
