/* Gallery Immersive Styles - Phase 1: Visual Foundation */

/* ==================== HERO SECTION ==================== */

.gallery-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
}

.gallery-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.gallery-hero-bg.active {
    opacity: 0.4;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.gallery-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #000000;
    padding: 2rem;
    max-width: 900px;
}

.gallery-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000000;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.gallery-hero-caption {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #000000;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
    font-style: italic;
}

.gallery-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.gallery-hero-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-hero-cta svg {
    transition: transform 0.3s ease;
}

.gallery-hero-cta:hover svg {
    transform: translateY(3px);
}

/* Scroll indicator */
.gallery-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== DARK MODE ==================== */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #0F1419;
    color: #E8E8E8;
}

body.dark-mode .gallery-hero {
    background: linear-gradient(135deg, #0A1F0F 0%, #0A1A24 100%);
}

body.dark-mode .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #E8E8E8;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: rgba(26, 95, 60, 0.3);
    border-color: #1A5F3C;
    color: white;
}

body.dark-mode .gallery-item {
    background: #1A1F26;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    top: 6rem;
    right: 2rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(15deg);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.5s ease;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==================== SCROLL ANIMATIONS ==================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ==================== ENHANCED MASONRY ANIMATIONS ==================== */

.gallery-item {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Removed breathe animation - no dropping effects */
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
}

/* ==================== ARTISTIC FILTERS ==================== */

.filter-vintage img {
    filter: sepia(0.5) contrast(1.2) brightness(0.95);
}

.filter-dramatic img {
    filter: contrast(1.3) saturate(0.8) brightness(0.9);
}

.filter-dreamy img {
    filter: brightness(1.1) saturate(0.9) blur(0.5px);
}

.filter-monochrome img {
    filter: grayscale(1) contrast(1.1);
}

.themed-memory {
    border: 3px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.themed-nature {
    border: 3px solid rgba(27, 94, 32, 0.3);
    box-shadow: 0 0 20px rgba(27, 94, 32, 0.2);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 70vh;
    }

    .gallery-hero-bg {
        background-attachment: scroll;
    }

    .dark-mode-toggle {
        top: 5rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .gallery-hero-title {
        font-size: 2.5rem;
    }

    .gallery-hero-caption {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero-content {
        padding: 1.5rem;
    }

    .gallery-hero-cta {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}