/* ============================================
   PREMIUM GALLERY PAGE STYLES
   ============================================ */

/* Animated Background */
.gallery-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(248, 253, 255, 0.98) 0%,
        rgba(240, 247, 255, 0.95) 100%);
}

.gallery-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: galleryFloat 30s infinite linear;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.circle-1 {
    width: 350px;
    height: 350px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: 8%;
    animation-delay: 15s;
}

.gallery-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: galleryParticle 20s infinite linear;
}

.particle-1 { top: 20%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 40%; left: 85%; animation-delay: 5s; }
.particle-3 { top: 70%; left: 25%; animation-delay: 10s; }
.particle-4 { top: 85%; left: 75%; animation-delay: 15s; }

/* Gallery Hero */
.gallery-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, 
        rgba(26, 35, 126, 0.9) 0%,
        rgba(10, 15, 43, 0.9) 100%),
        url('../gallery/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.hero-text p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.hero-stats .stat {
    text-align: center;
    animation: fadeInUp 0.8s ease-out both;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.2s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.4s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.6s; }

.hero-stats .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Roboto Slab', serif;
}

.hero-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.scroll-animation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-animation .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.scroll-animation .wheel {
    width: 4px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Gallery Filter */
.gallery-filter {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fdff 0%, #f0f7ff 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Gallery Main */
.gallery-main {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 300px;
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(26, 35, 126, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.image-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.load-more-container {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-5px);
    gap: 20px;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Virtual Tour */
.virtual-tour {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
}

.tour-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.tour-viewer {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.tour-loader {
    text-align: center;
    margin-bottom: 40px;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: loaderSpin 1s linear infinite;
}

.tour-loader p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.tour-controls {
    display: flex;
    gap: 20px;
}

.tour-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.tour-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.tour-highlights {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.tour-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--heading-color);
    font-weight: 700;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--heading-color);
    font-weight: 600;
}

.highlight-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Photo of the Month */
.photo-month {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
}

.featured-photo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.photo-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.photo-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9), transparent);
    color: white;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.photo-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.photo-description {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.photo-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.photo-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.photo-meta i {
    color: var(--accent);
}

.photo-contest {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo-contest h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.photo-contest p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.contest-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.contest-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    gap: 20px;
}

/* Light Gallery Modal */
.lg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lg-modal.show {
    display: block;
    opacity: 1;
}

.lg-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.lg-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lg-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lg-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.lg-modal-body img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes galleryFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 40px) rotate(240deg);
    }
}

@keyframes galleryParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0.8;
    }
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .tour-container,
    .featured-photo {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tour-viewer {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .gallery-hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .hero-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .hero-stats .stat {
        width: 200px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .tour-viewer {
        height: 300px;
    }
    
    .photo-container img {
        height: 400px;
    }
    
    .photo-info {
        padding: 20px;
    }
    
    .photo-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 80px 0 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .tour-controls {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .tour-btn {
        justify-content: center;
    }
    
    .photo-meta {
        flex-direction: column;
        gap: 10px;
    }
}