/* Animações e efeitos visuais extras para o tema de aviação */

/* Efeito de partículas flutuantes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 40%; left: 90%; animation-delay: 4s; }
.particle:nth-child(6) { top: 90%; left: 30%; animation-delay: 5s; }

/* Efeito de radar */
@keyframes radar {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.radar-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar 4s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Efeito de brilho nos botões */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(96, 165, 250, 0.5); }
    50% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.8), 0 0 30px rgba(96, 165, 250, 0.6); }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* Efeito de digitação */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #60a5fa;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #60a5fa; }
}

/* Efeito de hover nos cards */
.email-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Efeito de pulso para códigos importantes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.code-highlight {
    animation: pulse 2s ease-in-out infinite;
}

/* Efeito de neve/partículas de gelo */
@keyframes snowfall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

.snowflake {
    position: fixed;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    animation: snowfall 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.snowflake:nth-child(1) { left: 10%; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-delay: 6s; }
.snowflake:nth-child(5) { left: 50%; animation-delay: 8s; }
.snowflake:nth-child(6) { left: 60%; animation-delay: 1s; }
.snowflake:nth-child(7) { left: 70%; animation-delay: 3s; }
.snowflake:nth-child(8) { left: 80%; animation-delay: 5s; }
.snowflake:nth-child(9) { left: 90%; animation-delay: 7s; }

/* Efeito de gradiente animado no título */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efeito de borda brilhante */
@keyframes border-glow {
    0%, 100% { border-color: rgba(96, 165, 250, 0.3); }
    50% { border-color: rgba(96, 165, 250, 0.8); }
}

.glow-border {
    animation: border-glow 2s ease-in-out infinite;
}

/* Efeito de loading personalizado */
@keyframes loading-dots {
    0%, 20% { color: rgba(255, 255, 255, 0); text-shadow: 0.25em 0 0 rgba(255, 255, 255, 0), 0.5em 0 0 rgba(255, 255, 255, 0); }
    40% { color: white; text-shadow: 0.25em 0 0 rgba(255, 255, 255, 0), 0.5em 0 0 rgba(255, 255, 255, 0); }
    60% { text-shadow: 0.25em 0 0 white, 0.5em 0 0 rgba(255, 255, 255, 0); }
    80%, 100% { text-shadow: 0.25em 0 0 white, 0.5em 0 0 white; }
}

.loading-dots::after {
    content: '...';
    animation: loading-dots 1.5s steps(5, end) infinite;
}

/* Responsividade melhorada */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .email-container {
        padding: 15px;
        margin: 10px;
    }
    
    .email-field {
        padding: 10px;
    }
    
    .code-highlight {
        font-size: 1rem;
        padding: 15px;
    }
}

/* Efeito de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efeito de foco melhorado */
.email-link:focus,
.back-button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Efeito de transição suave para todos os elementos */
* {
    transition: all 0.3s ease;
}

/* Efeito de sombra dinâmica */
.email-container {
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.email-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(96, 165, 250, 0.2);
}
