/* ==============================================================================
   ARKHON MIMARLIK - INTERACTIVE PORTFOLIO & MULTIMEDIA LIGHTBOX
   ============================================================================== */

/* --- Category Filter Pills --- */
.portfolio-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portfolio-filter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.portfolio-filter-btn.active {
    background: #ffc107;
    color: #0f172a;
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35);
}

.portfolio-filter-btn .badge-count {
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 12px;
}

.portfolio-filter-btn.active .badge-count {
    background: rgba(0, 0, 0, 0.18);
    color: #000;
    font-weight: bold;
}

/* --- Project Grid & Cards --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 15px;
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 193, 7, 0.5);
}

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

.portfolio-card:hover .portfolio-card-img {
    transform: scale(1.08);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: background 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0.2) 100%);
}

.portfolio-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.portfolio-card-category {
    color: #ffc107;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.portfolio-card-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.portfolio-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover .portfolio-card-action {
    opacity: 1;
    color: #ffc107;
    transform: translateX(4px);
}

/* --- Lightbox Gallery Modal --- */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.96);
    backdrop-filter: blur(16px);
    z-index: 1050;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Lightbox Header */
.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    z-index: 10;
}

.lightbox-title-box h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.lightbox-title-box p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc107;
}

.lightbox-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.lightbox-close-btn {
    font-size: 1.6rem;
    color: #ef4444;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Lightbox Stage (Center) */
.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
    user-select: none;
}

.lightbox-media-wrapper {
    max-width: 90vw;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

.lightbox-video {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: #000;
    outline: none;
}

/* Nav Arrows */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 193, 7, 0.9);
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.lightbox-nav-prev { left: 24px; }
.lightbox-nav-next { right: 24px; }

/* Lightbox Bottom Thumbnail Filmstrip */
.lightbox-filmstrip {
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
}

.lightbox-filmstrip::-webkit-scrollbar {
    height: 6px;
}
.lightbox-filmstrip::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 3px;
}

.filmstrip-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s ease;
    position: relative;
    background: #000;
}

.filmstrip-thumb img, .filmstrip-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filmstrip-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.filmstrip-thumb.active {
    opacity: 1;
    border-color: #ffc107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
    transform: scale(1.05);
}

.filmstrip-thumb .video-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffc107;
    padding: 1px 3px;
    border-radius: 3px;
}
