/* Gallery Page Styles */

/* Gallery page specific body styles - only apply when needed */
.gallery-page body,
body.gallery-page {
    background-color: #000000 !important;
    color: #ffffff;
}

.page-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.png') repeat;
    opacity: 0.1;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.5);
    color: #ffffff;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    margin: 0;
}

.breadcrumb-item a {
    color: #d4af37;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #f4d03f;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

/* Gallery Filters */
.gallery-filters {
    background: #1a1a1a;
    border-bottom: 1px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-filter {
    background: transparent;
    border: 2px solid #333333;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-filter:hover,
.btn-filter.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

/* Gallery Stats */
.gallery-stats {
    background: #000000;
    color: #ffffff;
}

.stat-item {
    background: #1a1a1a;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease;
    height: 100%;
    border: 2px solid #333333;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
}

/* Gallery CTA */
.gallery-cta {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #d4af37;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/pattern.png') repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #b8941f, #d4af37);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .btn-filter {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .gallery-filters {
        position: relative;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-filter {
        width: 200px;
        margin: 3px 0;
    }
}

/* Loading Animation */
.gallery-loading {
    text-align: center;
    padding: 50px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #d4af37;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for gallery items */
.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 Section Styles */
.gallery-section {
    background-color: #000000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.gallery-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    margin: 0 auto;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid #333333;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay-content {
    text-align: center;
    color: white;
}

.gallery-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-service {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.gallery-details {
    text-align: left;
}

.detail-item {
    font-size: 0.95rem;
    color: #333333;
}

.detail-item strong {
    color: #2c3e50;
}

.no-gallery-items {
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 15px;
    border: 2px dashed #d4af37;
}

.no-gallery-items h4 {
    color: #d4af37;
}

.no-gallery-items p {
    color: #cccccc;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
}

.modal-header {
    background-color: #000000;
    border-bottom: 1px solid #333333;
}

.modal-title {
    color: #d4af37;
}

.btn-close {
    filter: invert(1);
}

.modal-body img {
    border-radius: 0;
    max-height: 70vh;
    width: auto;
}

.modal-footer {
    background-color: #1a1a1a !important;
    border-top: 1px solid #333333;
}

/* Featured Gallery Preview Styles */
.featured-gallery-section {
    background: #000000;
    color: #ffffff;
}

.featured-gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.featured-gallery-section .lead {
    color: #cccccc;
    font-size: 1.2rem;
}

.gallery-preview-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.gallery-preview-item:hover {
    transform: translateY(-5px);
}

.gallery-preview-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    height: 250px;
    border: 2px solid #333333;
}

.gallery-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-item:hover .gallery-preview-image {
    transform: scale(1.1);
}

.gallery-preview-content {
    text-align: center;
    color: white;
}

.gallery-preview-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-preview-service {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Load More Button */
.btn-load-more {
    border-color: #d4af37;
    color: #d4af37;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-load-more:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #000000;
}