/* --- ESTILOS GERAIS E LAYOUT --- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-container {
    background-attachment: fixed;
}

.gradient-overlay {
    background: linear-gradient(180deg, rgba(0, 96, 114, 1) 0%, rgba(0, 132, 156, 1) 30%, rgba(32, 206, 215, 1) 100%);
}

.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* --- ANIMAÇÕES (KEYFRAMES) --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(34, 205, 214, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(34, 205, 214, 0.7)); }
}

@keyframes ripple {
    to { 
        transform: scale(4); 
        opacity: 0; 
    }
}

@keyframes fade-in {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slide-up {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* --- COMPONENTES E CLASSES UTILITÁRIAS --- */
.floating-logo {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.link-bio-button:hover .button-icon {
    transform: scale(1.1) rotate(3deg);
}

.gradient-button-primary {
    background: linear-gradient(135deg, #004d5c, #006072);
}

.gradient-button-secondary {
    background: linear-gradient(135deg, #22cdd6, #25d4dd);
}

/* --- RODAPÉ --- */
.footer {
    background: linear-gradient(180deg, rgba(32, 206, 215, 0.9) 0%, #006072 300%);
}

.footer-credit {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.footer-credit a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease-in-out;
}

.footer-credit a:hover {
    filter: brightness(0.9);
    text-decoration: underline;
}

/* --- ACESSIBILIDADE E RESPONSIVIDADE --- */

/* Mostra um contorno de foco apenas ao navegar com o teclado (tecla Tab) */
.keyboard-navigation .link-bio-button:focus {
    outline: 3px solid #22cdd6;
    outline-offset: 2px;
    border-radius: 1rem;
}

/* Melhora a acessibilidade para todos, mostrando o foco de forma consistente */
.link-bio-button:focus-visible {
    outline: 3px solid #22cdd6;
    outline-offset: 2px;
    border-radius: 1rem;
}

/* Ajusta o fundo em telas menores para melhorar a performance */
@media (max-width: 640px) {
    .main-container {
        background-attachment: scroll;
    }
}

/* Reduz o movimento para usuários com essa preferência de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}