/* Custom CSS to elevate beyond utility classes */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #fcfdff;
    background-size: 24px 24px;
    overflow-x: clip;
}

/* Typography Tweaks */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(135deg);
        opacity: 1;
    }

    15% {
        opacity: 1;
    }

    30% {
        transform: translateX(-600px) translateY(600px) rotate(135deg);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.shooting-star {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
    filter: drop-shadow(0 0 10px rgba(42, 118, 255, 0.5));
    animation: shooting 4s linear infinite;
    opacity: 0;
}

/* Hamburger Animation */
.hamburger-icon {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #1e293b;
    /* slate-800 */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Menu Entrance */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.mask-linear-fade {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes slide-up-fade {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up-fade 0.5s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-1500 {
    animation-delay: 1500ms;
}

.delay-3000 {
    animation-delay: 3000ms;
}

/* CTA Section Decorative Animations */
@keyframes float-rotate {

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

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

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce-gentle {

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

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

@keyframes float-diagonal {

    0%,
    100% {
        transform: translate(0, 0) rotate(-12deg);
    }

    50% {
        transform: translate(10px, -15px) rotate(-8deg);
    }
}

@keyframes scale-pulse {

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

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

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

.animate-float-rotate {
    animation: float-rotate 5s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-bounce-gentle {
    animation: bounce-gentle 4s ease-in-out infinite;
}

.animate-float-diagonal {
    animation: float-diagonal 6s ease-in-out infinite;
}

.animate-scale-pulse {
    animation: scale-pulse 3s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 2s ease-in-out infinite;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

.delay-2000 {
    animation-delay: 2000ms;
}

@keyframes drift {
    0% {
        transform: translateX(-2%) translateY(-2%) rotate(-1deg);
    }

    50% {
        transform: translateX(2%) translateY(2%) rotate(1deg);
    }

    100% {
        transform: translateX(-2%) translateY(-2%) rotate(-1deg);
    }
}

.animate-drift {
    animation: drift 12s ease-in-out infinite;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.reveal {
    opacity: 0;
    animation-fill-mode: forwards;
}

.reveal.active {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Blob Backgrounds */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Custom Selection Color */
::selection {
    background-color: #2a76ff;
    color: white;
}

/* Stroke Text Effect */
.stroke-text {
    -webkit-text-stroke: 3px rgba(42, 118, 255, 0.25);
    color: transparent;
}

/* --- HERO SLIDER ANIMATIONS --- */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

/* === SLIDE 1: Fade + Rise suave === */
.hero-slide[data-index="0"].active .hero-tag {
    animation: fadeRise 1s ease-out forwards;
}

.hero-slide[data-index="0"].active .hero-title {
    animation: fadeRise 1.1s ease-out 0.15s forwards;
    opacity: 0;
}

.hero-slide[data-index="0"].active .hero-desc {
    animation: fadeRise 1.1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-slide[data-index="0"].active .hero-cta {
    animation: fadeRise 1.1s ease-out 0.45s forwards;
    opacity: 0;
}

.hero-slide[data-index="0"].active .hero-visual {
    animation: fadeScale 1.3s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeRise {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes explodeIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
        filter: blur(20px);
    }

    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}


/* === SLIDE 2: Slide lateral suave === */
.hero-slide[data-index="1"].active .hero-tag {
    animation: slideFromLeft 1s ease-out forwards;
}

.hero-slide[data-index="1"].active .hero-title {
    animation: slideFromLeft 1.1s ease-out 0.15s forwards;
    opacity: 0;
}

.hero-slide[data-index="1"].active .hero-desc {
    animation: slideFromLeft 1.1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-slide[data-index="1"].active .hero-cta {
    animation: slideFromLeft 1.1s ease-out 0.45s forwards;
    opacity: 0;
}

.hero-slide[data-index="1"].active .hero-visual {
    animation: slideFromRight 1.2s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === SLIDE 3: Fade suave com leve rotação === */
.hero-slide[data-index="2"].active .hero-tag {
    animation: fadeRotate 1s ease-out forwards;
}

.hero-slide[data-index="2"].active .hero-title {
    animation: fadeRotate 1.1s ease-out 0.15s forwards;
    opacity: 0;
}

.hero-slide[data-index="2"].active .hero-desc {
    animation: fadeRotate 1.1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-slide[data-index="2"].active .hero-cta {
    animation: fadeRotate 1.1s ease-out 0.45s forwards;
    opacity: 0;
}

.hero-slide[data-index="2"].active .hero-visual {
    animation: fadeGlow 1.4s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeRotate {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(-1.5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes fadeGlow {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* === UNDERLINE SVG ANIMATION (cresce da esquerda) === */
.hero-title .underline-svg {
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
}

.hero-slide.active .hero-title .underline-svg {
    animation: growUnderline 1s ease-out 0.8s forwards;
}

@keyframes growUnderline {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.progress-bar {
    transition: width 0.1s linear;
}

/* Navbar Scroll Transition */
.navbar-transparent {
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

.navbar-filled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(226, 232, 240, 0.5);
}

.nav-cta {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}




/* WhatsApp Button Pulse Animation */
.whatsapp-pulse {
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappRing 2s ease-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Gradient text animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    animation: gradient 4s ease infinite;
}

/* Shine Animation */
@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: shine 1.5s infinite;
}

/* Hero Tag Mobile Adjustment */
@media (max-width: 1023px) {
    .hero-tag {
        margin-top: 2rem;
    }
}