@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap');

:root {
    --texto: #ffffff;
    --texto-suave: rgba(255, 255, 255, 0.7);
    --vidro: rgba(255, 255, 255, 0.04);
    --borda: rgba(255, 255, 255, 0.14);
    --brilho: 0 0 25px rgba(255, 255, 255, 0.12), 0 0 50px rgba(255, 255, 255, 0.06), 0 0 80px rgba(255, 255, 255, 0.03);
    --raio: 30px;
}

body {
    font-family: 'Sora', system-ui, sans-serif;
    color: var(--texto);
    background-color: #0b0b0b;
    background-image: url(assets/img/fundo2.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* escurece o fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
    z-index: -1;
}

/* partículas */
#particulas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* menu */
.nav {
    padding: 18px 0 0;
    animation: descer 0.6s cubic-bezier(.2, .8, .3, 1) backwards;
}

.nav-link {
    color: var(--texto);
    padding: 8px 22px;
    border: 1px solid var(--borda);
    border-radius: 999px;
    background: var(--vidro);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--texto);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--brilho);
}

/* caixa principal */
.container {
    max-width: 1500px;
    margin-top: 30px;
    padding: 50px 28px 56px;
    text-align: center;
    background-color: var(--vidro);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--brilho);
    animation: subir 0.7s cubic-bezier(.2, .8, .3, 1) backwards;
    position: relative;
}

.container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
    background-size: 200% 200%;
    pointer-events: none;
    animation: passear 12s ease-in-out infinite;
}

/* topo */
.topo h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 6vw, 3.25rem);
    margin-bottom: 12px;
}

.topo h3 {
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--texto-suave);
    max-width: 36ch;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.avatar {
    width: 300px;
    height: 300px;
    object-fit: cover;
    background-color: #d9d9d9;
    border-radius: var(--raio);
    border: 1px solid var(--borda);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.18), 0 0 70px rgba(255, 255, 255, 0.07);
    animation: surgir 0.8s cubic-bezier(.2, .8, .3, 1) 0.4s backwards;
}

/* entrada do topo, um item depois do outro */
.topo > h1,
.topo > h3 {
    animation: subir 0.6s cubic-bezier(.2, .8, .3, 1) backwards;
}

.topo > h1 {
    background: linear-gradient(100deg, #fff 35%, rgba(255, 255, 255, 0.4) 50%, #fff 65%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        subir 0.6s cubic-bezier(.2, .8, .3, 1) 0.2s backwards,
        varrer 6s linear 1.2s infinite;
}

.topo > h3 { animation-delay: 0.3s; }

/* botões */
.botoes {
    animation: subir 0.6s cubic-bezier(.2, .8, .3, 1) 0.55s backwards;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 44px;
    padding-top: 44px;
    position: relative;
}

.botoes::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--borda);
    transform-origin: center;
    animation: crescer 0.9s cubic-bezier(.2, .8, .3, 1) 0.7s backwards;
}

.botoes .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 200px;
    min-height: 50px;
    padding: 10px 28px;
    color: var(--texto);
    border-color: var(--texto);
    border-radius: 999px;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    animation:
        flutuar 7s ease-in-out 1.3s infinite,
        brilhar 4s ease-in-out 1.3s infinite alternate;
}

.botoes .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.botoes .btn:hover::before,
.botoes .btn:focus-visible::before {
    left: 130%;
    transition: left 0.7s ease;
}

.botoes .btn:hover,
.botoes .btn:focus-visible {
    color: var(--texto);
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--texto);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.botoes .btn small {
    font-size: 0.72rem;
    font-weight: 300;
    opacity: 0.8;
}

/* botões da página principal: cartões de vidro em grade (só os que ficam direto no .container) */
.container > .botoes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.container > .botoes .btn {
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 0;
    min-height: 88px;
    padding: 18px 54px 18px 22px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    background: var(--vidro);
    border: 1px solid var(--borda);
    border-radius: 22px;
    backdrop-filter: blur(8px);
    animation: surgir 0.5s cubic-bezier(.2, .8, .3, 1) backwards;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
}

.container > .botoes .btn small {
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 1;
    color: var(--texto-suave);
}

/* seta que desliza ao passar o mouse */
.container > .botoes .btn::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.4;
    transition: right 0.25s, opacity 0.25s;
}

.container > .botoes .btn:hover,
.container > .botoes .btn:focus-visible {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: var(--brilho);
}

.container > .botoes .btn:hover::after,
.container > .botoes .btn:focus-visible::after {
    right: 16px;
    opacity: 1;
}

.container > .botoes .btn:active { transform: translateY(-1px) scale(0.98); }

/* acessibilidade */
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* animações */
@keyframes subir {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes descer {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes surgir {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes flutuar {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

@keyframes passear {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 100%; }
}

@keyframes varrer {
    from { background-position: 150% 0; }
    to   { background-position: -100% 0; }
}

@keyframes crescer {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes brilhar {
    from { box-shadow: 0 0 30px rgba(255, 255, 255, 0.14), 0 0 70px rgba(255, 255, 255, 0.05); }
    to   { box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 90px rgba(255, 255, 255, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before {
        animation: none !important;
        transition: none !important;
    }
}

/* celular */
@media (max-width: 767px) {
    .container {
        margin-left: 12px;
        margin-right: 12px;
        padding: 36px 18px 40px;
    }

    .avatar {
        width: 220px;
        height: 220px;
    }

    .botoes .btn {
        width: 240px;
    }
}