/* Gallery Page Styles */
.page-banner {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.85) 0%,
        rgba(230, 126, 34, 0.8) 100%),
        url('../images/banner-bg.jpeg') center/cover;
    color: white;
    text-align: center;
    padding: 120px 0 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Add animated overlay pattern */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 25%, 
            transparent 25%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.1) 50%, 
            rgba(255, 255, 255, 0.1) 75%, 
            transparent 75%, 
            transparent);
    background-size: 100px 100px;
    opacity: 0.1;
    animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.page-banner h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.page-banner h1::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background: #e67e22;
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-banner p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Add floating shapes in the background */
.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

/* Enhanced Gallery Styles */
.gallery-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.gallery-categories {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(249, 249, 249, 0.95);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.category-tab {
    padding: 0.8rem 1.8rem;
    border: none;
    background: #fff;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(230, 126, 34, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.category-tab:hover::before {
    width: 100%;
}

.category-tab:hover,
.category-tab.active {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.category-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    display: none;
    border-left: 5px solid #e67e22;
}

.category-description.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

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

.category-description h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.category-description h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #e67e22;
    border-radius: 2px;
}

.category-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Enhanced Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.4s ease;
    aspect-ratio: 1/1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    background-color: #f5f5f5;
}

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

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 40%;
}

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

.gallery-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery-content p {
    font-size: 1rem;
    opacity: 0;
    line-height: 1.5;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-content h3,
.gallery-item:hover .gallery-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #e67e22;
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
    opacity: 0.9;
}

/* Media Queries */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 0;
        overflow-x: hidden;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        overflow-x: hidden;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        position: static;
        padding: 15px 0;
        margin-bottom: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Fix for sticky category tabs on mobile */
    .category-tabs.sticky {
        position: static;
        box-shadow: none;
        padding: 15px 0;
        animation: none;
        top: auto;
        z-index: 10;
    }
    
    /* Add padding to prevent content overlap */
    .gallery-categories {
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    /* Fix for category description */
    .category-description {
        padding: 15px;
        margin-bottom: 30px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-description h3 {
        font-size: 18px;
    }
    
    .category-description p {
        font-size: 14px;
    }
    
    /* Add space below description */
    .category-description.active {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .gallery-item {
        width: 100%;
        margin: 0;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        width: 100%;
    }
    
    .category-tab {
        flex-shrink: 0;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}

.category-descriptions {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Gallery Loader */
.gallery-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gallery-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e67e22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.gallery-loader p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category Tab Sticky Styles */
.category-tabs.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    border-radius: 0;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
} 