/* Gallery Page Styles - SEO Optimized */

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--lightbg);
    padding: 1.5rem 7%;
    margin-top: 80px;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb-container a {
    color: var(--maincolor);
    font-size: 1.4rem;
    text-decoration: none;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
}

.breadcrumb-container i {
    font-size: 1.2rem;
    color: #999;
}

.breadcrumb-container span {
    font-size: 1.4rem;
    color: #666;
}

/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #2a8b9e 100%);
    padding: 5rem 7%;
    text-align: center;
    color: white;
}

.gallery-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.gallery-hero-content p {
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondcolor);
}

.hero-stats .stat-label {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Gallery Filters */
.gallery-filters {
    padding: 3rem 7%;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--maincolor);
    color: var(--maincolor);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 6rem 7%;
    background: var(--lightbg);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.gallery-item.animate {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 95, 122, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.overlay-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.gallery-category {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--maincolor);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    margin: 0 auto;
    width: 80%;
    margin: 0 auto;
    border-radius: 10px;
}

.lightbox-caption h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: white;
}

.lightbox-caption p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--maincolor);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Video Section */
.video-section {
    margin-top: 5rem;
    text-align: center;
}

.video-section h2 {
    font-size: 2.8rem;
    color: var(--maincolor);
    margin-bottom: 3rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    font-size: 1.8rem;
    margin: 1.5rem 1.5rem 0.5rem;
}

.video-card p {
    font-size: 1.3rem;
    color: #666;
    margin: 0 1.5rem 1.5rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-video:hover {
    transform: scale(1.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Testimonials */
.gallery-testimonials {
    margin-top: 5rem;
    text-align: center;
}

.gallery-testimonials h2 {
    font-size: 2.8rem;
    color: var(--maincolor);
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content i {
    font-size: 2.5rem;
    color: var(--maincolor);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--textcolor);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    font-size: 1.2rem;
    color: #888;
}

/* Gallery CTA */
.gallery-cta {
    margin-top: 5rem;
    background: linear-gradient(135deg, #1a5f7a 0%, #2a8b9e 100%);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
}

.gallery-cta .cta-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
}

.gallery-cta .cta-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-primary {
    background: white;
    color: var(--maincolor);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--maincolor);
    transform: translateY(-2px);
}

/* Footer */
.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondcolor);
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-hero-content h1 {
        font-size: 3rem;
    }
    
    .gallery-hero-content p {
        font-size: 1.4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 70px;
    }
    
    .gallery-hero {
        padding: 4rem 5%;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats .stat-label {
        font-size: 1.2rem;
    }
    
    .gallery-filters {
        padding: 2rem 5%;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .gallery-grid-section {
        padding: 4rem 5%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-section h2,
    .gallery-testimonials h2,
    .gallery-cta .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .gallery-cta {
        padding: 3rem 2rem;
    }
}

@media (max-width: 576px) {
    .filters-container {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-primary,
    .cta-secondary {
        text-align: center;
    }
    
    .video-modal-content {
        width: 95%;
    }
}

/* Loading animation for images */
.gallery-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image img.loaded {
    opacity: 1;
}

/* Image optimization */
.gallery-image img {
    background: #f0f0f0;
}

/* Print styles */
@media print {
    .gallery-hero,
    .gallery-filters,
    .video-section,
    .gallery-cta,
    .main-footer,
    .lightbox,
    .video-modal {
        display: none;
    }
    
    .gallery-grid {
        display: block;
    }
    
    .gallery-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}