/* ================================
   PROJECT DETAIL PAGE STYLES
   ================================ */

/* ================================
   PROJECT HERO
   ================================ */

.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px var(--container-padding) 80px;
    background: var(--black);
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoomDetail 15s ease-out forwards;
}

@keyframes heroZoomDetail {
    to {
        transform: scale(1);
    }
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.4) 100%
    );
}

.project-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 40px;
    transition: color 0.3s ease, gap 0.3s ease;
}

.back-link:hover {
    color: var(--white);
    gap: 16px;
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.project-hero-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.project-hero-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.project-hero-year {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-light);
    padding: 8px 0;
}

.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 24px;
}

.project-hero-location {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    color: var(--gray-light);
}

.project-hero-location svg {
    opacity: 0.6;
}

.scroll-indicator {
    position: absolute;
    left: var(--container-padding);
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.scroll-indicator span {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
    writing-mode: vertical-rl;
}

.scroll-indicator .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gray-mid), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ================================
   PROJECT INFO
   ================================ */

.project-info {
    position: relative;
    z-index: 10;
    padding: var(--section-padding) var(--container-padding);
    background: var(--white);
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-info-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--black);
    margin-bottom: 32px;
}

.project-info-lead {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 32px;
}

.project-info-text p {
    font-size: 1.0625rem;
    color: var(--gray-mid);
    margin-bottom: 24px;
    line-height: 1.7;
}

.project-info-details {
    padding-top: 16px;
}

.detail-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--accent);
}

.detail-block:first-child {
    padding-top: 0;
}

.detail-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
}

.detail-list {
    list-style: none;
}

.detail-list li {
    font-size: 1rem;
    color: var(--black);
    padding: 4px 0;
}

/* ================================
   PROJECT GALLERY
   ================================ */

.project-gallery {
    position: relative;
    z-index: 10;
    padding: 0 var(--container-padding) var(--section-padding);
    background: var(--white);
}

.gallery-header {
    margin-bottom: 48px;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--black);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--gray-dark);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.gallery-item-large img {
    min-height: 100%;
}

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

/* ================================
   PROJECT FEATURES
   ================================ */

.project-features {
    position: relative;
    z-index: 10;
    padding: var(--section-padding) var(--container-padding);
    background: var(--black);
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    background: var(--gray);
    transform: translateY(-8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--white);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ================================
   NEXT PROJECT
   ================================ */

.next-project {
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.next-project-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.next-project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px var(--container-padding);
    background: var(--white);
    position: relative;
}

.next-project-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 24px;
}

.next-project-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--black);
    margin-bottom: 32px;
    transition: transform 0.5s var(--ease-out-expo);
}

.next-project-link:hover .next-project-title {
    transform: translateX(20px);
}

.next-project-arrow {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--black);
    border-radius: 50%;
    color: var(--black);
    transition: all 0.5s var(--ease-out-expo);
}

.next-project-link:hover .next-project-arrow {
    background: var(--black);
    color: var(--white);
}

.next-project-arrow svg {
    transition: transform 0.5s var(--ease-out-expo);
}

.next-project-link:hover .next-project-arrow svg {
    transform: translateX(8px);
}

.next-project-image {
    position: relative;
    overflow: hidden;
}

.next-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.next-project-link:hover .next-project-image img {
    transform: scale(1.05);
}

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

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

    .next-project-link {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .project-hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }

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

    .scroll-indicator {
        display: none;
    }

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

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

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
    }

    .feature-card {
        padding: 32px;
    }

    .next-project-content {
        padding: 60px var(--container-padding);
    }

    .next-project-image {
        height: 300px;
    }
}
