/* ============================================
   UNIVERSO MATIVERSO - REDESIGN
   Premium Glassmorphism & Neon Glow UI
   ============================================ */

/* Section Background & Container */
#metodo.what-is {
    position: relative;
    background: radial-gradient(circle at 50% 50%, #0A1A3C 0%, #000B1D 100%);
    overflow: hidden;
    padding: 6rem 0;
    z-index: 1;
}

/* Animated Background Elements */
#metodo.what-is::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 92, 45, 0.03) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

#metodo.what-is::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
    opacity: 0.5;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Section Header Enhancements */
#metodo .section-tag {
    background: rgba(255, 92, 45, 0.15);
    border: 1px solid rgba(255, 92, 45, 0.3);
    box-shadow: 0 0 15px rgba(255, 92, 45, 0.1);
    backdrop-filter: blur(5px);
}

#metodo .section-title {
    text-shadow: 0 0 30px rgba(31, 191, 255, 0.3);
    position: relative;
    display: inline-block;
}

/* Feature Cards Grid */
#metodo .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
    perspective: 1000px;
}

/* Glassmorphism Card Design */
#metodo .feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Card Hover Effects */
#metodo .feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 92, 45, 0.5);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 92, 45, 0.15),
        inset 0 0 20px rgba(255, 92, 45, 0.05);
}

/* Glow Effect on Hover */
#metodo .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 92, 45, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

#metodo .feature-card:hover::before {
    opacity: 1;
}

/* Icon Styling */
#metodo .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(10, 26, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-orange);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#metodo .feature-card:hover .icon-wrapper {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: rotateY(180deg);
    box-shadow: 0 0 30px rgba(255, 92, 45, 0.5);
}

#metodo .feature-card:hover .icon-wrapper i {
    transform: rotateY(-180deg);
}

#metodo .feature-card i {
    transition: transform 0.4s ease;
}

/* Text Styling */
#metodo .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

#metodo .feature-card:hover h3 {
    color: var(--primary-orange);
}

#metodo .feature-card p {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#metodo .feature-card:hover p {
    opacity: 1;
}

/* Animation Overrides for this Section */
#metodo .feature-card.aos-element {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#metodo .feature-card.aos-element.aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delays for Desktop */
#metodo .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

#metodo .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

#metodo .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

#metodo .feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* ============================================
   MOBILE OPTIMIZATIONS - PREMIUM EXPERIENCE
   ============================================ */
@media (max-width: 768px) {
    #metodo.what-is {
        padding: 4rem 0;
        overflow: hidden;
    }

    #metodo .features-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 3rem;
        padding: 0 1.5rem;
    }

    /* ✅ 1. ESTADO INICIAL - CARDS INVISÍVEIS */
    #metodo .feature-card {
        padding: 2.5rem 1.8rem;
        margin-bottom: 28px;
        /* Espaçamento aumentado */
        min-height: 280px;
        /* Altura mínima consistente */
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
        border-radius: 20px;

        /* Estado inicial - invisível */
        opacity: 0;
        transform: translateY(40px);
        background: rgba(10, 26, 60, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.03);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

        /* Transição suave */
        transition: all 0.5s ease-out;
        will-change: transform, opacity;
    }

    /* ✅ 2. ANIMAÇÃO DE ENTRADA (SCROLL) */
    #metodo .feature-card.card-visible {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(10, 26, 60, 0.7));
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    /* ✅ 3. EFEITO CASCATA - Delays sequenciais */
    #metodo .feature-card:nth-child(1).card-visible {
        transition-delay: 0ms;
    }

    #metodo .feature-card:nth-child(2).card-visible {
        transition-delay: 120ms;
    }

    #metodo .feature-card:nth-child(3).card-visible {
        transition-delay: 240ms;
    }

    #metodo .feature-card:nth-child(4).card-visible {
        transition-delay: 360ms;
    }

    /* ✅ 4. PARALLAX SUTIL NO FUNDO DO CARD */
    #metodo .feature-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 92, 45, 0.08), transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 0;
        pointer-events: none;
    }

    #metodo .feature-card.card-centered::after {
        opacity: 1;
    }

    /* ✅ 5. CARD CENTRALIZADO NO VIEWPORT - DESTAQUE */
    #metodo .feature-card.card-centered {
        transform: translateY(0) scale(1.03);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(10, 26, 60, 0.85));
        border-color: rgba(255, 92, 45, 0.6);
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(255, 92, 45, 0.3),
            inset 0 0 20px rgba(255, 92, 45, 0.05);
    }

    /* ✅ 6. ÍCONE - Estado padrão */
    #metodo .icon-wrapper {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: 1.2rem;
        background: rgba(10, 26, 60, 0.8);
        color: rgba(255, 92, 45, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: none !important;
        transition: all 0.5s ease;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    /* ✅ 7. ÍCONE - Card visível */
    #metodo .feature-card.card-visible .icon-wrapper {
        color: var(--primary-orange);
        border-color: rgba(255, 92, 45, 0.3);
    }

    /* ✅ 8. ÍCONE - Card centralizado (DESTAQUE) */
    #metodo .feature-card.card-centered .icon-wrapper {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
        box-shadow:
            0 0 25px rgba(255, 92, 45, 0.5),
            0 8px 20px rgba(0, 0, 0, 0.3);
        color: white;
        animation: iconGlow 2s ease-in-out infinite;
    }

    @keyframes iconGlow {

        0%,
        100% {
            box-shadow:
                0 0 20px rgba(255, 92, 45, 0.4),
                0 8px 20px rgba(0, 0, 0, 0.3);
        }

        50% {
            box-shadow:
                0 0 30px rgba(255, 92, 45, 0.6),
                0 10px 25px rgba(0, 0, 0, 0.4);
        }
    }

    /* ✅ 9. TIPOGRAFIA - Títulos */
    #metodo .feature-card h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: white;
        -webkit-font-smoothing: antialiased;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    #metodo .feature-card.card-centered h3 {
        color: var(--primary-orange);
        text-shadow: 0 0 15px rgba(255, 92, 45, 0.4);
    }

    /* ✅ 10. TIPOGRAFIA - Descrições */
    #metodo .feature-card p {
        font-size: 1.05rem;
        line-height: 1.6;
        color: #FFFFFF;
        -webkit-font-smoothing: antialiased;
        opacity: 1;
        font-weight: 400;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    /* ✅ 11. MICROINTERAÇÃO AO TOQUE */
    #metodo .feature-card:active {
        transform: translateY(0) scale(0.97);
        transition: transform 0.12s ease-out;
    }

    #metodo .feature-card.card-centered:active {
        transform: translateY(0) scale(1.00);
    }

    /* ✅ 12. REMOVER DELAYS PADRÃO NO MOBILE */
    #metodo .feature-card:nth-child(1),
    #metodo .feature-card:nth-child(2),
    #metodo .feature-card:nth-child(3),
    #metodo .feature-card:nth-child(4) {
        transition-delay: 0s;
    }
}