/* Gallery Page Styles */
.gallery-page {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.gallery-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gallery-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23007bff" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23gallery-pattern)"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

.section-title {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-title__tagline-box {
    margin-bottom: 15px;
}

.section-title__tagline {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.section-title__title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title__text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Folder Styles */
.gallery-folder {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.gallery-folder__img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-folder__img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(255, 107, 53, 0.8));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-folder:hover .gallery-folder__img::before {
    opacity: 1;
}

.gallery-folder__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-folder:hover .gallery-folder__img img {
    transform: scale(1.1);
}

.gallery-folder:hover .gallery-folder__img {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.gallery-folder__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 25px;
    z-index: 2;
    transition: all 0.4s ease;
}

.gallery-folder__content {
    text-align: center;
    color: white;
}

.gallery-folder__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.gallery-folder:hover .gallery-folder__icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: scale(1.1);
    animation: none;
}

.gallery-folder__content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.gallery-folder__content p {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
    font-weight: 500;
}

.gallery-folder__date {
    font-size: 12px;
    color: #007bff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-folder__hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-folder:hover .gallery-folder__hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-folder__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-folder__btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.gallery-folder__btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.gallery-folder__btn:hover i {
    transform: scale(1.2);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Gallery Details Page Styles */
.gallery-details {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-details__header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-details__title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.gallery-details__subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.gallery-details__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-details__back-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.9), rgba(255, 107, 53, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__zoom {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-item__zoom {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .gallery-page {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 60px;
    }
    
    .section-title__title {
        font-size: 36px;
    }
    
    .gallery-folder__img {
        height: 300px;
    }
    
    .gallery-details__title {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-page {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 50px;
    }
    
    .section-title__title {
        font-size: 28px;
    }
    
    .section-title__text {
        font-size: 14px;
    }
    
    .gallery-folder__img {
        height: 250px;
    }
    
    .gallery-folder__content h4 {
        font-size: 18px;
    }
    
    .gallery-folder__overlay {
        padding: 30px 20px 20px;
    }
    
    .gallery-folder__icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .gallery-details__title {
        font-size: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .section-title__title {
        font-size: 24px;
    }
    
    .gallery-folder {
        margin-bottom: 30px;
    }
    
    .gallery-folder__img {
        height: 220px;
    }
    
    .gallery-folder__content h4 {
        font-size: 16px;
    }
    
    .gallery-folder__btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .gallery-details__title {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 180px;
    }
}