/* ===================================
   Project Page Specific Styles
   =================================== */

/* ===================================
   Project Hero Section
   =================================== */

.project-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 64px 0;
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 1px;
    background-color: rgba(47, 39, 22, 0.1);
}

.project-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(18.5px);
    opacity: 0.5;
    z-index: 0;
}

.project-hero__content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.project-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: clamp(8px, 1vw, 16px);
    max-width: 900px;
    line-height: 1.2;
    color: #2f2716;
}

.project-hero__subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #6f6a5e;
    max-width: 700px;
    line-height: 24px;
}

/* ===================================
   Project Overview Section
   =================================== */

.project-overview {
    padding: clamp(56px, 10vw, 56px) 0;
    border-bottom: 1px solid rgba(47, 39, 22, 0.1);
}

.project-overview__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(40px, 5vw, 60px);
}

.project-overview__media {
    width: 100%;
    max-width: 1600px;
    background-color: #f2e8dd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border-radius: 8px;
}

.project-overview__media img,
.project-overview__media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.project-overview__media .placeholder-image {
    width: 100%;
    height: 100%;
    min-height: clamp(400px, 50vh, 600px);
}

.project-overview__content {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
}

.project-overview__subhead {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    line-height: 32px;
    color: #2f2716;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.project-overview__content p {
    font-size: clamp(14px, 1.5vw, 14px);
    line-height: 32px;
    color: #2f2716;
    margin-bottom: clamp(20px, 2.5vw, 32px);
}

.project-overview__content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Project Section (Generic)
   =================================== */

.project-section {
    padding: clamp(56px, 10vw, 56px) 0;
    border: 1px solid rgba(0, 0, 0, 1);
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(47, 39, 22, 0.1);
    border-left: none;
    color: rgba(47, 39, 22, 1);
}

.project-section__highlight {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
}

.project-section__highlight p {
    font-size: 14px;
    font-weight: 300;
    line-height: 32px;
    color: #2f2716;
    margin-bottom: clamp(20px, 2.5vw, 32px);
}

.project-section__highlight p:last-child {
    margin-bottom: 0;
}

.project-section__highlight ul {
    margin: 0;
    padding-left: 20px;
}

