/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    position: relative;
    width: 100vw;
    background: #0f1419; /* Fallback caso o gradiente não carregue */
}

/* Container principal */
.container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Fallback simples para mobile - FORÇA EXIBIÇÃO */
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    body {
        background: linear-gradient(45deg, #0f1419, #1a2332, #243547) !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .container {
        background: transparent !important;
        min-height: 100vh !important;
        height: 100vh !important;
        width: 100vw !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-5vh);
    }
    
    .logo-container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 1rem !important;
    }
    
    .logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: min(500px, 95vw) !important;
        height: auto !important;
        margin: 0 auto !important;
        animation: logoFloat 3s ease-in-out infinite;
    }
    
    .title {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #ffffff !important;
        font-size: min(1.8rem, 7vw) !important;
        text-align: center !important;
        margin: 1rem 0 !important;
        font-weight: 600 !important;
        transform: none !important;
    }
    
    .subtitle {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #b8c5d1 !important;
        font-size: min(1.2rem, 5vw) !important;
        text-align: center !important;
        margin: 0.5rem 0 1rem 0 !important;
        font-weight: 300 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .loading-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .loading-dots span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 8px !important;
        height: 8px !important;
        background: #4a90c2 !important;
        border-radius: 50% !important;
    }
    
    .footer {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .footer p {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #6b7885 !important;
        font-size: 0.8rem !important;
    }
    
    .gradient-bg {
        background: linear-gradient(45deg, #0f1419, #1a2332, #243547) !important;
        animation: none !important; /* Remove animação em mobile para performance */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -2 !important;
    }
}

/* Fundo degradê dinâmico */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        45deg,
        #0f1419,
        #1a2332,
        #243547,
        #0d1b2a,
        #162447,
        #1e3a5f
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
}

/* Animação do degradê */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efeito de brilho sutil */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Conteúdo principal */
.content {
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 2rem;
    max-width: 100vw;
    max-height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Container da logo */
.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: min(600px, 85vw);
    max-width: 85vw;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

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

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

/* Título */
.title {
    color: #ffffff;
    font-size: min(2.5rem, 6vw);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
    letter-spacing: 1px;
    text-align: center;
    max-width: 90vw;
    word-wrap: break-word;
    hyphens: auto;
}

/* Subtítulo */
.subtitle {
    color: #b8c5d1;
    font-size: min(1.3rem, 4vw);
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 90vw;
    word-wrap: break-word;
    /* Animação removida - será controlada pelo JavaScript */
}

/* Pontos de carregamento */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4a90c2, #7fb3d3);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: min(2rem, 5vh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 95vw;
    text-align: center;
}

.footer p {
    color: #6b7885;
    font-size: min(0.9rem, 3vw);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 1.5s both;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link do footer */
.footer-link {
    color: #7fb3d3;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    overflow: hidden;
}

/* Efeito de fundo animado */
.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 179, 211, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4a90c2, #7fb3d3, #5fa8cc);
    background-size: 200% 200%;
    animation: gradientMove 2s ease infinite;
    text-shadow: 0 2px 12px rgba(74, 144, 194, 0.8);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(74, 144, 194, 0.4),
        0 0 15px rgba(127, 179, 211, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-link:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 3px 10px rgba(74, 144, 194, 0.3);
}

/* Animação do gradiente de fundo */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efeito de sublinhado animado melhorado */
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90c2, #7fb3d3, #4a90c2);
    background-size: 200% 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: shimmer 2s ease infinite;
}

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

/* Animação de brilho no sublinhado */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Efeito de pulso sutil */
.footer-link:focus {
    outline: none;
    animation: focusPulse 0.6s ease-in-out;
    box-shadow: 0 0 0 3px rgba(127, 179, 211, 0.3);
}

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

/* Responsividade */
@media (max-width: 768px) {
    /* Fundo estático para garantir performance e compatibilidade */
    body {
        background: linear-gradient(45deg, #0f1419, #1a2332, #243547);
    }
    .gradient-bg, .container::after {
        display: none; /* Desativa fundo animado e partículas */
    }

    /* Remove animações de entrada e flutuação */
    .logo, .title, .subtitle, .loading-dots, .footer {
        animation: none !important;
    }
    
    /* Garante visibilidade do subtítulo, que é escondido para a animação de desktop */
    .subtitle {
        opacity: 1;
        transform: none;
    }

    /* Ajustes de layout para telas menores */
    .logo {
        width: min(600px, 100vw);
        animation: logoFloat 3s ease-in-out infinite;
    }

    .title {
        font-size: min(1.8rem, 7vw);
    }

    .subtitle {
        font-size: min(1.2rem, 5vw);
        opacity: 1;
        transform: none;
    }

    .footer {
        width: 90%;
        text-align: center;
    }

    .footer p {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: min(1.7rem, 5vw);
    }
    
    .subtitle {
        font-size: min(1rem, 3.2vw);
        margin-bottom: 1.5rem;
    }
    
    .logo {
        width: min(500px, 95vw) !important;
        max-height: 35vh;
    }
    
    .content {
        padding: min(0.8rem, 2.5vw);
        max-height: calc(100vh - 5rem);
    }
    
    .footer {
        bottom: min(0.5rem, 2vh);
        padding: 0 min(0.5rem, 2vw);
        max-width: 95vw;
    }
    
    .footer p {
        font-size: min(0.7rem, 2.5vw);
    }
}

@media (max-width: 360px) {
    .title {
        font-size: min(1.5rem, 4.5vw);
    }
    
    .subtitle {
        font-size: min(0.9rem, 3vw);
        margin-bottom: 1rem;
    }
    
    .logo {
        width: min(450px, 90vw) !important;
        max-height: 30vh;
    }
    
    .content {
        padding: min(0.5rem, 2vw);
        max-height: calc(100vh - 4rem);
    }
    
    .footer {
        bottom: min(0.3rem, 1.5vh);
        padding: 0 min(0.25rem, 1.5vw);
        max-width: 98vw;
    }
    
    .footer p {
        font-size: min(0.65rem, 2.2vw);
    }
}

/* Altura muito baixa */
@media (max-height: 500px) {
    .logo {
        width: min(500px, 85vw) !important;
        max-height: 25vh;
    }
    
    .title {
        font-size: min(1.5rem, 4vh);
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: min(1rem, 3vh);
        margin-bottom: 1rem;
    }
    
    .content {
        padding: min(0.5rem, 2vh);
        max-height: calc(100vh - 3rem);
    }
    
    .footer {
        bottom: min(0.2rem, 1vh);
    }
    
    .footer p {
        font-size: min(0.6rem, 2vh);
    }
}

/* Efeito de partículas sutis */
.container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

/* Botão de Eleição */
.btn-eleicao {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a90c2, #3a7fb2);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(74, 144, 194, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both, btnPulse 2s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-eleicao:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(74, 144, 194, 0.6);
    background: linear-gradient(135deg, #5fa8cc, #4a90c2);
}

.btn-eleicao:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-eleicao i {
    font-size: 1.3rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(74, 144, 194, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(74, 144, 194, 0.6);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsivo para o botão */
@media (max-width: 768px) {
    .btn-eleicao {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        animation: fadeInUp 1s ease-out 0.8s both;
    }
}

@media (max-width: 480px) {
    .btn-eleicao {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
        gap: 0.5rem;
    }
    
    .btn-eleicao i {
        font-size: 1.1rem;
    }
} 