/* Gallery Section Styles */
.gallery-section {
    background-color: var(--dark);
    padding: 100px 0;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat fixed;
    opacity: 0.05;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-title {
    padding-top: 60px;
    color: var(--light);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.divider-line {
    height: 2px;
    width: 60px;
    background: var(--primary);
    display: inline-block;
}

.section-divider i {
    color: var(--primary);
    margin: 0 15px;
    font-size: 18px;
}

.section-subtitle {
    color: #aaa;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #aaa;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    transform: translateY(0);
}

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

.gallery-image {
    position: relative;
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    transition: all 0.3s ease;
}

.overlay-content i:hover {
    background: white;
    color: var(--primary);
    transform: rotate(90deg);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background-color: white;
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.lightbox-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background-color: white;
    color: var(--primary);
    transform: scale(1.1);
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .gallery-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .gallery-filter {
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .close-lightbox {
        top: -35px;
        right: 0;
    }
    
    .lightbox-controls {
        bottom: -50px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
}

/* Animation for gallery items when they appear */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}