.project-section__highlight li {
    font-size: 14px;
    line-height: 24px;
    color: #2f2716;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.project-section__text strong,
.project-spotlight__text strong,
.project-section__highlight strong {
    font-weight: 700;
}

.project-section__text {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
}

.project-section__text p {
    font-size: clamp(14px, 1.5vw, 14px);
    line-height: 32px;
    color: #2f2716;
    margin-bottom: clamp(20px, 2.5vw, 32px);
    vertical-align: bottom;
}

.project-section__text strong {
    font-weight: 700;
}

/* ===================================
   Project Gallery Section
   =================================== */

.project-gallery {
    padding: clamp(56px, 10vw, 56px) 0;
    border-bottom: 1px solid rgba(47, 39, 22, 0.1);
    overflow: hidden;
}

.project-gallery__carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.project-gallery__carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.project-gallery__track {
    display: flex;
    gap: clamp(20px, 2vw, 32px);
    width: max-content;
    padding-left: clamp(20px, 5vw, 80px);
    /* animation: infiniteScroll 60s linear infinite; */
}

/* .project-gallery__track:hover {
    animation-play-state: paused;
} */

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.project-gallery__card {
    flex: 0 0 auto;
    height: clamp(400px, 34vw, 493px);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.project-gallery__card:hover {
    transform: scale(0.98) translateY(2px);
}

.project-gallery__card:active {
    transform: scale(0.96) translateY(4px);
}

.project-gallery__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.project-gallery__image img,
.project-gallery__image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.project-gallery__card:hover .project-gallery__image img,
.project-gallery__card:hover .project-gallery__image video {
    transform: scale(0.95);
}

.project-gallery__caption {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    color: #2f2716;
    margin-top: clamp(12px, 1.5vw, 16px);
    text-align: left;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-gallery__card:hover .project-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Project Spotlight Section (Evo Work)
   =================================== */

.project-spotlight {
    padding: clamp(56px, 10vw, 56px) 0;
    border-bottom: 1px solid rgba(47, 39, 22, 0.1);
}

.project-spotlight__text {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.project-spotlight__text p {
    font-size: 14px;
    line-height: 32px;
    color: #2f2716;
    font-weight: 300;
    padding-top: 8px;
    padding-bottom: 8px;
}

.project-spotlight__text ul {
    margin: clamp(20px, 3vw, 30px) 0 0 0;
    padding-left: clamp(20px, 3vw, 30px);
    list-style-type: disc;
}

.project-spotlight__text li {
    font-size: clamp(14px, 1.5vw, 14px);
    line-height: 2;
    color: #2f2716;
    margin-bottom: clamp(12px, 1.5vw, 16px);
}

.project-spotlight__text li:last-child {
    margin-bottom: 0;
}

.project-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 40px);
    max-width: 1600px;
    margin: 0 auto;
}

.project-spotlight__grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.project-spotlight__grid-item img,
.project-spotlight__grid-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.project-spotlight__grid-item:hover img,
.project-spotlight__grid-item:hover video {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .project-spotlight__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Project Two Column Section
   =================================== */

.project-two-col {
    padding: clamp(56px, 10vw, 56px) 0;
    border-bottom: 1px solid rgba(47, 39, 22, 0.1);
}

.project-two-col__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: clamp(24px, 4vw, 40px);
    max-width: 1294px;
    margin: 0 auto;
}

.project-two-col__item .placeholder-image {
    height: clamp(300px, 24vw, 350px);
}

/* ===================================
   Project More Section (Uses Carousel)
   =================================== */

.project-more {
    padding: clamp(56px, 10vw, 56px) 0;
    border-bottom: none;
    overflow: hidden;
}

.project-more__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(24px, 3vw, 40px);
    max-width: 1294px;
    margin: 0 auto;
}

.project-more__item {
    position: relative;
}

.project-more__item .placeholder-image {
    height: clamp(400px, 39vw, 560px);
}

.project-more__caption {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.5;
    color: #2f2716;
    margin-top: clamp(12px, 1.5vw, 24px);
}

/* More Projects Carousel Styles */
.project-more .work-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-more .work-carousel::-webkit-scrollbar {
    display: none;
}

.project-more .work-carousel__track {
    display: flex;
    gap: clamp(20px, 2vw, 32px);
    padding-left: max(clamp(20px, 5vw, 80px), calc((100vw - 1600px) / 2 + clamp(20px, 5vw, 80px)));
    padding-right: clamp(20px, 5vw, 80px);
    width: max-content;
}

.project-more .work-carousel__card {
    flex: 0 0 auto;
    width: clamp(320px, 31vw, 450px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-more .work-carousel__card:hover {
    transform: translateY(-8px);
}

.project-more .work-carousel__card:hover .work-carousel__image {
    background-color: transparent;
}

.project-more .work-carousel__image {
    position: relative;
    width: 100%;
    height: clamp(400px, 34vw, 493px);
    background-color: #f2e8dd;
    overflow: hidden;
    border-radius: 8px;
}

.project-more .work-carousel__image img,
.project-more .work-carousel__image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.project-more .work-carousel__card:hover .work-carousel__image img,
.project-more .work-carousel__card:hover .work-carousel__image video {
    transform: scale(0.95);
}

.project-more .work-carousel__content {
    padding: clamp(16px, 2vw, 24px) 0;
}

.project-more .work-carousel__title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
    color: #2f2716;
    margin-bottom: clamp(4px, 0.5vw, 8px);
    line-height: 1.3;
}

.project-more .work-carousel__subtitle {
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 400;
    color: #6f6a5e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ===================================
   Placeholder Images
   =================================== */

.placeholder-image {
    width: 100%;
    background-color: #f2e8dd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4c9ba 0%, #f2e8dd 50%, #d4c9ba 100%);
    opacity: 0.3;
}

/* ===================================
   Project Page Footer Adjustments
   =================================== */

.about__content--project {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
    max-width: 896px;
    margin: 0 auto;
}

.about__content--project .about__bio {
    text-align: center;
}

.about__content--project .about__title {
    font-size: clamp(32px, 4.5vw, 40px);
    font-weight: 300;
}

.about__content--project .about__tagline {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 0;
}

.about__content--project .about__actions {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.about__content--project .about__actions .btn {
    flex: 0 1 auto;
    min-width: clamp(180px, 20vw, 220px);
}

/* ===================================
   Responsive Adjustments for Project Pages
   =================================== */

@media (max-width: 768px) {
    .project-two-col__grid {
        grid-template-columns: 1fr;
    }

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

    .about__content--project .about__actions {
        flex-direction: column;
        width: 100%;
    }

    .about__content--project .about__actions .btn {
        width: 100%;
    }

    .project-overview__content,
    .project-section__highlight,
    .project-section__text {
        max-width: 100%;
    }

    .project-gallery {
        padding: clamp(40px, 8vw, 56px) 0;
    }

    .project-gallery__carousel {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .project-gallery__track {
        gap: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-gallery__card {
        height: clamp(300px, 60vw, 400px);
        width: clamp(250px, 70vw, 350px);
        scroll-snap-align: start;
    }

    .project-gallery__image {
        border-radius: 4px;
    }

    .project-gallery__image img,
    .project-gallery__image video {
        border-radius: 4px;
    }

    .project-overview .container {
        background-color: transparent;
    }

    .project-overview__media {
        background-color: transparent;
        min-height: auto;
        height: auto;
    }

    .project-overview__media video,
    .project-overview__media img {
        height: auto;
    }

    .section-label {
        font-size: 12px;
    }

    .project-hero__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-hero__title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .project-overview__content,
    .project-section__highlight,
    .project-section__text {
        padding: 0 clamp(20px, 5vw, 40px);
    }

    .project-gallery {
        padding: 32px 0;
    }

    .project-gallery__track {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-gallery__card {
        height: clamp(250px, 55vw, 300px);
        width: clamp(220px, 75vw, 280px);
    }
}

/* ===================================
   Gallery Lightbox Modal
   =================================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 39, 22, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.gallery-lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.gallery-lightbox__image,
.gallery-lightbox__video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2dbd3;
    font-size: 24px;
    transition: all 0.2s ease;
    z-index: 10000;
}

.gallery-lightbox__close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
