/* gallery.css - Specific styles for Gallery Page */

/* Page Header */
.gallery-header {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: url('assets/gallery_bg.png') center center/cover no-repeat fixed;
    z-index: 1;
}

.gallery-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(244, 246, 250, 0.95));
    z-index: -1;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-dark);
    position: relative;
    min-height: 80vh;
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: var(--glass-shadow);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--neon-blue);
    color: #ffffff;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-dim);
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
    filter: brightness(1) contrast(1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 102, 0, 0.9), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.gallery-overlay h3 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    color: #fff;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.gallery-item:hover {
    box-shadow: 0 15px 30px var(--neon-blue-dim);
    border-color: var(--neon-blue);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

.gallery-item:hover .gallery-overlay-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
}

/* Lightbox Styling */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px var(--neon-blue-dim);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--neon-blue);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--neon-blue);
    color: #ffffff;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-dim);
}

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

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 992px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
    .lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 1.5rem; }
}
