/* ========================================
   Gallery Page Premium Redesign
   Matching Homepage Styling & Aesthetics
   ======================================== */

/* Color Palette - Matching Homepage */
:root {
    --gallery-bg: #FAFAFD;
    --pastel-purple: #9b87f5;
    --pastel-pink: #ffc4d6;
    --pastel-mint: #b8f5d3;
    --pastel-yellow: #fff4cc;
    --soft-lavender: #f5f3ff;
    --text-dark: #103741;
    --text-body: #74787c;
    --card-white: #ffffff;
    --glow-purple: rgba(155, 135, 245, 0.3);
}

/* ========================================
   1. HEADER GLASSMORPHISM
   ======================================== */
.sticky-active .header-menu-area {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Book A Visit Button Glow Effect */
.header-button .vs-btn.wave-btn {
    box-shadow: 0 8px 24px var(--glow-purple),
        0 4px 12px rgba(207, 23, 31, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-button .vs-btn.wave-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--glow-purple),
        0 6px 16px rgba(207, 23, 31, 0.2);
}

/* Rounded Icon Buttons */
.header-button .icon-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: rgba(249, 246, 239, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-button .icon-btn:hover {
    background: var(--soft-lavender);
    transform: rotate(15deg) scale(1.1);
}

/* ========================================
   2. GALLERY SECTION BACKGROUND
   ======================================== */
.gallery-section {
    background: linear-gradient(180deg, var(--gallery-bg) 0%, var(--soft-lavender) 100%);
    position: relative;
    padding: 100px 0 120px;
    overflow: visible;
}

/* Floating Doodles - Stars */
.gallery-section::before {
    content: '✨';
    position: absolute;
    top: 80px;
    left: 5%;
    font-size: 48px;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.gallery-section::after {
    content: '⭐';
    position: absolute;
    top: 200px;
    right: 8%;
    font-size: 36px;
    opacity: 0.35;
    animation: float 5s ease-in-out infinite 1s;
    z-index: 1;
}

/* Additional Floating Doodles */
.gallery-section .container::before {
    content: '○';
    position: absolute;
    bottom: 150px;
    left: 10%;
    font-size: 80px;
    color: var(--pastel-mint);
    opacity: 0.2;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.gallery-section .container::after {
    content: '◇';
    position: absolute;
    top: 50%;
    right: 5%;
    font-size: 60px;
    color: var(--pastel-pink);
    opacity: 0.25;
    animation: float 7s ease-in-out infinite 2s;
    z-index: 1;
}

/* ========================================
   3. SECTION TITLE - MATCHING HOMEPAGE
   ======================================== */
.gallery-section .title-area {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

/* "OUR MOMENTS" - Pastel Purple Micro Text */
.gallery-section .sub-title {
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pastel-purple);
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

/* Add sparkle decorations */
.gallery-section .sub-title::before {
    content: '✦';
    position: absolute;
    left: -25px;
    top: -2px;
    font-size: 16px;
    color: var(--pastel-pink);
    animation: twinkle 2s ease-in-out infinite;
}

.gallery-section .sub-title::after {
    content: '✦';
    position: absolute;
    right: -25px;
    top: -2px;
    font-size: 16px;
    color: var(--pastel-mint);
    animation: twinkle 2s ease-in-out infinite 0.5s;
}

/* "Capturing Joyful Memories" - Bold, Clean, Centered */
.gallery-section .sec-title {
    font-family: var(--title-font);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* ========================================
   4. PILL-SHAPED FILTER DROPDOWN
   ======================================== */
.filter-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(249, 246, 239, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--pastel-purple) 0%, var(--pastel-pink) 100%);
    border-image-slice: 1;
    border-radius: 50px;
    padding: 12px 40px 12px 24px;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    min-width: 140px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(155, 135, 245, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239b87f5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.filter-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 135, 245, 0.2);
    border-color: var(--pastel-purple);
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 8px 24px rgba(155, 135, 245, 0.25);
    border-color: var(--pastel-purple);
}

/* Adjustments for multiple filters */
.mr-2 {
    margin-right: 1rem;
}

/* ========================================
   5. GALLERY CARDS - ROUNDED & PREMIUM
   ======================================== */
#dynamic-gallery-container {
    position: relative;
    z-index: 2;
}

.gallery-box {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: var(--card-white);
    box-shadow: 0 12px 36px rgba(16, 55, 65, 0.06);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(155, 135, 245, 0.15),
        0 8px 16px rgba(16, 55, 65, 0.08);
}

.gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 4 / 3;
    height: 250px;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Popup Button with Glassmorphism */
.plus-btn.popup-image,
.gallery-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-purple);
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(155, 135, 245, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.gallery-box:hover .plus-btn.popup-image,
.gallery-box:hover .gallery-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-box:hover .plus-btn.popup-image:hover,
.gallery-box:hover .gallery-btn:hover {
    background: var(--pastel-purple);
    color: white;
    transform: translateY(0) scale(1.15);
    box-shadow: 0 8px 24px rgba(155, 135, 245, 0.35);
}

/* ========================================
   6. ANIMATIONS
   ======================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Staggered fade-in for gallery items */
.gallery-box {
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-box:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-box:nth-child(2) {
    animation-delay: 0.15s;
}

.gallery-box:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-box:nth-child(4) {
    animation-delay: 0.25s;
}

.gallery-box:nth-child(5) {
    animation-delay: 0.3s;
}

.gallery-box:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   7. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .gallery-section .sec-title {
        font-size: 36px;
    }

    .gallery-box {
        border-radius: 20px;
    }

    .gallery-img {
        border-radius: 20px;
        height: 200px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0 80px;
    }

    .gallery-section .sec-title {
        font-size: 36px;
    }

    .gallery-box {
        border-radius: 18px;
    }

    .gallery-img {
        border-radius: 18px;
        height: 180px;
    }

    /* Stack filters on mobile */
    .filter-wrapper {
        margin-bottom: 15px;
        width: 100%;
    }

    .filter-select {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .mr-2 {
        margin-right: 0;
    }

    /* Hide some floating doodles on mobile */
    .gallery-section .container::before,
    .gallery-section .container::after {
        display: none;
    }
}


