/* ========================================
   GALLERY PAGE STYLES - Modern & Attractive
   VFL Group India
   ======================================== */

:root {
    --primary-blue: #1E65A5;
    --primary-red: #E02A2A;
    --dark-blue: #134077;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --text-dark: #333;
   
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.15);
}

/* ============================================
   GALLERY HERO SECTION — CLEAN IMAGE VERSION
   ============================================ */
.gallery-hero {
    position: relative;
    padding: 140px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    overflow: hidden;
}

/* Background Image via HTML (Fully Visible) */
.gallery-hero .gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1; /* Full image visibility */
    filter: brightness(1); /* No dark or blue tint */
}

/* 🔹 No gradient or overlay — removed ::before completely */

/* Floating Icons */
.gallery-hero .floating-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.08;
    animation: floatSoft 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    color: white;
}

/* Icon Positions */
.gallery-hero .floating-icon:nth-child(2) { top: 15%; left: 5%; animation-delay: 0s; font-size: 28px; }
.gallery-hero .floating-icon:nth-child(3) { top: 70%; right: 8%; animation-delay: 2s; font-size: 32px; }
.gallery-hero .floating-icon:nth-child(4) { bottom: 20%; left: 10%; animation-delay: 4s; font-size: 26px; }
.gallery-hero .floating-icon:nth-child(5) { top: 40%; right: 15%; animation-delay: 1s; font-size: 30px; }
.gallery-hero .floating-icon:nth-child(6) { bottom: 30%; right: 5%; animation-delay: 3s; font-size: 28px; }

/* Floating Animation */
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); opacity: 0.08; }
    50% { transform: translateY(-10px); opacity: 0.12; }
}

/* Content Container */
.gallery-hero .container {
    position: relative;
    z-index: 3;
}

/* Heading */
.gallery-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* Keeps text readable */
    animation: fadeInDown 0.8s ease;
}

/* Header Line */
.gallery-hero .header-line {
    width: 80px;
    height: 3px;
    background: #E02A2A;
    margin: 20px auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease 0.2s both;
}

/* Description Text */
.gallery-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.3s both;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Subtle shadow for readability */
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 60px 20px;
    }

    .gallery-hero h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .gallery-hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 26px;
    }

    .gallery-hero p {
        font-size: 15px;
    }
}

/* Gallery Filters - Modern Style */
.gallery-filters-wrapper {
    /* background: white; */
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 35px;
    border: 1px solid #eee;
    overflow: hidden;
}

.gallery-filters {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-category {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.filter-category:hover {
    color: #1E65A5;
    background: rgba(30, 101, 165, 0.05);
}

.filter-category.active {
    background: #1E65A5;
    color: white;
}

/* Search Box - Modern */
.search-box {
    position: relative;
    width: 240px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 13px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #1E65A5;
    background: white;
}

/* Gallery Grid - Smaller Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

/* Gallery Card - Modern & Attractive */
.gallery-card {
    animation: fadeIn 0.5s ease;
}

.gallery-card-inner {
    /* background: white; */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Image Wrapper - Modern Aspect Ratio */
.gallery-image-wrapper {
    position: relative;
    padding-top: 70%; /* Slightly shorter */
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card-inner:hover .gallery-image {
    transform: scale(1.05);
}

/* Modern Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-inner:hover .gallery-overlay {
    opacity: 1;
}

/* Modern View Button */
.gallery-view-btn {
    width: 36px;
    height: 36px;
    /* background: white; */
    border: none;
    border-radius: 50%;
    color: #1E65A5;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.25s ease forwards;
}

.gallery-view-btn:hover {
    background: #E02A2A;
    color: white;
    transform: translateY(10px) scale(1.1);
}

/* Card Body - Compact */
.gallery-card-body {
    padding: 12px;
    /* background: white; */
}

.gallery-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Empty State - Clean */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.empty-state-content i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state-content h3 {
    font-size: 22px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state-content p {
    color: #999;
    font-size: 14px;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Lightbox - Clean */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
}

.gallery-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.lightbox-container {
    position: relative;
    max-width: 85%;
    max-height: 85%;
}

.lightbox-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-close:hover {
    background: #E02A2A;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: #1E65A5;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Animations */
@keyframes floatSoft {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    50% { transform: translateY(-10px) rotate(2deg); opacity: 0.12; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-hero h1 { font-size: 36px; }
    .gallery-hero p { font-size: 16px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
    .gallery-hero { padding: 50px 0; }
    .gallery-hero h1 { font-size: 30px; }
    
    .gallery-filters-wrapper { border-radius: 16px; }
    .gallery-filters { flex-direction: column; align-items: stretch; padding: 15px; }
    .filter-categories { justify-content: center; }
    .search-box { width: 100%; }
    
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
    
    .lightbox-nav { width: 35px; height: 35px; font-size: 18px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 576px) {
    .gallery-hero h1 { font-size: 26px; }
    .gallery-hero .header-line { width: 60px; }
    
    .filter-category { 
        width: calc(50% - 5px); 
        text-align: center;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-image-wrapper { padding-top: 65%; }
    
    .lightbox-close { top: 15px; right: 15px; width: 35px; height: 35px; }
}