/* ==================== GALERI PAGE STYLES ==================== */
/* Navbar styles are inherited from style.css */

/* Hero Section */
.gallery-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0f766e 0%, #059669 50%, #10b981 100%);
}

.gallery-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-hero-content h1 {
    font-size: 56px;
    margin: 20px 0;
    color: #ffffff;
    line-height: 1.2;
}

.gallery-hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.gallery-hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 60px;
    color: rgba(16, 185, 129, 0.15);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Filter Section */
.gallery-filter-section {
    padding: 40px 0;
    background: var(--dark-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-filter-btn {
    padding: 14px 32px;
    background: var(--dark-lighter);
    color: var(--text-secondary);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(16, 185, 129, 0.1);
}

.gallery-filter-btn.active {
    background: var(--gradient-1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.gallery-filter-btn i {
    font-size: 18px;
}

/* Gallery Main */
.gallery-main {
    padding: 80px 0;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-card);
    transition: all 0.4s ease;
}

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

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    background: var(--gradient-1);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.gallery-info h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.gallery-view-btn {
    display: none !important;
}

/* Load More */
.gallery-load-more {
    text-align: center;
    margin-top: 60px;
}

.gallery-load-more .btn {
    min-width: 250px;
}

/* Gallery Stats */
.gallery-stats {
    padding: 80px 0;
    background: var(--dark-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-lighter);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.stat-box i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.stat-box h3 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    animation: lightboxZoom 0.4s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-info {
    background: var(--dark-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    text-align: center;
}

.lightbox-category {
    display: inline-block;
    background: var(--gradient-1);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.lightbox-info h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.lightbox-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: 40vh;
    }

    .gallery-hero-content h1 {
        font-size: 36px;
    }

    .gallery-hero-content p {
        font-size: 16px;
    }

    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .gallery-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image {
        height: 280px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-box {
        padding: 30px 20px;
    }

    .stat-box i {
        font-size: 36px;
    }

    .stat-box h3 {
        font-size: 32px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content img {
        max-height: 50vh;
    }

    .lightbox-info {
        padding: 20px;
    }

    .lightbox-info h3 {
        font-size: 20px;
    }

    .lightbox-info p {
        font-size: 14px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
    }
}
