/* Gallery Page CSS */

.gallery-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

body.dark-mode .gallery-section,
body.dark-mode .testimonials,
body.dark-mode .gallery-stats,
body.dark-mode .gallery-cta,
body.dark-mode .gallery-content,
body.dark-mode .testimonial-card,
body.dark-mode .gallery-stats .stat-item,
body.dark-mode .gallery-filter {
    background-color: var(--surface-color);
    color: var(--text-dark);
}

body.dark-mode .gallery-content,
body.dark-mode .testimonial-card,
body.dark-mode .gallery-stats .stat-item,
body.dark-mode .gallery-item {
    background-color: var(--surface-elevated);
    box-shadow: 0 5px 15px var(--shadow-color);
}

body.dark-mode .quote,
body.dark-mode .testimonial-author span,
body.dark-mode .gallery-category,
body.dark-mode .gallery-cta p {
    color: var(--text-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.gallery-filter:hover,
.gallery-filter.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--border-color) 0%, #ecf0f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.gallery-item:hover .gallery-image::after {
    opacity: 1;
}

.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.3);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: white;
}

.gallery-content {
    padding: 1.5rem;
    background-color: white;
}

body.modal-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.gallery-lightbox-title {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.gallery-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.gallery-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    background-color: white;
    padding: 80px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.15);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stars i {
    margin-right: 0.3rem;
}

.quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery Stats */
.gallery-stats {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.gallery-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.gallery-stats .stat-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-stats .stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery CTA */
.gallery-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.gallery-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }

    .gallery-hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-image {
        height: 150px;
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-stats .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-cta h2 {
        font-size: 1.8rem;
    }
}
