/* Gallery Page Specific Styles */

/* Gallery Hero */
.gallery-hero {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
}

.gallery-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    z-index: -1;
}

.gallery-hero .hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

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

.gallery-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background-color: white;
    color: #64748b;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.filter-btn.active {
    background-color: #f97316;
    border-color: #f97316;
    color: white;
}

/* Gallery Main */
.gallery-main {
    padding: 80px 0;
    background-color: white;
}

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

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-info {
    margin-top: auto;
}

.gallery-info h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.gallery-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(249, 115, 22, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

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

.gallery-btn:hover {
    background-color: #f97316;
    color: white;
    transform: scale(1.1);
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
}

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

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: #cbd5e1;
}

/* Gallery Modal */
.gallery-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.gallery-modal-content {
    padding: 0;
}

.gallery-detail {
    padding: 2rem;
}

.gallery-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.gallery-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.gallery-detail h2 {
    color: #1e293b;
    margin: 0;
}

.gallery-detail-content {
    display: grid;
    gap: 2rem;
}

.detail-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.detail-section p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #f97316;
}

.spec-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.spec-value {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        min-width: unset;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-modal .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .gallery-detail {
        padding: 1.5rem;
    }
    
    .gallery-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .project-specs {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 100px 0 60px;
    }
    
    .gallery-hero .hero-title {
        font-size: 2rem;
    }
    
    .gallery-main {
        padding: 60px 0;
    }
    
    .gallery-stats {
        padding: 60px 0;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}