﻿/* =========================================
   VEMS GALLERY SECTION - PROFESSIONAL DESIGN
   HD Images | Card Hover Effects | Responsive
   ========================================= */

.vems-gallery {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 20px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.vems-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== SECTION HEADER ========== */
.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a2f44, #1a4a64);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

    .gallery-badge i {
        font-size: 12px;
    }

.gallery-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a2f44;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

    .gallery-title .highlight {
        color: #e67e22;
        position: relative;
        display: inline-block;
    }

        .gallery-title .highlight::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #e67e22, #f39c4b);
            border-radius: 3px;
        }

.gallery-subtitle {
    color: #6c757d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ========== GALLERY FILTERS ========== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .filter-btn:hover {
        border-color: #e67e22;
        color: #e67e22;
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #e67e22, #f39c4b);
        border-color: transparent;
        color: white;
        box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    }

/* ========== GALLERY GRID ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Gallery Card */
.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
    position: relative;
}

    .gallery-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.gallery-card-inner {
    position: relative;
}

/* Gallery Image */
.gallery-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

    .gallery-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

/* Image Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 47, 68, 0.8), rgba(230, 126, 34, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.overlay-content span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Gallery Info */
.gallery-info {
    padding: 20px;
}

.gallery-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a2f44;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card-title {
    color: #e67e22;
}

.gallery-card-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 12px;
}

.gallery-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #adb5bd;
}

    .gallery-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .gallery-meta i {
        font-size: 11px;
        color: #e67e22;
    }

/* ========== LOAD MORE BUTTON ========== */
.gallery-load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: transparent;
    border: 2px solid #e67e22;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #e67e22;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

    .load-more-btn:hover {
        background: linear-gradient(135deg, #e67e22, #f39c4b);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    }

    .load-more-btn i {
        transition: transform 0.3s ease;
    }

    .load-more-btn:hover i {
        transform: translateY(3px);
    }

/* ========== LIGHTBOX MODAL ========== */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

    .gallery-lightbox.show {
        display: flex;
    }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10;
}

    .lightbox-close:hover {
        transform: rotate(90deg);
    }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: #e67e22;
        transform: translateY(-50%) scale(1.1);
    }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .gallery-title {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .vems-gallery {
        padding: 60px 16px;
    }

    .gallery-title {
        font-size: 28px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image {
        height: 240px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        top: -30px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 24px;
    }

    .gallery-badge {
        font-size: 11px;
    }

    .filter-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-card-title {
        font-size: 16px;
    }

    .gallery-card-desc {
        font-size: 12px;
    }

    .gallery-meta {
        font-size: 11px;
    }

    .load-more-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* Card Hover Animation Effect */
.gallery-card {
    animation: fadeInUp 0.6s ease backwards;
}

    .gallery-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .gallery-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .gallery-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .gallery-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .gallery-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .gallery-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .gallery-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .gallery-card:nth-child(8) {
        animation-delay: 0.8s;
    }

/* Filter Animation */
.gallery-card {
    transition: all 0.4s ease;
}

    .gallery-card.hide {
        display: none;
    }

    .gallery-card.show {
        display: block;
        animation: fadeInUp 0.5s ease;
    }
