/* -------------------------------------------------- */
/* Neera Productions - Portfolio Page Custom Styles   */
/* -------------------------------------------------- */

/* 1. Hero Section Slider */
.portfolio-hero-section {
    position: relative;
    height: 95vh;
    /* Reduced height from 100vh to 65vh */
    min-height: 500px;
    /* Minimum height constraints */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
    /* Adjusted padding-bottom for content positioning */
    background-color: #0c0c0d;
}

.portfolio-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.portfolio-hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-slider-content {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.hero-slider-chip {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    align-self: flex-start !important;
}

.hero-slider-title {
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

.hero-slider-desc {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.hero-slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot.active {
    background-color: var(--color-gold-start);
    width: 24px;
    border-radius: 4px;
}

/* 2. Portfolio Grid & Filtering (Light Theme) */
.portfolio-grid-section {
    background-color: #FAF8F5;
    /* Warm off-white */
    position: relative;
    padding: 30px 0 20px 0;
    /* Reduced bottom padding from 80px to 20px */
    overflow: hidden;
}

/* Page-specific override to reduce spacing above the CTA section */
.portfolio-grid-section+.cta-section {
    padding-top: 40px !important;
}

.portfolio-grid-glow-spot {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(234, 161, 15, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.portfolio-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

/* Category filter header & pill bar */
.portfolio-filter-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.filter-registry-chip {
    align-self: flex-start !important;
    color: #b45309 !important; /* Gold/brown text for readability */
    background-color: rgba(234, 161, 15, 0.08) !important; /* Semi-transparent gold BG */
    border: 1px solid rgba(234, 161, 15, 0.3) !important; /* Gold border outline */
}

.filter-registry-chip .badge-dot {
    background-color: #b45309 !important; /* Matches dot color */
}

.filter-main-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #0A0A0A;
    margin: 0;
    letter-spacing: -0.01em;
}

.filter-main-desc {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.82rem;
    color: #55585d;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 0;
    max-width: 500px;
    font-weight: 500;
}

.portfolio-categories-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 5px;
    border-radius: 50px;
    gap: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-chip {
    font-family: var(--font-primary), sans-serif;
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-chip:hover {
    color: #0A0A0A;
}

.category-chip.active {
    background-color: #0c0c0d;
    /* Our own deep dark brand color */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Pinterest style columns layout */
.portfolio-pinterest-grid {
    columns: 3; /* Changed to 3 columns to span full width cleanly without blank column */
    column-gap: 20px; /* Refined spacing gap */
    width: 100%;
}

.portfolio-grid-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px; /* Tightened item gap */
    background: #121315;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px; /* Slightly tighter border-radius for smaller cards */
    overflow: hidden;
    position: relative; /* Enabled absolute positioning of metadata overlay */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.portfolio-grid-item:hover {
    transform: translateY(-3px);
    border-color: rgba(234, 161, 15, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.grid-card-media {
    position: relative;
    overflow: hidden;
    background-color: #000;
    width: 100%;
}

/* Dynamic height configurations - compact sizes */
.height-tall {
    height: 350px; /* Increased to make cards bigger and match wide aspect ratio */
}

.height-medium {
    height: 270px; /* Increased */
}

.height-short {
    height: 200px; /* Increased */
}

.grid-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid-item:hover .grid-card-video {
    transform: scale(1.03);
}

.grid-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-grid-item:hover .grid-card-overlay {
    opacity: 0.85;
}

.grid-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 44px; /* Slightly smaller play button */
    height: 44px;
    border-radius: 50%;
    background-color: rgba(251, 191, 36, 0.95);
    color: #0c0d0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.2);
    padding-left: 2px;
}

.portfolio-grid-item:hover .grid-card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Floating Duration Badge */
.grid-card-duration {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(12, 12, 13, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 50px;
    z-index: 4;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Transparent Overlay Metadata - Always Visible */
.grid-card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(12, 12, 13, 0.95) 0%, rgba(12, 12, 13, 0.4) 80%, transparent 100%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 1; /* Always visible */
    transform: translateY(0); /* Aligned */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-card-meta-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.grid-card-title {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.78rem; /* Slightly smaller for compact layouts */
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.grid-card-tag {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-gold-start);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grid-card-meta-arrow {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--color-gold-start);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-start);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-grid-item:hover .grid-card-meta-arrow {
    background-color: var(--color-gold-start);
    color: #0c0d0e;
    border-color: var(--color-gold-start);
    box-shadow: 0 0 10px rgba(234, 161, 15, 0.4);
}

/* Lightbox overlays matching home page */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 6, 7, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.lightbox-modal {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #0d0e10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.85);
    z-index: 2;
    display: flex;
    flex-direction: column;
    animation: zoom-in-lightbox 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoom-in-lightbox {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(13, 14, 16, 0.95);
}

.lightbox-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lightbox-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-gold-start);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lightbox-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.lightbox-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
}

.lightbox-close-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

.lightbox-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
}

.lightbox-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive adjusters */
@media (max-width: 1024px) {
    .portfolio-pinterest-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .portfolio-pinterest-grid {
        columns: 2; /* 2 columns looks neat on tablet/mobile screens */
        column-gap: 8px;
    }

    .portfolio-grid-item {
        margin-bottom: 8px;
        border-radius: 10px; /* Symmetrical border-radius for mobile */
    }

    .portfolio-hero-section {
        height: 95vh; /* Taller mobile height constraint */
        min-height: 550px; /* Safe bounds to prevent vertical squishing */
        padding-bottom: 60px;
    }

    .hero-slider-content {
        padding: 95px 20px 0 20px; /* Pushed content down to clear sticky header */
    }

    .filter-main-title {
        font-size: 1.35rem; /* Shrunk from 1.85rem on mobile */
    }

    .portfolio-filter-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        width: 100%;
    }

    .portfolio-categories-wrapper {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 4px;
        margin: 0;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .portfolio-categories-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .category-chip {
        padding: 6px 12px; /* Tighter padding for mobile chips */
        font-size: 0.6rem; /* Shrunk from 0.68rem */
        border-radius: 30px;
    }

    .portfolio-grid-section {
        padding: 25px 0;
    }

    .portfolio-grid-container {
        padding: 0 16px;
    }
}

.btn-grid-all:hover {
    background-color: var(--color-gold-start) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(234, 161, 15, 0.2);
    transform: translateY(-2px);
    border-color: var(--color-gold-start) !important;
}

.btn-grid-all:hover .arrow-right-icon {
    transform: translateX(4px);
}
