/* 
 * Mechanic Website - Gallery Page Styles
 * Additional styles specific to the gallery page
 */

/* Gallery Filter Section */
.gallery-filter {
    padding: 2rem 0;
    background-color: var(--light-color);
    border-bottom: 1px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(26, 62, 94, 0.1);
    transform: translateY(-3px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Gallery Main Section */
.gallery-main {
    padding: 4rem 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 62, 94, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
}

.gallery-title {
    color: #fff;
    margin-bottom: 1rem;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.gallery-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transform: scale(0);
    transition: all 0.4s ease;
}

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

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

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

.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-description {
    transform: translateY(0);
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1);
}

/* Lightbox Styles */
.gallery-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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border: 5px solid #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(26, 62, 94, 0.8);
    border-radius: 4px;
    font-weight: 500;
}

/* Workshop Section */
.workshop-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    background-image: linear-gradient(135deg, rgba(242, 242, 242, 0.8) 25%, rgba(232, 232, 232, 0.8) 25%, rgba(232, 232, 232, 0.8) 50%, rgba(242, 242, 242, 0.8) 50%, rgba(242, 242, 242, 0.8) 75%, rgba(232, 232, 232, 0.8) 75%, rgba(232, 232, 232, 0.8) 100%);
    background-size: 40px 40px;
}

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

.workshop-content h2 {
    margin-bottom: 1.5rem;
}

.workshop-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.workshop-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.workshop-feature {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    border-top: 3px solid var(--primary-color);
}

.workshop-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.workshop-feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Customer Showcase Section */
.customer-showcase {
    padding: 5rem 0;
    background-color: #fff;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.showcase-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-item {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.showcase-item h3 {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.3rem;
}

.showcase-content {
    display: flex;
    flex-wrap: wrap;
}

.showcase-image {
    flex: 1 1 300px;
    height: 250px;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-text {
    flex: 1 1 300px;
    padding: 2rem;
}

.showcase-text p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.showcase-text cite {
    font-style: normal;
    color: var(--primary-color);
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .workshop-feature {
        flex: 1 1 100%;
    }
    
    .showcase-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .gallery-zoom {
        width: 40px;
        height: 40px;
    }
}