/* 
   ================================================================
   [SECTION 4: DESIGN COMPONENTS]
   ================================================================
   Special effects like blurry backgrounds (Glassmorphism).
*/

/* The blurry background gradient (The "Hero" section background) */
.hero-bg {
    background:
            radial-gradient(circle at 10% 20%, rgba(244,114,182,0.15), transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(251,207,232,0.2), transparent 45%),
            radial-gradient(circle at 50% 50%, rgba(255,255,255,1), rgba(255,245,250,1));
    background-attachment: fixed;
}

/* Floating blurry circles in the background */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(244,114,182,0.2) 0%, rgba(251,207,232,0.2) 100%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: blob-float 20s infinite alternate ease-in-out;
}

/* Glassmorphism effect (Semi-transparent blurry background) */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 
   ================================================================
   [SECTION 6: LIGHTBOX & GALLERY]
   ================================================================
   Styles for the full-screen image pop-up.
*/

#lightbox {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#lightbox.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Ensure lightbox always hides even if utility CSS isn't present in embedded documents */
#lightbox[aria-hidden="true"] {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

#lightbox:not(.hidden) {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#lightboxImg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}
#lightboxImg.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

/* Makes text have a pink gradient color */
.gradient-text {
    background: linear-gradient(135deg,#db2777,#f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 
   ================================================================
   [SECTION 7: NAVIGATION & FLOATING BAR]
   ================================================================
*/

/* Styles for the bottom floating bar */
.floating-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: none; /* Allows interactions with elements behind the transparent wrapper */
}
.floating-bar.hide {
    transform: translateY(120%) !important;
}
.premium-bar {
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
    pointer-events: auto; /* Re-enables clicks for the buttons */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint layout;
    box-shadow: 
        0 20px 40px -10px rgba(219, 39, 119, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
}
.premium-floating-full {
    display: inline;
}
.premium-floating-short {
    display: none;
}

/* 
   ================================================================
   [SECTION 8: MOBILE OPTIMIZATIONS]
   ================================================================
*/
@media (max-width: 768px) {
    .premium-floating-btn {
        /* zoom-like scaling, avoids squeezing text */
        padding: 0.75rem 1rem !important;
        min-width: 130px !important;
        width: auto !important;
        transform: none !important;
        font-size: 0.9rem !important;
    }

    /* Normal phones (typical Android/iPhone widths): keep full text */
    .premium-floating-full {
        display: inline !important;
    }
    .premium-floating-short {
        display: none !important;
    }

    h1 {
        font-size: clamp(2.5rem, 15vw, 4rem) !important;
        letter-spacing: -0.04em !important;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .premium-bar {
        padding: 0.75rem 1rem !important;
        border-radius: 24px !important;
        margin: 0 auto 10px auto !important;
        width: 92% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        gap: 0.5rem !important;
    }
}

/* Narrow phones and very thin screens */
@media (max-width: 420px) {
    .premium-floating-btn {
        min-width: 100px !important;
        padding: 0.6rem 0.9rem !important;
        transform: none !important;
        font-size: 0.85rem !important;
    }
    .premium-floating-full {
        display: none !important;
    }
    .premium-floating-short {
        display: inline !important;
    }
}

/* TINIEST SCREENS (iPhone SE / very narrow Android) */
@media (max-width: 360px) {
    .premium-floating-btn {
        min-width: 85px !important;
        padding: 0.5rem 0.7rem !important;
    }
}
