/* Gallery Page Styles - Professional Corporate Theme */

/* Hero Section */
.gallery-hero-section {
    background: linear-gradient(135deg, #1A376B 0%, #2a4a7f 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.gallery-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(251, 183, 5, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(26, 55, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.gallery-hero-content h1 {
    color: white;
    line-height: 1.2;
}

/* Filter Section */
.gallery-filter-section {
    background: white;
    padding: 50px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e6ed;
    color: #666;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.filter-btn:hover {
    border-color: #1A376B;
    color: #1A376B;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1A376B, #2a4a7f);
    color: white;
    border-color: #1A376B;
}

/* EPC filter styling and EPC item badge */
.filter-btn[data-filter="epc"] {
    border-color: rgba(251, 183, 5, 0.15);
}

.filter-btn[data-filter="epc"].active {
    background: linear-gradient(135deg, #FBB705, #F59E0B);
    color: #1A376B;
    border-color: #FBB705;
}

.gallery-item.epc .gallery-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(251, 183, 5, 0.95) 100%);
}

.epc-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FBB705, #F59E0B);
    color: #1A376B;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(251, 183, 5, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.filter-btn i {
    font-size: 16px;
}

/* Gallery Grid Section */
.gallery-grid-section {
    background: linear-gradient(135deg, #F4F6F9 0%, #ffffff 100%);
    padding: 80px 0 100px;
    position: relative;
    min-height: 60vh;
}

.gallery-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(251, 183, 5, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(26, 55, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
}

.gallery-item.hidden {
    display: none;
}

.gallery-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 55, 107, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 320px;
    width: 100%;
}

.gallery-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(26, 55, 107, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 55, 107, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    width: 100%;
    text-align: left;
    padding: 5px 0;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
    line-height: 1.3;
}

.gallery-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.9;
    color: #f0f0f0;
    line-height: 1.4;
}

.gallery-view-btn {
    background: rgba(251, 183, 5, 0.9);
    color: #1A376B;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.gallery-view-btn:hover {
    background: #FBB705;
    transform: scale(1.05);
}

/* Load More Section */
.gallery-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 20px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1A376B, #2a4a7f);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 55, 107, 0.3);
    background: linear-gradient(135deg, #2a4a7f, #1A376B);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Statistics Section */
.gallery-stats-section {
    background: linear-gradient(135deg, #1A376B 0%, #2a4a7f 100%);
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    background: rgba(251, 183, 5, 0.2);
    color: #FBB705;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: #FBB705;
    color: #1A376B;
    transform: scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #f0f0f0;
    font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 20px;
    background: white;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A376B;
    margin-bottom: 15px;
}

.lightbox-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lightbox-nav-btn {
    background: linear-gradient(135deg, #1A376B, #2a4a7f);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.lightbox-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 55, 107, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero-section {
        padding: 100px 0 60px;
        min-height: 50vh;
    }
    
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .filter-btn {
        width: 220px;
        justify-content: center;
    }
    
    .gallery-item {
        max-width: 100%;
    }
    
    .gallery-card {
        height: 280px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .lightbox-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .lightbox-navigation {
        flex-direction: column;
    }
    
    .lightbox-nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-card {
        margin: 0;
        height: 260px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 1.1rem;
    }
    
    .gallery-description {
        font-size: 0.8rem;
    }
    
    .filter-btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Styles */
.gallery-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.gallery-item.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Animation */
.gallery-item.filtering {
    transition: all 0.3s ease;
}

.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item.fade-in-filter {
    opacity: 1;
    transform: scale(1);
    animation: fadeInFilter 0.4s ease forwards;
}

@keyframes fadeInFilter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gallery Categories Section */
.gallery-categories-section {
  padding: 80px 0;
  background: white;
}

.gallery-category-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(26, 55, 107, 0.2);
}

.category-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: rgba(26, 55, 107, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-category-card:hover .category-overlay {
  background: rgba(251, 183, 5, 0.9);
  transform: scale(1.1);
}

.category-icon {
  color: white;
  font-size: 24px;
}

.category-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-content h3 {
  margin-bottom: 15px;
  line-height: 1.3;
}

.category-content p {
  margin-bottom: 25px;
  line-height: 1.6;
  flex: 1;
}

.category-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1A376B;
  font-size: 14px;
  font-weight: 500;
}

.stat-item i {
  font-size: 16px;
  color: #FBB705;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: linear-gradient(135deg, #1A376B, #2a4a7f);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.category-btn:hover {
  background: linear-gradient(135deg, #FBB705, #e6a500);
  color: #1A376B;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 183, 5, 0.3);
}

.category-btn i {
  transition: transform 0.3s ease;
}

.category-btn:hover i {
  transform: translateX(5px);
}
