/* gallery.css - Galerie Nava's Group */

/* ===== GALLERY HERO ===== */
.gallery-hero {
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.9)),
                url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 4.5rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-size: 1.3rem;
    color: var(--gold-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GALLERY FILTERS ===== */
.gallery-filters-container {
    background: var(--dark-gray);
    border-bottom: 1px solid rgba(201, 169, 106, 0.1);
    position: sticky;
    top: 80px;
    z-index: 99;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filters-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters-content::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--black);
    border: 1px solid rgba(201, 169, 106, 0.1);
    color: var(--light-gray);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.5px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--black);
    border-color: var(--gold);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    transform: translateY(0);
}

/* ===== GALLERY PAGE ===== */
.gallery-page {
    padding: 6rem 2rem;
    background: var(--black);
    position: relative;
}

.gallery-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 106, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 106, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 106, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 10, 0.3) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    border-radius: 2px;
}

.overlay-content h4 {
    color: var(--cream);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.gallery-load-more {
    text-align: center;
}

.gallery-load-more .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.gallery-load-more .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* ===== VIDEO GALLERY ===== */
.video-gallery {
    padding: 6rem 2rem;
    background: var(--dark-gray);
    position: relative;
}

.video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(201, 169, 106, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(201, 169, 106, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.video-item {
    background: var(--black);
    border: 1px solid rgba(201, 169, 106, 0.1);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.video-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3);
    transition: background 0.4s ease;
}

.video-item:hover .video-thumbnail::before {
    background: rgba(10, 10, 10, 0.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-align: center;
}

.play-overlay i {
    font-size: 2.5rem;
    color: var(--gold);
    transition: var(--transition);
}

.play-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.video-item:hover .play-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.video-item:hover .play-overlay i {
    transform: scale(1.2);
}

.play-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.play-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: scale(1.1);
}

.video-item h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--cream);
    font-size: 1.3rem;
    margin: 0;
}

.video-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--black);
    transform: rotate(90deg);
}

/* ===== GALLERY CTA ===== */
.gallery-cta {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
                url('https://images.unsplash.com/photo-1559925393-8be0ec4767c8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1471&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.gallery-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-cta h2 {
    font-size: 3.5rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gallery-cta p {
    font-size: 1.3rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.gallery-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-cta .cta-buttons .btn {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

/* ===== RESPONSIVE GALLERY ===== */
@media (max-width: 1200px) {
    .gallery-hero h1 {
        font-size: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .gallery-hero h1 {
        font-size: 3.5rem;
    }
    
    .gallery-hero p {
        font-size: 1.2rem;
    }
    
    .filters-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 200px;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }
    
    .video-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .gallery-cta h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .gallery-page,
    .video-gallery,
    .gallery-cta {
        padding: 4rem 1.5rem;
    }
    
    .gallery-hero h1 {
        font-size: 2.8rem;
    }
    
    .gallery-hero p {
        font-size: 1.1rem;
    }
    
    .filters-content {
        padding: 1.2rem 1.5rem;
    }
    
    .filter-btn {
        min-width: 160px;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .video-wrapper {
        height: 180px;
    }
    
    .gallery-cta h2 {
        font-size: 2.5rem;
    }
    
    .gallery-cta p {
        font-size: 1.1rem;
    }
    
    .gallery-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-cta .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .gallery-hero h1 {
        font-size: 2.2rem;
    }
    
    .gallery-hero p {
        font-size: 1rem;
    }
    
    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .gallery-cta h2 {
        font-size: 2rem;
    }
    
    .gallery-cta p {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item {
    animation: galleryReveal 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    opacity: 0;
}

/* Staggered animation */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

/* ===== PRINT STYLES ===== */
@media print {
    .gallery-filters-container,
    .video-gallery,
    .gallery-cta,
    .whatsapp-float {
        display: none !important;
    }
    
    .gallery-page {
        padding: 2rem !important;
        background: white !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .gallery-item {
        height: 200px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .gallery-item img {
        filter: grayscale(100%);
    }
    
    .gallery-overlay {
        display: none !important;
    }
}