/*
 * DarkBlue Media - Galeri Page Styles
 * Clean Modern Design with Orange Accent
 */

/* ========================================
   Page Header - Premium Banner
   ======================================== */
.page-header {
    background: linear-gradient(180deg, #081220 0%, #0a1628 20%, #1a3a5c 60%, #2a5a8c 100%);
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 30px 30px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
    z-index: 10;
}

.page-header h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.page-header .lead {
    color: #999999;
    font-size: 1.2rem;
    position: relative;
}

/* ========================================
   Portfolio Filter
   ======================================== */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #666666;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

.filter-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* ========================================
   Portfolio Grid
   ======================================== */
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15);
    border-color: #ff6b00;
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder i {
    font-size: 3rem;
    color: #cccccc;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    background: #ff6b00;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.portfolio-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: #999999;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Portfolio item - Fixed Size */
.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Zoom icon on hover - only for images */
.portfolio-item:not(.video-item)::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.portfolio-item:not(.video-item):hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* ========================================
   Video Items
   ======================================== */
.video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.video-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-wrapper:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
}

.play-button i {
    color: #ffffff;
    font-size: 1.5rem;
    margin-left: 4px;
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
}

.media-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.media-badge.video {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
}

.media-badge.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #ffffff;
}

/* Instagram Embed Styles */
.instagram-item {
    height: auto !important;
    min-height: 280px;
}

.instagram-embed-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.instagram-embed-wrapper .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.instagram-item .portfolio-overlay {
    display: none;
}

/* ========================================
   Image Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ff6b00;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: #ff6b00;
}

/* ========================================
   CTA Section - Blends with Footer
   ======================================== */
.section-dark {
    background: linear-gradient(180deg, #0a1628 0%, #0d1e35 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    border-radius: 16px;
    padding: 3rem;
}

.cta-box h2 {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .page-header {
        padding: 8rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .portfolio-image {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .portfolio-image {
        height: 200px;
    }
}