/* Estilos para a experiência visual de fim de ano profissional */

/* Efeito de glow no logotipo */
.logo-glow {
    position: relative;
}

.logo-glow::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.4) 0%, rgba(0, 102, 204, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: logo-glow-animation 3s ease-out 0.5s forwards;
    z-index: -1;
}

@keyframes logo-glow-animation {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Partículas geométricas minimalistas para a homepage */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.homepage .particles-container {
    display: block;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #0066cc, #0099ff, #ffffff);
    border-radius: 0;
    opacity: 0.08;
    animation: particle-float linear infinite;
}

.particle.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.particle.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.particle.diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@keyframes particle-float {
    to {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Efeito "fluxo de energia" */
.energy-flow {
    position: relative;
    overflow: hidden;
}

.energy-pulse {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0066cc, transparent);
    animation: energy-pulse 3s infinite;
    opacity: 0.6;
}

.energy-pulse:nth-child(1) {
    top: 20%;
    width: 100px;
    left: -100px;
    animation-delay: 0s;
}

.energy-pulse:nth-child(2) {
    top: 40%;
    width: 150px;
    left: -150px;
    animation-delay: 1s;
}

.energy-pulse:nth-child(3) {
    top: 60%;
    width: 120px;
    left: -120px;
    animation-delay: 2s;
}

@keyframes energy-pulse {
    0% { left: -100px; }
    100% { left: 100%; }
}

/* Mensagem institucional animada */
.institutional-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #0066cc;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    z-index: 10000;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    animation: message-slide-in 0.8s ease-out 1s forwards;
}

.institutional-message .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #0066cc;
}

@keyframes message-slide-in {
    to { transform: translateX(0); }
}

/* Contagem regressiva elegante no rodapé */
.countdown-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid #0066cc;
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #0066cc;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: countdown-fade-in 1s ease-out 2s forwards;
}

.countdown-footer.hidden {
    display: none;
}

@keyframes countdown-fade-in {
    to { opacity: 1; }
}

/* Efeito especial de Ano Novo - pulso energético */
.logo-new-year-pulse {
    animation: new-year-pulse 5s ease-out;
}

@keyframes new-year-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(0, 102, 204, 0);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
        transform: scale(1);
    }
}

/* Animações leves de scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in-element {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in-element.visible {
    opacity: 1;
    transform: scale(1);
}

/* Estilos responsivos e acessibilidade */
@media (max-width: 768px) {
    .particles-container {
        display: none;
    }
    
    .institutional-message {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .countdown-footer {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particles-container {
        display: none;
    }
    
    .institutional-message {
        animation: none;
        transform: translateX(0);
    }
    
    .countdown-footer {
        animation: none;
        opacity: 1;
    }
}