/* Gallery Page Specific Styles */

/* Gallery Filters */
.gallery-filters {
    padding: 60px 0 40px;
    background: #f8f9ff;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.1);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 60px 0 100px;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.gallery-stats .stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-stats .stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-stats .stat i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.gallery-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.gallery-stats .stat-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

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

.gallery-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-tags span {
    background: var(--secondary-color);
}

/* Load More Button */
.load-more {
    text-align: center;
}

.load-more-btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
}

/* Project Categories */
.project-categories {
    padding: 100px 0;
    background: #f8f9ff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(10deg);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1rem;
}

.project-count {
    display: inline-block;
    background: #f0f2ff;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-card:hover .project-count {
    background: var(--primary-color);
    color: var(--white);
}

/* Gallery Testimonial */
.gallery-testimonial {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(13, 21, 56, 0.9)), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-content .quote-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
}

.client-info {
    text-align: center;
}

.client-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.client-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.project-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link a:hover {
    color: var(--white);
    gap: 15px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    width: 90%;
    display: flex;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: lightboxSlideIn 0.5s ease;
}

@keyframes lightboxSlideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lightbox-content img {
    width: 60%;
    height: 70vh;
    object-fit: cover;
}

.lightbox-info {
    flex: 1;
    padding: 40px;
    color: var(--white);
}

.lightbox-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.lightbox-info p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lightbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.lightbox-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.lightbox-meta i {
    color: var(--secondary-color);
}

/* Gallery CTA */
.gallery-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffb74d 100%);
    color: var(--white);
    text-align: center;
}

.gallery-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.gallery-cta p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.gallery-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-cta .cta-button {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.gallery-cta .cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.gallery-cta .cta-button.primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-cta .cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.gallery-cta .cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer Gallery */
.footer-gallery-info {
    margin-top: 20px;
}

.footer-gallery-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #ccc;
}

.footer-gallery-info i {
    color: var(--secondary-color);
}

.footer-gallery h4 {
    margin-bottom: 20px;
}

.footer-gallery ul {
    list-style: none;
}

.footer-gallery li {
    margin-bottom: 12px;
}

.footer-gallery a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-gallery a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-gallery a::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

.footer-gallery a:hover::before {
    opacity: 1;
}

.follow-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .lightbox-content {
        flex-direction: column;
        width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-content img {
        width: 100%;
        height: 50vh;
    }
    
    .lightbox-info {
        padding: 30px;
    }
    
    .gallery-stats {
        gap: 20px;
    }
    
    .gallery-stats .stat {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-cta h2 {
        font-size: 2.5rem;
    }
    
    .gallery-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-cta .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: 20px;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-cta h2 {
        font-size: 2rem;
    }
    
    .gallery-cta p {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 1.2rem;
    }
    
    .lightbox-info {
        padding: 20px;
    }
    
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
}

/* Animation for gallery items */
.gallery-item {
    animation: galleryItemFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes galleryItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered 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-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }