/* CIAB 2025 Main Stylesheet */

/* General Styles */
html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Otimizações de performance para scroll */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* Forçar aceleração de hardware */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Melhorar performance de renderização */
    will-change: scroll-position;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Otimizações de performance para scroll */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    /* Forçar aceleração de hardware */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Melhorar performance de renderização */
    will-change: scroll-position;
    /* Prevenir travamentos de scroll */
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

/* Background Image with Fixed Position */
.bg-fixed-image {
    position: relative;
    background-image: url('foto-ciab-2.avif');
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
}

.bg-fixed-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 60 130 / 62%) 0%, rgba(0, 100, 180, 0.9) 100%);
    z-index: 0;
    backdrop-filter: blur(1px);
}

.bg-fixed-image > .container {
    position: relative;
    z-index: 1;
}

@keyframes subtle-zoom {
    0% {
        background-position: center 0%;
        background-size: 100%;
    }
    100% {
        background-position: center 10%;
        background-size: 110%;
    }
}

/* Gradient Backgrounds */
.gradient-bg {
    
    background: linear-gradient(90deg, #0077C8 0%, #00ACC1 70%, #1e3a8a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    z-index: 1;
}

.header-gradient-bg {
    background: linear-gradient(90deg, #0077C8 0%, #00ACC1 70%, #0077C8 100%);
}

.moving-gradient {
    background: linear-gradient(135deg, #0077C8 0%, #00ACC1 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.hero-gradient-overlay {
    background: linear-gradient(135deg, rgba(0,119,200,0.9) 0%, rgba(0,172,193,0.8) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Palestrantes Carousel */
.palestrante-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.palestrante-bg {
    background: linear-gradient(to top, rgba(0, 119, 200, 0.9), rgba(233, 30, 99, 0.7));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.palestrante-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: all 0.5s ease;
}

.palestrante-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.nome-container {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
}

.nome-container h3 {
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.palestrante-card:hover .nome-container {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.palestrante-bio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.95), rgba(233, 30, 99, 0.95));
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.description-container {
    height: calc(100% - 60px);
    width: 100%;
    overflow-y: auto;
    padding-right: 5px;
    /* Estilizar scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.description-container::-webkit-scrollbar {
    width: 4px;
}

.description-container::-webkit-scrollbar-track {
    background: transparent;
}

.description-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.palestrante-card:hover .palestrante-bio {
    opacity: 1;
    transform: translateY(0);
}

.palestrante-card:hover .palestrante-bg {
    opacity: 0.6;
}

.palestrante-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.palestrante-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Patrocinadores Carousel */
.patrocinador-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 220px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    transition: all 0.3s ease;
}

.patrocinador-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.patrocinador-logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.patrocinador-card:hover .patrocinador-logo {
    transform: scale(1.05);
}

.patrocinador-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.patrocinador-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Animations */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Buttons */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.25);
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(233, 30, 99, 0.3);
    animation: none;
}

/* Fancy Border */
.fancy-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.fancy-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    animation: border-animation 4s linear infinite;
    border-radius: inherit;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FDC300;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Countdown */
.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Timeline */
.timeline-dot::before {
    content: '';
    position: absolute;
    left: -39px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FDC300;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #00ACC1;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Otimizações específicas para mobile */
    html, body {
        /* Melhorar performance de scroll no mobile */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: none;
        /* Reduzir uso de memória */
        will-change: auto;
    }
    
    /* Desabilitar animações complexas no mobile para melhor performance */
    .bg-fixed-image {
        background-attachment: scroll;
        animation: none;
    }
    
    .fancy-border::before {
        animation: none;
    }
    
    .palestrante-card {
        height: 300px; /* Reduzido de 360px */
        transform: none; /* Remover transformações que podem causar travamentos */
    }
    
    .bg-fixed-image {
        background-attachment: scroll; /* Forçar scroll em vez de fixed no mobile */
        background-position: center;
        background-size: cover;
        /* Remover animação que pode causar travamentos */
        animation: none;
    }
    
    .bg-fixed-image::before {
        backdrop-filter: none; /* Remover backdrop-filter que pode causar travamentos */
        -webkit-backdrop-filter: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        /* Melhorar performance de layout */
        contain: layout style;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        /* Melhorar performance de layout */
        contain: layout style;
    }
    
    img {
        max-width: 100%;
        height: auto;
        /* Melhorar performance de renderização */
        will-change: auto;
    }
    
    /* Reduzir complexidade das animações no mobile */
    .animate-fade-in,
    .fade-in-left,
    .fade-in-right,
    .fade-in-up,
    .fade-in {
        transition: opacity 0.3s ease-out; /* Simplificar animações */
        transform: none; /* Remover transformações complexas */
    }
    
    .floating,
    .card-hover {
        animation: none; /* Desabilitar animações flutuantes no mobile */
        transform: none;
    }
    
    .galeria-container,
    .galeria-wrapper {
        /* Melhorar performance de scroll */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
    
    .fixed {
        position: fixed;
        /* Melhorar performance de elementos fixos */
        will-change: transform;
    }
    
    #popup-container {
        max-width: 90vw;
        max-height: 80vh;
    }
}

/* Galeria Carousel Styles */
.galeria-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.galeria-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.galeria-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 280px;
    width: calc(100% / 3 - 20px);
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-video-container {
    width: 100%;
    height: 100%;
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    transition: opacity 0.3s ease;
}

.galeria-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.galeria-play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.galeria-nav-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.galeria-nav-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.galeria-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Estilos para as abas de galeria */
.galeria-tab {
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.galeria-tab:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.galeria-tab-active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .galeria-item {
        width: calc(100% / 2 - 20px);
    }
}

@media (max-width: 640px) {
    .galeria-item {
        width: calc(100% - 20px);
    }
}

/* Estilos para a animação de transição quando o carrossel muda automaticamente */
@keyframes highlight {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 8px 24px rgba(123,104,238,0.6); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
}

.galeria-item.active {
    animation: highlight 2s ease;
}

/* Admin Panel Styles */
.admin-tab {
    position: relative;
    transition: all 0.3s ease;
}

.admin-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-tab.active::after {
    transform: scaleX(1);
}

.admin-tab:not(.active):hover {
    border-color: rgba(0, 119, 200, 0.2);
    color: rgba(0, 119, 200, 0.7);
}

/* Admin item list */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Números Seção Estilos */
.contador {
    display: inline-block;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    position: relative;
    color: #FDC300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 2.5rem;
}

.contador::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(253, 195, 0, 0.7), transparent);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    transition: width 0.5s ease;
    opacity: 0;
}

.contador.active::after {
    width: 100%;
    opacity: 1;
    animation: pulse-line 2s infinite;
    animation-delay: 1s;
}

.contador.completed {
    color: #FDC300;
    text-shadow: 0 0 15px rgba(253, 195, 0, 0.4);
}

@keyframes pulse-line {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.8);
    }
}

/* Animation for number cards when they come into view */
@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.numeros-container > div {
    opacity: 0;
    animation: card-appear 0.5s ease forwards;
}

.numeros-container > div:nth-child(1) {
    animation-delay: 0.1s;
}

.numeros-container > div:nth-child(2) {
    animation-delay: 0.3s;
}

.numeros-container > div:nth-child(3) {
    animation-delay: 0.5s;
}

.numeros-container > div:nth-child(4) {
    animation-delay: 0.7s;
}

/* Custom card glow effect */
.numeros-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.numeros-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

.numeros-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.8s ease;
    z-index: 2;
}

.numeros-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

.numeros-card:hover::after {
    opacity: 1;
    bottom: -80%;
}

.numeros-card:hover::before {
    left: 100%;
}

/* Ícones dos contadores */
.numeros-card span[class*="/20"] {
    transition: all 0.3s ease;
    transform: scale(1);
}

.numeros-card:hover span[class*="/20"] {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Destaque quando estiver em hover */
.numeros-card:hover .contador {
    text-shadow: 0 0 15px rgba(253, 195, 0, 0.5);
    transform: scale(1.05);
}

/* Background gradients and animations */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-item .cursor-pointer {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-item .cursor-pointer:hover {
    background-color: rgba(0, 119, 200, 0.05);
}

.faq-item .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .content {
    max-height: 1000px; /* Valor suficientemente grande para acomodar qualquer conteúdo */
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.5s ease, opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.faq-item i {
    transition: transform 0.3s ease;
}

.faq-item.active i {
    transform: rotate(180deg);
    color: #0077C8; /* Cor azul mais intensa quando ativo */
}

/* Suporte técnico card */
.suporte-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.suporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-inscription {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 81, 141, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(255, 81, 141, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 81, 141, 0.4);
    }
}

.pulse-inscription {
    animation: pulse-inscription 2s infinite;
}

.pulse-inscription:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 81, 141, 0.6);
}

/* Estilo especial para o card do 2º lote */
.lote-destaque {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.lote-destaque:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(255, 81, 141, 0.4) !important;
    z-index: 20;
}

.lote-destaque::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 81, 141, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.lote-destaque:hover::after {
    opacity: 1;
    animation: rotate-glow 3s infinite linear;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Desativa o comportamento padrão de card-hover para o lote em destaque */
.lote-destaque.card-hover:hover {
    transform: scale(1.08);
}

/* Botão de destaque para o card do 2º lote */
.btn-destaque {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

/* Efeito de brilho quando passar o mouse no card */
.lote-destaque:hover .btn-destaque::before {
    left: 100%;
    transition: all 0.8s ease;
}

.lote-destaque:hover .btn-destaque {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 81, 141, 0.6);
}

/* Efeito quando passar o mouse diretamente no botão */
.btn-destaque:hover {
    background-color: #e23f74 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(255, 81, 141, 0.8) !important;
}

/* Estilos para o Pop-up Modal */
#popup-modal {
    perspective: 1200px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    /* Inicialmente invisível */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#popup-modal.active {
    opacity: 1;
    pointer-events: all;
}

#popup-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-width: 650px !important;
    width: 100% !important;
    max-height: 90vh;
    margin: auto;
}

#popup-container.scale-100 {
    transform: scale(1) rotateX(0);
}

#popup-container.scale-95 {
    transform: scale(0.95) rotateX(-5deg);
}

#popup-backdrop {
    transition: all 0.3s ease;
    /* Inicialmente sem blur e transparente */
    background: transparent;
    backdrop-filter: none;
}

#popup-modal.active #popup-backdrop {
    /* Aplicar blur e cor apenas quando ativo */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#popup-close {
    transition: transform 0.3s ease;
}

#popup-close:hover {
    transform: rotate(90deg);
}

#popup-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

#popup-button:hover::before {
    left: 100%;
    transition: all 0.8s ease;
}

#popup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(233, 30, 99, 0.3);
}

/* Botão Flutuante de Contato */
.floating-contact-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #0077C8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 119, 200, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
    font-size: 24px;
    /* Ensure it doesn't push content */
    margin: 0;
}

.floating-contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 119, 200, 0.6);
}

.floating-contact-button.active {
    transform: rotate(45deg);
    background-color: #E91E63;
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.6);
}

.contact-options {
    position: fixed;
    bottom: 90px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-options.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 12px;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.contact-option:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-option i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    margin-right: 8px;
    color: white;
}

.contact-option.whatsapp i {
    background-color: #25D366;
}

.contact-option.email i {
    background-color: #DB4437;
}

.contact-option.instagram i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Animação de pulsação para o botão flutuante */
@keyframes pulse-contact {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 119, 200, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 119, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 119, 200, 0);
    }
}

.pulse-animation {
    animation: pulse-contact 2s infinite;
}

/* Animações de entrada com fade e slide - Otimizadas para performance */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px); /* Reduzido de -50px para melhor performance */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Reduzido de 0.6s */
    will-change: opacity, transform;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px); /* Reduzido de 50px para melhor performance */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Reduzido de 0.6s */
    will-change: opacity, transform;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px); /* Reduzido de 30px para melhor performance */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Reduzido de 0.6s */
    will-change: opacity, transform;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.4s ease-out; /* Reduzido de 0.6s */
    will-change: opacity;
}

/* Classes adicionadas quando o elemento entra na viewport - Otimizadas */
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translate(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Reduzido de 0.6s */
}

/* Transição mais rápida ao sair da visão - Otimizada */
.fade-in-left:not(.visible),
.fade-in-right:not(.visible),
.fade-in-up:not(.visible),
.fade-in:not(.visible) {
    transition: opacity 0.3s ease-in, transform 0.3s ease-in; /* Reduzido de 0.4s */
}

/* Atrasos para efeito em cascata */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* Estilos para os Modais de Inscrição */
#inscricao-modal,
#inscricao-grupo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9998 !important;
    /* Garantir que o modal não seja afetado pelo scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#inscricao-grupo-modal {
    z-index: 9997 !important;
}

#inscricao-container,
#inscricao-grupo-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    /* Garantir que o container esteja sempre visível */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Garantir que os iframes ocupem todo o espaço disponível */
#iframe-inscricao-2,
#iframe-inscricao-grupo {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    flex: 1 !important;
}

.iframe-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Prevenir scroll quando modais estão abertos */
body.modal-open,
html.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}