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

/* --- Hero --- */
.project-hero {
    text-align: center;
}

.project-hero-title {
    padding: 8rem 1.5rem 10rem;
}

.project-hero-title h1 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.project-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

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

/* --- Project Meta (city, area, year) --- */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.875rem;
    color: #fff;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-meta-item {
    font-weight: 400;
}

.project-meta-item:nth-child(2) {
    text-align: center;
}

.project-meta-item:nth-child(3) {
    text-align: right;
}

/* --- Project Description --- */
.project-description {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #a1a1aa;
}

/* --- Floating Section Nav --- */
.project-section-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 0.5rem 0.625rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(-50%) translateY(20px);
    max-width: calc(100vw - 2rem);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-section-nav::-webkit-scrollbar {
    display: none;
}

.project-section-nav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.project-section-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    border-radius: 9999px;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
    font-weight: 400;
    text-decoration: none;
}

.project-section-nav a:hover {
    color: #fff;
}

.project-section-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
}

/* --- Content Sections --- */
.project-section {
    padding: 0 0 2rem;
    scroll-margin-top: 80px;
}

.project-section-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.project-section-image.full-width {
    max-width: 100%;
}

.project-section-image.contained {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.project-section-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-section-text {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #a1a1aa;
}

/* Multiple images grid inside a section */
.project-section-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.project-section-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Related Projects --- */
.related-projects {
    padding: 6rem 0 4rem;
}

.related-projects h2 {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.related-project-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.related-project-card:hover {
    opacity: 0.85;
}

.related-project-card .project-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.related-project-card .project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.related-project-card:hover .project-img-wrap img {
    transform: scale(1.05);
}

.related-project-card .project-card-info {
    padding: 1.5rem 1rem 3rem;
}

.related-project-card .project-card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.related-project-card .project-card-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* --- Back To Portfolio Link --- */
.back-to-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s;
    text-decoration: none;
}

.back-to-portfolio:hover {
    color: #fff;
}

.back-to-portfolio svg {
    transition: transform 0.3s;
}

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

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .project-hero-title {
        padding: 12rem 2rem 12rem;
    }

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

    .project-meta {
        padding: 4rem 3rem 2rem;
        flex-wrap: nowrap;
    }

    .project-description {
        padding: 2rem 3rem 5rem;
    }

    .project-section-text {
        padding: 2.5rem 3rem 3rem;
    }

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

    .related-projects h2 {
        font-size: 2.5rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .related-project-card .project-card-info {
        padding: 1.5rem 2rem 3rem;
    }
}

@media (min-width: 1200px) {
    .project-hero-title h1 {
        font-size: 3rem;
    }

    .project-hero-image {
        aspect-ratio: 21 / 9;
    }

    .project-meta {
        padding: 5rem 4rem 2rem;
    }

    .project-description {
        max-width: 800px;
        font-size: 1rem;
    }

    .project-section-text {
        max-width: 800px;
        font-size: 1rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .related-projects h2 {
        font-size: 3rem;
    }
}