/* PREMIUM LUXURY EDITORIAL PORTFOLIO */
.nep-portfolio-section {
    background-color: #ffffff;
    padding: 100px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

.nep-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER STYLE */
.nep-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.nep-header-left {
    max-width: 750px;
}

.nep-top-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #888888;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.nep-label-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: #888888;
}

.nep-heading {
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.25;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

.nep-heading-serif {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
}

/* ROUNDED PREMIUM CTA BUTTON */
.nep-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: #1F2937;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.35s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nep-cta-btn:hover {
    background-color: #111827;
    transform: translateY(-2px);
}

.nep-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nep-cta-btn:hover .nep-cta-icon {
    transform: translateX(5px);
}

/* FILTER PILLS */
.nep-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 55px;
    flex-wrap: wrap;
}

.nep-filter-btn {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.nep-filter-btn:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.nep-filter-btn.active {
    background-color: #C7A05A;
    border-color: #C7A05A;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(199, 160, 90, 0.25);
}

/* PORTFOLIO GRID */
.nep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    transition: height 0.4s ease;
}

/* CARDS */
.nep-grid-item {
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nep-grid-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.nep-card {
    display: block;
    position: relative;
    border-radius: 24px;
    overflow: visible; /* allows arrow to float slightly out */
    text-decoration: none !important;
    background-color: #1a1a1a;
    transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 350ms cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.nep-card-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.nep-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Bottom Dark Gradient Overlay */
.nep-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 350ms ease;
    border-radius: 24px;
}

/* Text Content Area */
.nep-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px;
    box-sizing: border-box;
    z-index: 2;
}

.nep-card-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1);
}

.nep-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0.9;
    transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1), opacity 350ms cubic-bezier(0.25, 1, 0.5, 1);
}

.nep-card-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

/* Circular Floating Arrow Button (Bottom-Right Corner) */
.nep-card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background-color: #C7A05A;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: transform 350ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 350ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* PREMIUM CARD HOVER STATE */
.nep-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.nep-card:hover .nep-card-media img {
    transform: scale(1.06);
}

.nep-card:hover .nep-card-title {
    transform: translateY(-8px);
}

.nep-card:hover .nep-card-tags {
    transform: translateY(-8px);
    opacity: 1;
}

.nep-card:hover .nep-card-arrow {
    transform: scale(1.12) rotate(20deg);
    box-shadow: 0 12px 24px rgba(199, 160, 90, 0.35);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .nep-portfolio-section {
        padding: 70px 0;
    }
    .nep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .nep-card-info {
        padding: 25px;
    }
    .nep-card-arrow {
        bottom: 25px;
        right: 25px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767px) {
    .nep-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 35px;
    }
    .nep-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .nep-filters {
        margin-bottom: 35px;
    }
}
