.gallery-page {
    min-height: 100vh;
    padding-top: 100px;
}

.gallery-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    left: 0;
    top: 0;
    transform: translate(0,0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 50px;
    color: var(--honey-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: var(--gradient-gold);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeIn 1s ease 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 184, 0, 0.02) 0px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(255, 184, 0, 0.02) 0px, transparent 1px, transparent 50px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--honey-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(0) translateX(100px);
    }
}

.gallery-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 1s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 200%;
    height: 200%;
}

.filter-btn:hover {
    border-color: var(--honey-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.2);
}

.filter-btn.active {
    color: var(--cyber-black);
    border-color: var(--honey-primary);
    font-weight: 700;
}

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

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.filter-btn.active .count {
    background: rgba(0, 0, 0, 0.2);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.9);
    animation: itemFadeIn 0.6s ease forwards;
}

@keyframes itemFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.gallery-item:hover .item-inner img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

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

.overlay-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

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

.overlay-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

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

.overlay-tags {
    display: flex;
    gap: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

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

.overlay-tags .tag {
    padding: 4px 12px;
    background: var(--gradient-gold);
    color: var(--cyber-black);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--cyber-black);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .btn-view {
    opacity: 1;
    transform: scale(1);
}

.btn-view:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lightbox-image-container {
    position: relative;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--glass-border);
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--cyber-black);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.5);
}

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

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

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

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

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

.lightbox-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.lightbox-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lightbox-category {
    padding: 6px 16px;
    background: var(--gradient-gold);
    color: var(--cyber-black);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.lightbox-counter span {
    color: var(--honey-primary);
    font-weight: 700;
}

.load-more-section {
    text-align: center;
    margin-bottom: 80px;
}

.btn-load-more {
    padding: 16px 32px;
    background: var(--glass-white);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    border-color: var(--honey-primary);
    background: var(--gradient-gold);
    color: var(--cyber-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
}


@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 184, 0, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.gallery-item:hover::before {
    left: 100%;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

    .hero-title {
        font-size: 48px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

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

    .lightbox-info p {
        font-size: 14px;
    }
    .gallery-page .lightbox-counter{
        bottom: -80px!important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .filter-btn {
        padding: 10px;
        min-width: 44px;
        justify-content: center;
    }
}
