/* Gallery Page Specific Styles */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--clean-white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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="gallery-stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23gallery-stars)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Active Navigation Item */
.nav-menu li a.active {
    color: var(--accent-orange);
}

/* Gallery Filters */
.gallery-filters {
    padding: 3rem 0;
    background: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: var(--clean-white);
    color: var(--dark-charcoal);
    border: 2px solid var(--medium-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: var(--accent-cyan);
    color: var(--clean-white);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.filter-btn.active {
    background: var(--accent-orange);
    color: var(--clean-white);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--clean-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--clean-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--medium-gray);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-placeholder {
    padding: 2.5rem;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--clean-white);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.1) 100%);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.gallery-placeholder h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.gallery-placeholder p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.item-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--clean-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Gallery Image Container Styles */
.gallery-image-container {
    position: relative;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image-container:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-image-container:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 54, 93, 0.95));
    color: var(--clean-white);
    padding: 30px 20px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-image-container:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--clean-white);
    font-weight: bold;
}

.gallery-overlay p {
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-overlay .item-tags {
    justify-content: flex-start;
    margin-top: 10px;
}

/* Gallery CTA Section */
.gallery-cta {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.gallery-cta h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.gallery-cta p {
    color: var(--dark-charcoal);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 54, 93, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--clean-white);
    max-width: 800px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--clean-white);
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

#modalImage {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 2rem;
}

.modal-info h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.modal-info p {
    color: var(--dark-charcoal);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-placeholder {
        padding: 2rem;
        min-height: 250px;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
    
    .gallery-placeholder h3 {
        font-size: 1.2rem;
    }
    
    .gallery-placeholder p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .modal-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 5rem 1rem 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .gallery-filters {
        padding: 2rem 0;
    }
    
    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .gallery-placeholder {
        padding: 1.5rem;
        min-height: 220px;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .gallery-placeholder h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .gallery-placeholder p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-info {
        padding: 1rem;
    }
}

/* Loading and Transition States */
.gallery-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gallery-item.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.gallery-item:hover .placeholder-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.gallery-item:hover .tag {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Filter Animation */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
} 