/* Importação de fonte moderna e criativa */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,600;14..32,700;14..32,800&display=swap');

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(125deg, #0f0c29, #302b63, #24243e);
    background-size: 300% 300%;
    animation: gradientFlow 12s ease infinite;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Elementos flutuantes decorativos (animações de fundo) */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

body::before {
    top: -15%;
    left: -10%;
    background: rgba(103, 58, 183, 0.2);
    filter: blur(60px);
}

body::after {
    bottom: -20%;
    right: -15%;
    background: rgba(0, 230, 230, 0.2);
    filter: blur(80px);
    animation-duration: 18s;
    animation-direction: alternate-reverse;
}

/* Partículas adicionais com sombras e brilho (pseudo-elemento extra) */
body {
    position: relative;
}

body .glow-spot {
    display: none;
}

/* Cria um efeito de grade dinâmica superposta */
@keyframes panBackground {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Header e navegação principal */
header {
    width: 100%;
    max-width: 1300px;
    margin: 0 2rem;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 3rem;
    padding: 1rem;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    list-style: none;
}

nav li {
    perspective: 800px;
    animation: slideGlide 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) backwards;
}

nav li:nth-child(1) {
    animation-delay: 0.1s;
}

nav li:nth-child(2) {
    animation-delay: 0.3s;
}

/* Estilo principal dos links - Cards chamativos e modernos */
nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.2rem 2.5rem;
    background: rgba(20, 20, 40, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ícones antes dos textos via CSS (sem alterar HTML) */
nav li:first-child a::before {
    content: "📘";
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

nav li:last-child a::before {
    content: "🌟";
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Brilho animado que passa por cima no hover */
nav a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 120%;
    height: 200%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 70%);
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: -1;
}

nav a:hover::after {
    left: 110%;
}

/* Hover com animações fortes e criativas */
nav a:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(30, 30, 70, 0.75);
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    gap: 1rem;
}

nav a:hover::before {
    transform: scale(1.15) rotate(5deg);
}

/* Efeito de clique ativo */
nav a:active {
    transform: translateY(2px) scale(0.98);
    transition: 0.05s;
}

/* Cada link pode ter uma cor de acento diferente no hover (criativo) */
nav li:first-child a:hover {
    border-color: #ff66cc;
    box-shadow: 0 0 25px rgba(255, 102, 204, 0.6);
    background: rgba(40, 20, 50, 0.8);
}

nav li:last-child a:hover {
    border-color: #33ffcc;
    box-shadow: 0 0 25px rgba(51, 255, 204, 0.6);
    background: rgba(20, 45, 55, 0.8);
}

/* Animações globais */

/* Gradiente em movimento no fundo */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animação de entrada dos itens */
@keyframes slideGlide {
    0% {
        opacity: 0;
        transform: translateY(70px) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Flutuação dos orbes de fundo */
@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 8%) scale(1.2);
    }
}

/* Animações adicionais de brilho nos textos */
nav a {
    animation: textGlowPulse 3s infinite alternate;
}

@keyframes textGlowPulse {
    0% {
        text-shadow: 0 0 2px rgba(255,255,255,0.3);
    }
    100% {
        text-shadow: 0 0 8px rgba(0, 230, 250, 0.5);
    }
}

/* Toque criativo com ondulação hover (bolha) */
nav a::before {
    transition: transform 0.2s ease-out;
}

/* Responsividade e ajustes para telas menores */
@media (max-width: 700px) {
    nav ul {
        gap: 1.5rem;
        flex-direction: column;
        width: 100%;
    }

    nav a {
        padding: 1rem 2rem;
        font-size: 1.3rem;
        width: 90%;
        justify-content: center;
    }

    nav li:first-child a::before,
    nav li:last-child a::before {
        font-size: 1.5rem;
    }

    header {
        margin: 1rem;
        padding: 0.8rem;
    }
    
    body::before, body::after {
        width: 70vw;
        height: 70vw;
        filter: blur(70px);
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    nav li:first-child a::before,
    nav li:last-child a::before {
        font-size: 1.3rem;
    }
}

/* Estilização da barra de rolagem (criatividade extra) */
::-webkit-scrollbar {
    width: 8px;
    background: #111;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* Pequeno detalhe de foco para acessibilidade */
nav a:focus-visible {
    outline: 3px solid cyan;
    outline-offset: 6px;
    border-radius: 60px;
}