/**
 * effects.css — Estilos para os efeitos visuais de amor
 * Scroll reveal, card glow, gradiente animado, shimmer, etc.
 */

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   ANIMATED GRADIENT TEXT
   ======================================== */
.animated-gradient {
    background: linear-gradient(
        270deg,
        #ff4d6d,
        #ff8fa3,
        #f472b6,
        #fb7185,
        #ff4d6d
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease infinite;
    text-shadow: none;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ========================================
   CARD GLOW EFFECT — Mouse-following glow
   ======================================== */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: var(--glow-y, 50%);
    left: var(--glow-x, 50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(
        circle,
        rgba(255, 77, 109, 0.15) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}


/* ========================================
   SHIMMER ON PROGRESS BAR
   ======================================== */
@keyframes shimmer-progress {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* ========================================
   ENHANCED PULSE GLOW — Blobs mais vivos
   ======================================== */
.hero-bg-blur-1 {
    animation: advanced-glow-1 10s ease-in-out infinite;
}

.hero-bg-blur-2 {
    animation: advanced-glow-2 12s ease-in-out infinite;
}

@keyframes advanced-glow-1 {
    0%, 100% {
        opacity: 0.4;
        filter: blur(120px) hue-rotate(0deg);
    }
    33% {
        opacity: 0.7;
        filter: blur(100px) hue-rotate(10deg);
    }
    66% {
        opacity: 0.5;
        filter: blur(140px) hue-rotate(-5deg);
    }
}

@keyframes advanced-glow-2 {
    0%, 100% {
        opacity: 0.35;
        filter: blur(120px) hue-rotate(0deg);
    }
    50% {
        opacity: 0.65;
        filter: blur(100px) hue-rotate(-10deg);
    }
}


/* ========================================
   HERO ENHANCED STYLES
   ======================================== */
.hero h1 {
    animation: hero-entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-tag {
    animation: hero-entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero p {
    animation: hero-entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.hero .flex.gap-4 {
    animation: hero-entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-stats {
    animation: hero-entrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.hero-mockup-wrapper {
    animation: hero-float-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

@keyframes hero-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-float-in {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ========================================
   BUTTON RIPPLE GLOW
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #ff4d6d, #ff8fa3, #f472b6, #ff4d6d);
    background-size: 300% 300%;
    animation: btn-glow 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

@keyframes btn-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ========================================
   PHONE FRAME GLOW — Brilho pulsante
   ======================================== */
.phone-frame {
    animation: phone-glow 4s ease-in-out infinite;
}

@keyframes phone-glow {
    0%, 100% {
        box-shadow:
            0 30px 60px -15px rgba(0, 0, 0, 0.7),
            0 0 60px rgba(255, 77, 109, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 30px 60px -15px rgba(0, 0, 0, 0.7),
            0 0 100px rgba(255, 77, 109, 0.25),
            0 0 40px rgba(255, 143, 163, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}


/* ========================================
   FLOATING ICONS ENHANCED
   ======================================== */
.floating-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.15) translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 77, 109, 0.25) !important;
}


/* ========================================
   STEP NUMBER PULSE
   ======================================== */
.step-number {
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 77, 109, 0.15);
    animation: step-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes step-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}


/* ========================================
   CTA WRAPPER ENHANCED
   ======================================== */
.cta-wrapper {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s ease;
}

.cta-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(255, 77, 109, 0.15);
}


/* ========================================
   SECTION DIVIDERS — Separadores luminosos
   ======================================== */
.section + .section::before {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto;
    opacity: 0.3;
}


/* ========================================
   FEATURE CARD BORDER GLOW ON HOVER
   ======================================== */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(255, 77, 109, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 77, 109, 0.08);
}


/* ========================================
   TESTIMONIAL CARD BREATHING
   ======================================== */
.testimonial-card {
    animation: card-breathe 6s ease-in-out infinite;
}

@keyframes card-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0);
    }
    50% {
        box-shadow: 0 0 30px -5px rgba(255, 77, 109, 0.08);
    }
}


/* ========================================
   TEXT GLOW on section taglines
   ======================================== */
.section-tagline {
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.3);
}


/* ========================================
   GLOBAL NOISE TEXTURE — Textura sutil
   ======================================== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

body > *:not(#hearts-canvas):not(#love-progress):not(.cursor-sparkle):not(.click-heart) {
    position: relative;
    z-index: 1;
}


/* ========================================
   SMOOTH SCROLL BAR STYLE
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b85, #ffaab8);
}


/* ========================================
   REDUCED MOTION — Acessibilidade
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    #hearts-canvas {
        display: none;
    }
}
