/* ==========================================
   SINGLE PROJECT PAGE STYLES
   ========================================== */

/* Project Hero */
.project-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: 100%;
}

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

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 58, 46, 0.8) 0%, rgba(42, 58, 46, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.back-link {
    display: inline-block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.project-category-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 244, 240, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 20px;
}

.project-main-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
}

/* Project Details */
.project-details {
    padding: 100px 0;
    background: var(--white);
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.project-description h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-meta {
    background: var(--cream);
    padding: 40px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.meta-item {
    margin-bottom: 30px;
}

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

.meta-item h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 10px;
    opacity: 0.7;
}

.meta-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Project Gallery */
.project-gallery {
    padding: 0 0 100px;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--primary-green);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gallery Layout */
.gallery-item:nth-child(1) {
    grid-column: span 8;
    grid-row: span 2;
    height: 700px;
}

.gallery-item:nth-child(2) {
    grid-column: span 4;
    height: 340px;
}

.gallery-item:nth-child(3) {
    grid-column: span 4;
    height: 340px;
}

.gallery-item:nth-child(4) {
    grid-column: span 12;
    height: 500px;
}

.gallery-item:nth-child(5) {
    grid-column: span 6;
    height: 450px;
}

.gallery-item:nth-child(6) {
    grid-column: span 6;
    height: 450px;
}

/* Project Credits */
.project-credits {
    padding: 80px 0;
    background: var(--cream);
}

.project-credits h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    text-align: center;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.credit-item h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 10px;
    opacity: 0.7;
}

.credit-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Next Project */
.next-project {
    padding: 100px 0;
    background: var(--white);
}

.next-project h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    text-align: center;
}

.next-project-card {
    display: block;
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.next-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(42, 58, 46, 0.2);
}

.next-project-image {
    width: 100%;
    height: 100%;
}

.next-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-project-card:hover .next-project-image img {
    transform: scale(1.1);
}

.next-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, rgba(42, 58, 46, 0.95) 0%, transparent 100%);
    color: var(--white);
}

.next-category {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
}

.next-project-info h4 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.next-arrow {
    font-size: 2rem;
    transition: var(--transition);
    display: inline-block;
}

.next-project-card:hover .next-arrow {
    transform: translateX(10px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-meta {
        position: static;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 12;
        height: 500px;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3) {
        grid-column: span 6;
        height: 300px;
    }

    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: span 12;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .project-hero {
        height: 60vh;
        min-height: 500px;
    }

    .project-hero-overlay {
        padding-bottom: 50px;
    }

    .project-main-title {
        font-size: 2.5rem;
    }

    .project-details {
        padding: 60px 0;
    }

    .project-description h2 {
        font-size: 2rem;
    }

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

    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
        height: 400px !important;
    }

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

    .next-project-card {
        height: 400px;
    }

    .next-project-info {
        padding: 30px;
    }

    .next-project-info h4 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        height: 300px !important;
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }
}

