/* ================================================
   LOVEBUG PAGE — Premium Animated Redesign v2.0
   Stunning animations, glassmorphism, and motion
================================================ */

/* ─── Animated Gradient Background for Hero ─── */
.lovebug-hero {
    background: linear-gradient(135deg, #cc3d84 0%, #a02868 25%, #e84393 50%, #cc3d84 75%, #a02868 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 0%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles overlay */
.lovebug-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(3px 3px at 60% 20%, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.15), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 30% 90%, rgba(255,255,255,0.15), transparent);
    animation: particleDrift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0); }
    50%  { transform: translateY(-30px) translateX(20px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ─── Hero Floating Hearts ─── */
.floating-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatHeart 8s ease-in-out infinite;
}

.floating-heart:nth-child(1) { left: 5%; animation-delay: 0s; font-size: 16px; }
.floating-heart:nth-child(2) { left: 15%; animation-delay: 1.5s; font-size: 24px; }
.floating-heart:nth-child(3) { left: 25%; animation-delay: 3s; font-size: 14px; }
.floating-heart:nth-child(4) { left: 40%; animation-delay: 0.8s; font-size: 22px; }
.floating-heart:nth-child(5) { left: 55%; animation-delay: 2.5s; font-size: 18px; }
.floating-heart:nth-child(6) { left: 65%; animation-delay: 4s; font-size: 26px; }
.floating-heart:nth-child(7) { left: 75%; animation-delay: 1s; font-size: 15px; }
.floating-heart:nth-child(8) { left: 85%; animation-delay: 3.5s; font-size: 20px; }
.floating-heart:nth-child(9) { left: 92%; animation-delay: 2s; font-size: 17px; }
.floating-heart:nth-child(10) { left: 48%; animation-delay: 5s; font-size: 28px; }

@keyframes floatHeart {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.6;
        transform: translateX(10px) rotate(15deg) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateX(-20px) rotate(-10deg) scale(1.1);
    }
    90% {
        opacity: 0.1;
        transform: translateX(15px) rotate(20deg) scale(0.8);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
}

/* ─── Hero Content Animations ─── */
.lovebug-hero .lovebug-showcase {
    position: relative;
    z-index: 1;
}

.lovebug-hero .lovebug-brand-logo {
    animation: logoPulse 3s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(204, 61, 132, 0.4);
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(204, 61, 132, 0.4); }
    50%      { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 105, 180, 0.6); }
}

