/* Gallery Page Specific Styles */

.gallery-hero {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
}

.gallery-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gallery-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-hero .cta-btn.primary {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.gallery-hero .cta-btn.primary:hover {
    background-color: transparent;
    color: #fff;
}

/* Gallery Filter */
.gallery-filter {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

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

.filter-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Gallery Grid */
.gallery-grid-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

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

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item .before-after-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item .before-image,
.gallery-item .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-item .before-image {
    clip: rect(0, 50%, 100%, 0);
}

.gallery-item .after-image {
    clip: rect(0, 100%, 100%, 50%);
}

.gallery-item .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #fff;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.gallery-item .slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #000;
}

.gallery-item .slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
}

.gallery-info {
    padding: 2rem;
}

.gallery-info h3 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.gallery-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Gallery Stats */
.gallery-stats {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Before/After Overlay Labels */
.gallery-item .before-after-container::before,
.gallery-item .before-after-container::after {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item .before-after-container::before {
    content: 'BEFORE';
    left: 1rem;
}

.gallery-item .before-after-container::after {
    content: 'AFTER';
    right: 1rem;
}

.gallery-item:hover .before-after-container::before,
.gallery-item:hover .before-after-container::after {
    opacity: 1;
}

/* Animation for filtering */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item.show {
    animation: fadeInScale 0.5s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero .hero-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item .before-after-container {
        height: 250px;
    }
    
    .gallery-info {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading state */
.gallery-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.gallery-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Lightbox enhancement for gallery */
.gallery-item .before-after-container {
    cursor: zoom-in;
}

.gallery-item .before-after-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Enhanced hover effects */
.gallery-item:hover .gallery-tag {
    background-color: #000;
    color: #fff;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info h3 {
    color: #333;
    transition: color 0.3s ease;
} 