/* Gallery Page Styles */

/* Gallery Hero */
.gallery-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.4); /* translucent background only */
  opacity: 1;                            /* make the box fully opaque */
  color: #fff;
  backdrop-filter: blur(6px);
}


.stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700; /* bright gold for strong contrast */
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;  /* force override */
  opacity: 1;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


/*.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
}*/

/*.stat-label {
    font-size: 1rem;
    opacity: 1;
    color: #ffd700;
}*/

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    width: 100%;
}

.gallery-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.view-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.view-btn i {
    margin-right: 0.5rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Gallery CTA */
.gallery-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.gallery-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: white;
    max-width: 600px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-description {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Filter Animation */
.gallery-item.hidden {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Active Navigation Link */
.nav-link.active {
    color: #ff6b6b !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}



/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 60px;
    }

    .gallery-hero h1 {
        font-size: 2.5rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }

    .gallery-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }

    .gallery-info {
        padding: 1rem;
    }

    .gallery-cta {
        padding: 60px 0;
    }

    .gallery-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    .modal-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-actions .btn {
        width: 150px;
    }

    .modal-navigation {
        padding: 0 1rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        margin: 0 0.5rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-info h3 {
        font-size: 1.1rem;
    }

    .gallery-info p {
        font-size: 0.8rem;
    }

    .view-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .modal-image {
        max-height: 60vh;
    }

    .modal-info {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.gallery-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.gallery-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Lazy Loading */
.gallery-image img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

.gallery-image img.loaded {
    filter: blur(0);
}

/* Masonry Layout for larger screens */
@media (min-width: 1200px) {
    .gallery-grid {
        columns: 3;
        column-gap: 2rem;
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .gallery-image {
        aspect-ratio: auto;
    }
}

/* Print Styles */
@media print {
    .gallery-hero,
    .gallery-cta {
        background: white !important;
        color: black !important;
    }
    
    .gallery-overlay {
        display: none !important;
    }
    
    .gallery-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .image-modal {
        display: none !important;
    }
}

/* Accessibility */
.gallery-item:focus,
.filter-btn:focus,
.view-btn:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .gallery-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .filter-btn {
        border-width: 3px;
    }
    
    .view-btn {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-image img,
    .filter-btn,
    .view-btn {
        transition: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover .gallery-image img {
        transform: none;
    }

}

