/* ================================================
   LOISTE STUDIO - PROJECTS PAGE PREMIUM STYLES
   ================================================ */

/* 1. Projects Hero */
.projects-header {
    background-color: var(--white-beige);
    padding: 15rem 0 10rem 0;
}

.projects-header h1 {
    font-family: "Clarist", serif !important;
    font-size: 8.5rem;
    line-height: 1;
    color: var(--color-charcoal);
    margin-top: 2rem;
    font-weight: 300;
}

.projects-header h1 em {
    font-style: italic;
    color: var(--neutral-dark);
}

/* 2. Filter Navigation */
.filter-section {
    background-color: var(--white-beige);
    padding: 2rem 0 6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 100px;
    border: 1px solid rgba(163, 129, 58, 0.1);
    width: fit-content;
    margin: 0 auto;
}

.filter-btn {
    font-family: "aktiv-grotesk", sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 100px;
    color: #666;
}

.filter-btn:hover {
    color: var(--color-bronze);
}

.filter-btn.active {
    background-color: var(--color-bronze);
    color: #fff;
    box-shadow: 0 10px 20px rgba(163, 129, 58, 0.2);
}

/* 3. Projects Grid */
.projects-grid-section {
    background-color: var(--white-beige);
    padding: 0 0 15rem 0;
}

.projects-masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.project-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 1s ease;
    filter: brightness(0.9);
}

.project-image-container {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f0ede8;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.project-card__info {
    padding: 2.5rem 1rem;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(163, 129, 58, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.project-card .small__title {
    font-size: 2.4rem !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    font-family: "Clarist", serif !important;
    font-style: italic;
    color: var(--color-charcoal);
    display: block;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.project-card p {
    font-family: "aktiv-grotesk", sans-serif !important;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--neutral-dark);
    font-weight: 700;
}

/* 4. CTA Section */
.cta-section {
    background-color: var(--white-beige);
    padding: 15rem 0;
    text-align: center;
    border-top: 1px solid rgba(163, 129, 58, 0.1);
}

.cta-section h2 {
    font-family: "Clarist", serif;
    font-size: 8.5rem;
    color: var(--color-charcoal);
    margin: 2rem 0 4rem 0;
    line-height: 0.9;
}

.premium-button {
    font-family: "aktiv-grotesk", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 2.2rem 6rem;
    border: 1px solid var(--color-bronze);
    color: var(--neutral-dark);
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    font-weight: 700;
}

.premium-button:hover {
    background-color: var(--color-bronze);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(163, 129, 58, 0.15);
}

/* 5. Responsive */
@media (max-width: 1200px) {
    .projects-header h1 {
        font-size: 7rem;
    }

    .cta-section h2 {
        font-size: 7rem;
    }
}

@media (max-width: 1024px) {
    .projects-header h1 {
        font-size: 5.5rem;
    }

    .projects-masonry-grid {
        gap: 3rem;
    }

    .cta-section h2 {
        font-size: 5.5rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 10rem 0 4rem 0;
    }

    .projects-header h1 {
        font-size: 3.8rem;
    }

    .projects-masonry-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-section h2 {
        font-size: 3.8rem;
    }

    .cta-section {
        padding: 8rem 5%;
    }

    .filter-btn {
        padding: 0.8rem 1.6rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .project-card .small__title {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .projects-header h1 {
        font-size: 3rem;
    }

    .projects-masonry-grid {
        gap: 2.5rem;
    }

    .filter-nav {
        gap: 0.6rem;
        padding: 0.6rem;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 20px;
        white-space: normal;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .cta-section h2 {
        font-size: 3rem;
    }

    .floating-controls {
        bottom: 2rem;
        right: 2rem;
        gap: 1rem;
    }

    .back-to-top,
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

.projects-header {
    overflow: hidden;
    position: relative;
}

/* 6. Premium Filtering (Smooth UI) */
.project-card {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        visibility 0.6s !important;
}

.project-card.filtering-out {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    position: absolute;
    /* Take out of flow to prevent gaps */
    visibility: hidden;
}

.project-card.filtering-in {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}

/* 8. Lightbox Styles */
.loiste-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.loiste-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.loiste-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -4rem;
    right: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-caption {
    position: absolute;
    bottom: -6rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
}

.lightbox-caption h3 {
    font-family: "Clarist", serif;
    font-size: 2.4rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    font-family: "aktiv-grotesk", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-dark);
}

/* Navigation Active State */
.navigation__list__link.active {
    color: var(--neutral-dark) !important;
}