/* ================================================
   Saber em Debate - Custom Styles
   ================================================ */

/* Hide elements with x-cloak until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* ================================================
   Animations
   ================================================ */

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left Animation */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right Animation */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation delays */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
    transition-delay: 0.8s;
}

/* ================================================
   Hero Section Styles
   ================================================ */

.hero-gradient {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 25%, #6d28d9 50%, #2563eb 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: #10b981;
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-10px, 10px) scale(0.95);
    }
}

/* Hero Floating Icons */
.floating-icon {
    animation: float-icon 6s ease-in-out infinite;
    z-index: 1;
}

.float-delay-1 {
    animation-delay: 0s;
}

.float-delay-2 {
    animation-delay: 1.5s;
}

.float-delay-3 {
    animation-delay: 3s;
}

.float-delay-4 {
    animation-delay: 4.5s;
}

.float-delay-5 {
    animation-delay: 2.2s;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ================================================
   Play Button Pulse Animation
   ================================================ */

.play-button-pulse {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ================================================
   Glassmorphism Effect
   ================================================ */

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================================
   Card Hover Effects
   ================================================ */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ================================================
   Card Border Accent
   ================================================ */

.card-subtle-border {
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

/* ================================================
   Equal Card Heights
   ================================================ */

.card-equal-height {
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .card-equal-height {
        min-height: auto;
    }
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}


/* ================================================
   Section Badge Pill
   ================================================ */

.section-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #f8f4ff;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.25);
}

.section-badge-pill i {
    color: inherit;
    font-size: 0.95rem;
}

/* ================================================
   WhatsApp Floating Button
   ================================================ */

.whatsapp-fab {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #25d366, #1ebe5b);
    color: #fff;
    padding: 0.85rem 1.2rem 0.85rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 45;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab i {
    font-size: 1.25rem;
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 35px rgba(37, 211, 102, 0.45);
}

@media (max-width: 640px) {
    .whatsapp-fab span {
        display: none;
    }

    .whatsapp-fab {
        padding: 0.85rem;
        border-radius: 50%;
    }
}


.footer-social {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}


/* ================================================
   Gradient Text
   ================================================ */

.gradient-text {
    background: linear-gradient(135deg, #4c1d95, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   Image Blob/Brush Effect
   ================================================ */

.blob-shape {
    position: relative;
}

.blob-shape::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #4c1d95, #2563eb);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* ================================================
   Smooth Scroll
   ================================================ */

html {
    scroll-behavior: smooth;
}

/* ================================================
   Custom Scrollbar
   ================================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4c1d95, #2563eb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5b21b6, #1d4ed8);
}

/* ================================================
   Form Styles
   ================================================ */

.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* ================================================
   Highlight Bar Styles
   ================================================ */

.highlights-bar {
    position: relative;
    margin-top: -60px;
    z-index: 20;
}

/* ================================================
   Video Thumbnail Overlay
   ================================================ */

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.3), rgba(37, 99, 235, 0.3));
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover::before {
    opacity: 0.5;
}

.testimonials-cta {
    background: linear-gradient(135deg, #4c1d95, #2563eb) !important;
    color: #fff !important;
}

.testimonials-cta:hover {
    background: linear-gradient(135deg, #3b0f83, #1d4ed8) !important;
}

.hero-info-card {
    animation: float-buddy 5s ease-in-out infinite;
}

@keyframes float-buddy {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ================================================
   FAQ Accordion Styles
   ================================================ */

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

/* ================================================
   Video Shorts Testimonials - Premium Design
   ================================================ */

/* Sparkle Animation */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: sparkle-animation 3s ease-in-out infinite;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
    animation-delay: 2s;
}

@keyframes sparkle-animation {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Testimonial Card */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* Play Button Animation */
.testimonial-play-btn {
    position: relative;
}

.testimonial-play-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    animation: play-pulse 2s ease-out infinite;
}

.testimonial-play-btn::after {
    content: '';
    position: absolute;
    inset: -16px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: play-pulse 2s ease-out infinite 0.3s;
}

@keyframes play-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Navigation Buttons */
.testimonial-nav-btn {
    position: relative;
    overflow: hidden;
}

.testimonial-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-nav-btn:hover::before {
    opacity: 1;
}

/* CTA Button */
.testimonial-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.5);
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.testimonial-cta:hover::before {
    left: 100%;
}

.testimonial-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -10px rgba(139, 92, 246, 0.6);
}

/* Limit video height on larger screens */
@media (min-width: 1024px) {
    .testimonial-card .aspect-\[9\/16\] {
        max-height: 480px;
    }
}

/* Legacy Testimonials CTA (fallback) */
.testimonials-cta {
    background: linear-gradient(135deg, #4c1d95 0%, #2563eb 100%);
}

.testimonials-cta:hover {
    background: linear-gradient(135deg, #3b0f83 0%, #1d4ed8 100%);
}

/* ================================================
   Section Dividers
   ================================================ */

.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* ================================================
   Responsive Adjustments
   ================================================ */

@media (max-width: 768px) {
    #inicio {
        overflow-x: hidden;
    }

    #inicio .max-w-7xl {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        box-sizing: border-box;
    }

    #inicio .flex-1.text-center {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }

    #inicio h1 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }

    .hero-blob {
        opacity: 0.2;
    }

    .hero-blob-1 {
        width: 200px;
        height: 200px;
    }

    .hero-blob-2 {
        width: 150px;
        height: 150px;
    }

    .hero-blob-3 {
        width: 120px;
        height: 120px;
    }

    .highlights-bar {
        margin-top: -30px;
    }

    /* Fix historia section on mobile */
    #historia {
        overflow-x: hidden;
    }

    #historia > .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #historia .grid {
        gap: 2rem;
        width: 100%;
    }

    #historia .grid > * {
        min-width: 0;
    }

    #historia .fade-in-right {
        width: 100%;
    }

    #historia .fade-in-right > .sticky {
        position: relative;
        width: 100%;
    }

    #historia .fade-in-right .rounded-2xl {
        width: 100%;
    }
}

/* Global mobile overflow fix */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
}