/* Project Page Styles - Based on Reference Design */

/* Fixed Navigation */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #000000;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.project-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .project-nav-container {
        padding: 0 3rem;
    }
}

.back-link-small {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #000000;
    transition: opacity 0.3s;
}

.back-link-small:hover {
    opacity: 1;
}

.project-nav-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

/* Horizontal Timeline */
.horizontal-timeline {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.horizontal-timeline::-webkit-scrollbar {
    display: none;
}

.timeline-btn {
    flex-shrink: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 1rem;
    cursor: pointer;
    opacity: 0.3;
    color: #000000;
    transition: all 0.3s;
}

.timeline-btn:hover {
    opacity: 0.6;
}

.timeline-btn.active {
    opacity: 1;
    border-bottom-color: #000000;
}

/* Hero Section */
.hero-section {
    padding-top: 12rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 14rem;
    }
}

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

@media (min-width: 1024px) {
    .hero-container {
        padding: 0 3rem;
    }
}

.hero-image-wrapper {
    width: 100%;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        height: 32rem;
    }
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* Project Info Section */
.project-info-section {
    padding: 5rem 0;
    background: #f9fafb;
}

@media (min-width: 768px) {
    .project-info-section {
        padding: 6rem 0;
    }
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .info-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .info-container {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 3rem;
        gap: 4rem;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    font-weight: 300;
}

.info-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Project Sections */
.project-section {
    padding: 8rem 0;
    scroll-margin-top: 250px;
}

@media (min-width: 768px) {
    .project-section {
        padding: 10rem 0;
    }
}

@media (min-width: 1024px) {
    .project-section {
        padding: 12rem 0;
    }
}

.section-grey {
    background: #f9fafb;
}

.section-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .section-container {
        padding: 0 2rem;
    }
}

.section-number {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.section-heading-large {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .section-heading-large {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .section-heading-large {
        font-size: 4.5rem;
    }
}

.section-lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 65ch;
}

@media (min-width: 768px) {
    .section-lead {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .section-lead {
        font-size: 1.5rem;
    }
}

.section-subheading {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2rem;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .section-subheading {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .section-subheading {
        font-size: 2rem;
    }
}

.section-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 65ch;
}

@media (min-width: 768px) {
    .section-text {
        font-size: 1.125rem;
    }
}

.section-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.section-list li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

@media (min-width: 768px) {
    .section-list li {
        font-size: 1.125rem;
    }
}

/* Info Box */
.info-box {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 2.5rem;
    margin: 3rem 0;
}

.info-box-title {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .info-box-title {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .info-box-title {
        font-size: 1.5rem;
    }
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

@media (min-width: 768px) {
    .info-list li {
        font-size: 1.125rem;
    }
}

/* Idea Grid */
.idea-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .idea-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.idea-card {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 2.5rem;
    transition: all 0.3s;
}

.idea-card:hover {
    background: #000000;
    color: #ffffff;
}

.idea-number {
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.idea-title {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .idea-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .idea-title {
        font-size: 1.375rem;
    }
}

.idea-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.8;
}

.idea-card:hover .idea-text {
    opacity: 1;
}

/* Quote Block */
.quote-block {
    border-left: 4px solid #000000;
    padding-left: 2rem;
    margin: 3rem 0;
    max-width: 65ch;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .quote-text {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .quote-text {
        font-size: 1.5rem;
    }
}

.quote-author {
    font-size: 1rem;
    opacity: 0.6;
    font-style: normal;
}

/* Results Cards */
.results-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 4rem 0;
}

@media (min-width: 640px) {
    .results-cards {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.result-card {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.result-card:hover {
    background: #000000;
    color: #ffffff;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .result-number {
        font-size: 4rem;
    }
}

.result-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.result-detail {
    font-size: 0.875rem;
    opacity: 0.6;
}

.result-card:hover .result-detail {
    opacity: 1;
}

/* Next Project Section */
.next-project-section {
    padding: 8rem 0;
    background: #000000;
    color: #ffffff;
}

@media (min-width: 768px) {
    .next-project-section {
        padding: 10rem 0;
    }
}

@media (min-width: 1024px) {
    .next-project-section {
        padding: 12rem 0;
    }
}

.next-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.next-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.next-link:hover {
    opacity: 0.8;
}

.next-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    display: block;
    margin-bottom: 1rem;
}

.next-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .next-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .next-title {
        font-size: 3.5rem;
    }
}

/* Image with Overlay */
.image-with-overlay {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 3rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .image-with-overlay {
        height: 500px;
        margin: 4rem 0;
    }
}

.image-with-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
}

.image-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

@media (min-width: 768px) {
    .image-overlay-content {
        padding: 3rem;
    }
}

.overlay-title {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .overlay-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .overlay-title {
        font-size: 1.75rem;
    }
}

.overlay-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .overlay-text {
        font-size: 1.125rem;
    }
}

/* Two Column Image Grid */
.image-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .image-grid-2col {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Three Column Image Grid */
.image-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 4rem 0;
}

@media (min-width: 640px) {
    .image-grid-3col {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .image-grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Grid Image Items */
.grid-image-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.grid-image-item:hover img {
    filter: grayscale(0%);
}

.image-caption {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.7;
    text-align: center;
}

/* Full Width Image */
.full-width-image {
    width: 100%;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .full-width-image {
        margin: 4rem 0;
    }
}

.full-width-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
}

@media (min-width: 768px) {
    .full-width-image img {
        height: 500px;
    }
}

.image-caption-center {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.7;
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .image-caption-center {
        font-size: 1.125rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .horizontal-timeline {
        gap: 2rem;
    }

    .timeline-btn {
        font-size: 0.75rem;
        padding-bottom: 1.5rem;
    }

    .project-section {
        scroll-margin-top: 200px;
        padding: 6rem 0;
    }

    .image-with-overlay {
        height: 300px;
        margin: 2.5rem 0;
    }

    .grid-image-item img {
        height: 200px;
    }

    .full-width-image img {
        height: 300px;
    }

    .info-box {
        padding: 2rem;
    }

    .idea-card,
    .result-card {
        padding: 2rem;
    }
}
