/* ===== GALLERY PAGE STYLES ===== */
:root {
    --primary: #00f3ff;
    --secondary: #7b2cbf;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --bg-dark: #0a0a0a;
    --bg-charcoal: #1a1a1a;
    --bg-card: #111111;
    --gradient-1: linear-gradient(135deg, #00f3ff, #7b2cbf);
    --gradient-2: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1));
    --shadow-neon: 0 0 20px rgba(0, 243, 255, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== GALLERY HERO SECTION ===== */
.gallery-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.gallery-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10 10 L90 10 L90 90 L10 90 Z" fill="none" stroke="%2300f3ff" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="%2300f3ff" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    z-index: 2;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.gallery-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 3;
}

.gallery-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    animation: fadeInUp 1s ease;
}

.gallery-hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===== GALLERY TABS SECTION ===== */
.gallery-tabs-section {
    padding: 2rem 0;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.gallery-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.gallery-tab-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gallery-tab-btn i {
    font-size: 1.2rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.gallery-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    z-index: -1;
}

.gallery-tab-btn:hover::before,
.gallery-tab-btn.active::before {
    width: 100%;
}

.gallery-tab-btn:hover,
.gallery-tab-btn.active {
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* ===== GALLERY FILTER SECTION ===== */
.gallery-filter-section {
    padding: 2rem 0;
    background: var(--bg-charcoal);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.gallery-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gallery-filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    z-index: -1;
}

.gallery-filter-btn:hover::before,
.gallery-filter-btn.active::before {
    width: 100%;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* ===== GALLERY GRID SECTION ===== */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-dark);
    min-height: 80vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.gallery-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== GALLERY ITEM ===== */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== GALLERY ITEM OVERLAY ===== */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.gallery-item-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GALLERY ITEM ICON ===== */
.gallery-item-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-neon);
}

.gallery-item:hover .gallery-item-icon {
    opacity: 1;
    transform: scale(1);
}

/* ===== VIDEO ITEM SPECIFIC STYLES ===== */
.gallery-item.video-item::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    z-index: 5;
    opacity: 0.9;
    box-shadow: var(--shadow-neon);
    animation: pulseVideo 2s infinite;
}

@keyframes pulseVideo {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: var(--shadow-neon);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px var(--primary);
    }
}

.gallery-item.video-item:hover::before {
    background: var(--secondary);
}

.gallery-item.video-item .gallery-item-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0, 243, 255, 0.3));
}

.gallery-item.video-item .gallery-item-category {
    background: var(--secondary);
}

/* ===== VIDEO DURATION BADGE ===== */
.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 11;
    backdrop-filter: blur(5px);
}

/* ===== GALLERY LOAD MORE ===== */
.gallery-load-more {
    text-align: center;
    margin-top: 4rem;
}

.gallery-load-more-btn {
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    z-index: -1;
}

.gallery-load-more-btn:hover::before {
    width: 100%;
}

.gallery-load-more-btn:hover {
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.gallery-load-more-btn i {
    transition: transform 0.3s ease;
}

.gallery-load-more-btn:hover i {
    transform: rotate(180deg);
}

/* ===== GALLERY STATS SECTION ===== */
.gallery-stats {
    padding: 4rem 0;
    background: var(--bg-charcoal);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    text-align: center;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== EMPTY STATE ===== */
.gallery-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px dashed var(--primary);
    grid-column: 1 / -1;
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.gallery-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.gallery-empty p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.gallery-empty-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    transform: rotate(90deg);
    background: var(--secondary);
    box-shadow: var(--shadow-neon);
}

.video-modal-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-modal-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-info {
    padding: 1.5rem;
}

.video-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.video-modal-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-modal-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.video-modal-category {
    padding: 0.3rem 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-modal-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== LIGHTBOX CUSTOMIZATION ===== */
.lb-loader,
.lightbox {
    z-index: 100000 !important;
}

.lb-outerContainer {
    border-radius: 20px !important;
    background: var(--bg-dark) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.5) !important;
}

.lb-data .lb-caption {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-light) !important;
    line-height: 1.6 !important;
}

.lb-data .lb-number {
    color: var(--text-gray) !important;
    font-size: 0.9rem !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 1 !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GALLERY ITEM ANIMATION ===== */
.gallery-item {
    animation: fadeIn 0.6s ease both;
}

.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; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .gallery-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .gallery-hero-title {
        font-size: 3rem;
    }
    
    .gallery-tab-btn {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        margin-top: 70px;
        height: 40vh;
        min-height: 350px;
    }
    
    .gallery-hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-tabs-container {
        gap: 0.8rem;
    }
    
    .gallery-tab-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .gallery-filter-container {
        gap: 0.8rem;
    }
    
    .gallery-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-load-more-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .video-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .gallery-hero-title {
        font-size: 2rem;
    }
    
    .gallery-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .gallery-tab-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .gallery-item.video-item::before {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .gallery-item-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.5));
    }
    
    .gallery-item-icon {
        opacity: 1;
        transform: scale(1);
    }
    
    .gallery-item.video-item::before {
        opacity: 1;
    }
    
    .gallery-filter-btn:hover {
        transform: none;
    }
}