.lovebug-hero .heading-2 {
    background: linear-gradient(135deg, #ffffff, #ffd6e7, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease infinite;
}

@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ─── Enhanced Phone Mockup ─── */
.lovebug-hero .phone-mockup {
    border: 6px solid rgba(255,255,255,0.92);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(204, 61, 132, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
    animation: phoneFloat3D 6s ease-in-out infinite;
}

@keyframes phoneFloat3D {
    0%, 100% { 
        transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(0); 
    }
    50% { 
        transform: perspective(1000px) rotateY(5deg) rotateX(-3deg) translateY(-15px); 
    }
}

.lovebug-hero .phone-mockup:hover {
    animation: none;
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-16px) scale(1.02);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(204, 61, 132, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Phone screen shimmer */
.phone-screen-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
    animation: screenShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 38px;
}

@keyframes screenShimmer {
    0%   { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* ─── Coming Soon Tag ─── */
.lovebug-hero .coming-soon-tag {
    background: rgba(6, 5, 14, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    animation: tagGlow 2s ease-in-out infinite alternate;
}

@keyframes tagGlow {
    0%   { box-shadow: 0 0 10px rgba(255, 105, 180, 0.2); }
    100% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.4); }
}

/* ─── Store Badge Hover ─── */
.lovebug-hero .store-link {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lovebug-hero .store-link:hover {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

/* ─── Waitlist Form Enhancement ─── */
.lovebug-hero .waitlist-input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.lovebug-hero .waitlist-input:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.lovebug-hero .btn-blue {
    background: linear-gradient(135deg, #06050e, #1a1828);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.lovebug-hero .btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255,255,255,0.4);
}

/* ================================================
   WEB APP SECTION — Cinematic Dark Section
================================================ */
.lovebug-web-section {
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 0, 122, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 166, 255, 0.06) 0%, transparent 50%),
                var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.lovebug-web-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Glowing orbs for web section */
.web-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.web-glow-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,0,122,0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: orbFloat1 10s ease-in-out infinite alternate;
}

.web-glow-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0,166,255,0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: orbFloat2 12s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -40px) scale(1.1); }
}

/* Web version tag animation */
.web-tag {
    background: linear-gradient(135deg, #ff007a, #ff4c4c) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(255, 0, 122, 0.4);
    color: white !important;
    position: relative;
    overflow: hidden;
}

.web-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: tagShimmer 3s ease infinite;
}

@keyframes tagShimmer {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* Web section heading */
.web-heading {
    background: linear-gradient(135deg, #ffffff 0%, #ff69b4 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: webHeadingGlow 5s ease infinite;
}

@keyframes webHeadingGlow {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Launch button */
.btn-launch {
    background: linear-gradient(135deg, #ff007a, #ff4c4c) !important;
    color: white !important;
    border: none !important;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-large);
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-launch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-launch:hover::after {
    transform: translateX(100%);
}

.btn-launch:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 16px 40px rgba(255, 0, 122, 0.5);
}

/* Browser mockup */
.browser-mockup {
    background: rgba(40, 40, 45, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    animation: browserFloat 8s ease-in-out infinite;
}

@keyframes browserFloat {
    0%, 100% { 
        transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) translateY(0); 
    }
    50% { 
        transform: perspective(1000px) rotateY(-6deg) rotateX(3deg) translateY(-10px); 
    }
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: none;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.browser-dot:hover {
    transform: scale(1.3);
}

.browser-dot-red { background: #ff5f56; box-shadow: 0 0 8px rgba(255,95,86,0.4); }
.browser-dot-yellow { background: #ffbd2e; box-shadow: 0 0 8px rgba(255,189,46,0.4); }
.browser-dot-green { background: #27c93f; box-shadow: 0 0 8px rgba(39,201,63,0.4); }

/* Browser inner content */
.browser-content {
    background: #03010d;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 60%;
}

.browser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3,1,13,0.95), rgba(204,61,132,0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.browser-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    50%      { transform: scale(1.08); box-shadow: 0 15px 40px rgba(204,61,132,0.4); }
}

.click-to-launch {
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    animation: launchPulse 2s ease-in-out infinite alternate;
}

@keyframes launchPulse {
    0%   { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
    100% { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
}

/* ================================================
   GALLERY SECTION — Premium "Inside Lovebug"
================================================ */
.lovebug-gallery-section {
    background: linear-gradient(180deg, #16141f 0%, #1a1826 50%, #16141f 100%);
    position: relative;
    overflow: hidden;
}

/* Animated aurora background */
.lovebug-gallery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(204, 61, 132, 0.05) 60deg,
        transparent 120deg,
        rgba(0, 166, 255, 0.04) 180deg,
        transparent 240deg,
        rgba(123, 97, 255, 0.04) 300deg,
        transparent 360deg
    );
    animation: auroraRotate 30s linear infinite;
    pointer-events: none;
}

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

/* Section title animation */
.gallery-title {
    position: relative;
    z-index: 1;
}

.gallery-title .heading-2 {
    background: linear-gradient(135deg, #ffffff 0%, #cc3d84 30%, #ffffff 60%, #00a6ff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galleryTitleShimmer 6s ease infinite;
}

@keyframes galleryTitleShimmer {
    0%   { background-position: 0% center; }
    50%  { background-position: 150% center; }
    100% { background-position: 300% center; }
}

/* Gallery enhanced */
.lovebug-gallery-section .curved-img {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

.lovebug-gallery-section .curved-img:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(204, 61, 132, 0.2);
}

/* ================================================
   SCROLL-TRIGGERED ANIMATIONS (Intersection Observer)
================================================ */
.lb-fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-fade-up.lb-visible {
    opacity: 1;
    transform: translateY(0);
}

.lb-fade-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-fade-left.lb-visible {
    opacity: 1;
    transform: translateX(0);
}

.lb-fade-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.lb-fade-right.lb-visible {
    opacity: 1;
    transform: translateX(0);
}

.lb-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lb-scale-in.lb-visible {
    opacity: 1;
    transform: scale(1);
}

.lb-delay-1 { transition-delay: 0.1s !important; }
.lb-delay-2 { transition-delay: 0.25s !important; }
.lb-delay-3 { transition-delay: 0.4s !important; }
.lb-delay-4 { transition-delay: 0.55s !important; }
.lb-delay-5 { transition-delay: 0.7s !important; }

/* ================================================
   RESPONSIVE ADJUSTMENTS
================================================ */
@media (max-width: 1024px) {
    .lovebug-hero .phone-mockup {
        animation: phoneFloat3DMobile 6s ease-in-out infinite;
    }

    @keyframes phoneFloat3DMobile {
        0%, 100% { transform: perspective(1000px) rotateY(0) translateY(0); }
        50%      { transform: perspective(1000px) rotateY(0) translateY(-12px); }
    }

    .browser-mockup {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        animation: none;
    }

    .browser-mockup:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 768px) {
    .lovebug-hero .heading-2 {
        font-size: 36px !important;
    }

    .web-heading {
        font-size: 36px !important;
    }

    .floating-heart:nth-child(n+7) {
        display: none;
    }

    .lovebug-web-section .lovebug-web-showcase {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .lovebug-web-section .lovebug-text-area {
        align-items: center !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lovebug-hero .heading-2 {
        font-size: 28px !important;
    }

    .web-heading {
        font-size: 28px !important;
    }

    .floating-heart:nth-child(n+5) {
        display: none;
    }
}

/* ================================================
   SMOOTH ENTRANCE FOR PAGE LOAD
================================================ */
.lb-page-enter {
    animation: pageEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageEnter {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================================================
   CUSTOM CURSOR TRAIL FOR LOVEBUG (Optional)
================================================ */
.cursor-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    opacity: 0;
    animation: cursorHeartFade 1s ease forwards;
}

@keyframes cursorHeartFade {
    0%   { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.3) translateY(-40px); }
}
