/* Estilos avançados e únicos para cada página */

/* Efeitos de partículas animadas */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
    }

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

/* Efeitos de texto 3D */
.hero h2 {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 0 rgba(0, 0, 0, 0.1),
        0 3px 0 rgba(0, 0, 0, 0.1),
        0 4px 0 rgba(0, 0, 0, 0.1),
        0 5px 5px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

/* Cards com efeito de vidro */
.benefit-item {
    backdrop-filter: blur(15px) saturate(200%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradientes únicos para cada página */
.page-beneficios .detailed-benefits {
    background:
        linear-gradient(135deg, #667eea 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, #764ba2 100%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page-missoes .detailed-benefits {
    background:
        linear-gradient(135deg, #4facfe 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, #00f2fe 100%),
        linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.page-recompensas .detailed-benefits {
    background:
        linear-gradient(135deg, #fa709a 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, #fee140 100%),
        linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
}

.page-como-funciona .detailed-benefits {
    background:
        linear-gradient(135deg, #a8edea 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, #fed6e3 100%),
        linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* Animações de hover mais sofisticadas */
.benefit-item:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 0 20px rgba(16, 185, 129, 0.2);
}

/* Efeitos de loading nos botões */
.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.final-cta:hover::after {
    width: 300px;
    height: 300px;
}

.benefit-item h4 {
    animation: textGlow 3s ease-in-out infinite;
}

/* Padrões de fundo únicos */
.category-header {
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px);
    border-radius: 25px;
    pointer-events: none;
}

/* Efeitos de scroll reveal */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

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

.benefits-category-detailed:nth-child(odd) {
    animation: slideInFromLeft 0.8s ease forwards;
}

.benefits-category-detailed:nth-child(even) {
    animation: slideInFromRight 0.8s ease forwards;
}

/* Efeitos de cursor personalizado */
.benefit-item {
    cursor: pointer;
}

.benefit-item:hover {
    cursor: grab;
}

.benefit-item:active {
    cursor: grabbing;
}

/* Micro-interações */
.category-icon {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.category-header:hover .category-icon {
    transform: scale(1.2) rotate(360deg);
}

/* Efeitos de borda animada */
.mission-card {
    position: relative;
}

.mission-card::before {
    background: linear-gradient(90deg,
            #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #ff6b6b);
    background-size: 400% 100%;
    animation: borderFlow 3s ease infinite;
}

@keyframes borderFlow {

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

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

/* Efeitos de sombra dinâmica */
.benefit-item {
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Responsividade aprimorada */
@media (max-width: 1024px) {
    .benefit-item:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

/* Estilos específicos para página inicial */
.problem-solution {
    padding: 60px 0;
    background: linear-gradient(45deg, #E8F5E8, #F1F8E9, #E0F2F1);
    position: relative;
}

.problem-solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.problem,
.solution {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.problem::before,
.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF5722, #FF9800);
}

.solution::before {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.problem:hover,
.solution:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.missions {
    padding: 60px 0;
    background: linear-gradient(135deg, #C8E6C9, #DCEDC8, #F1F8E9);
    position: relative;
}

.missions h3 {
    text-align: center;
    color: #2E7D32;
    font-size: 2rem;
    margin-bottom: 40px;
}

.city-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
    color: white;
    text-align: center;
}

.benefits-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.benefit-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-align: left;
}

.benefit-category:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-category h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
}

.benefit-category ul {
    list-style: none;
    padding: 0;
}

.benefit-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.benefit-category li:last-child {
    border-bottom: none;
}

.cta-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.benefits {
    padding: 60px 0;
    background: linear-gradient(45deg, #F1F8E9, #E8F5E8, #C8E6C9);
    position: relative;
}

.benefits h3 {
    text-align: center;
    color: #2E7D32;
    font-size: 2rem;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1200px;
}

.benefit {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.benefit:nth-child(odd) {
    background: linear-gradient(145deg, #E8F5E8, #C8E6C9);
    border-color: rgba(76, 175, 80, 0.3);
}

.benefit:nth-child(even) {
    background: linear-gradient(145deg, #E0F2F1, #B2DFDB);
    border-color: rgba(0, 150, 136, 0.3);
}

.benefit:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.benefit-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.benefit:hover .benefit-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 20px rgba(76, 175, 80, 0.3));
}

.benefit h4 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9, #A5D6A7);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border-left: 5px solid #4CAF50;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.2);
    border-left-width: 8px;
}

.feature-card:nth-child(even) {
    border-left-color: #2196F3;
}

.feature-card:nth-child(3n) {
    border-left-color: #FF9800;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.feature-card h4 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Estilos para preview cards na página inicial */
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.preview-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #4CAF50;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76,175,80,0.15);
}

.preview-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.preview-card h4 {
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.preview-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}

.section-btn {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(76,175,80,0.3);
    color: white;
}

.mission-description {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #0ea5e9;
}

.mission-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    text-align: justify;
}

.rewards-preview {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2, #FFCC80);
}

.how-it-works-preview {
    padding: 60px 0;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB, #90CAF9);
}

@media (max-width: 768px) {
    .hero::before {
        display: none;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-solution .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .benefit-item:hover {
        transform: translateY(-5px);
    }

    .category-header:hover .category-icon {
        transform: scale(1.1) rotate(180deg);
    }
}