/* ===== Design tokens ===== */
:root {
    --bg: #250000;
    --bg-2: #4a1f1f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #fbeceb;
    --muted: #c79a99;
    --muted-2: #9a6f6e;
    --accent: #ff3b4e;
    --accent-soft: #ff6b7a;
    --green: #3ddc84;
    --radius: 18px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background:
            radial-gradient(900px circle at 50% -10%, var(--bg-2), transparent 60%),
            var(--bg);
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.logo {
    margin-top: 70px;
    width: 350px;
}

a { color: inherit; text-decoration: none; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

/* ===== Layout ===== */
.page {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section { display: flex; flex-direction: column; gap: 12px; }

/* ===== Hero ===== */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }

.hero__avatar {
    position: relative;
    width: 92px; height: 92px;
    border-radius: 26px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--accent), #b01023);
    box-shadow: 0 12px 30px rgba(255, 59, 78, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    animation: pop 0.6s cubic-bezier(.2,.8,.2,1) both;
}
.hero__avatar-text { font-family: "Archivo Black", sans-serif; font-size: 28px; letter-spacing: -1px; }
.hero__status {
    position: absolute; bottom: 4px; right: 4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--green); border: 3px solid var(--bg-2);
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
    animation: pulse 2s infinite;
}

.hero__title {
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(40px, 12vw, 64px);
    letter-spacing: -2px;
    line-height: 0.9;
    background: linear-gradient(180deg, #fff, #ffb3bb);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__tagline { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ===== Section label ===== */
.section__label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* ===== Projetos ===== */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: transform .25s, background .25s, border-color .25s;
}
.project:hover { transform: translateY(-4px); background: var(--surface-hover); border-color: var(--border-strong); }
.project__badge {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    font-family: "Archivo Black", sans-serif; font-size: 16px;
    background: linear-gradient(145deg, var(--accent), #8a1020); color: #fff;
}
.project__badge--blue { background: linear-gradient(145deg, #2d6cff, #14306e); }
.project__badge--red { background: linear-gradient(145deg, #ff3b4e, #5a0a12); }
.project__name { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ===== Links ===== */
.links { gap: 12px; }

.link {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: all 2s;
    overflow: hidden;
    animation: rise .5s ease both;
}
.link::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,59,78,0.12), transparent);
    opacity: 0; transition: opacity .25s;
}
.link:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-strong); box-shadow: var(--shadow); }
.link:hover::before { opacity: 1; }
.link:hover .link__arrow { transform: translateX(4px); opacity: 1; }

.link.online {
    background: rgb(145 70 255 / 0.49) !important;
    border: 1px solid #9d6df1 !important;
    color: #ffffff !important;
}

.link.online::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(209 140 252 / 0.12), transparent);
    opacity: 0; transition: opacity .25s;
}
.link.online:hover { transform: translateY(-3px); background: rgb(134 80 211 / 0.39) !important; border-color: #9d6df1 !important; box-shadow: #9d6df1 0 0 20px; }
.link.online .link__arrow {
    color: #FFF;
}
.link.online .status__live {
    color: #FFF;
    animation: pulse-sm 1.5s infinite;
}

.link__icon {
    flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}
.link__icon svg { width: 22px; height: 22px; }
.link__icon--gradient { background: linear-gradient(145deg, #5865f2, #3a44b8); border: none; color: #fff; }
.link__icon--dev { background: linear-gradient(145deg, #ff3b4e, #8a1020); border: none; color: #fff; }

.link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.link__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.link__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 700; }
.meta__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.meta__dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.link__arrow { color: var(--muted-2); font-size: 18px; opacity: .5; transition: transform .25s, opacity .25s; }

/* CTA "Entrar" */
.link__cta {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 11px;
    font-weight: 700; font-size: 14px;
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 18px rgba(255, 59, 78, 0.35);
    transition: transform .2s, filter .2s;
}
.link:hover .link__cta { filter: brightness(1.1); }

/* Badges */
.link__badge {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.1); color: var(--text);
}
.link__badge--muted { background: rgba(255,255,255,0.08); color: var(--muted); }
.link__badge--live { background: rgba(255,59,78,0.18); color: var(--accent-soft); display: inline-flex; align-items: center; gap: 5px; }
.link__badge--live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-sm 1.5s infinite; }
.link__badge--dev { background: rgba(88,101,242,0.2); color: #aeb4ff; }

/* Estado desativado (Twitch offline) */
.link--disabled { opacity: 0.5; cursor: not-allowed; }
.link--disabled:hover { transform: none; box-shadow: none; }

/* ===== Sociais ===== */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.social {
    height: 54px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: translateY(-4px); background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px rgba(255,59,78,0.35); }

/* ===== Footer ===== */
.footer {
    text-align: center; font-size: 12px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted-2); margin-top: 8px;
}
.footer__heart { color: var(--accent); animation: beat 1.4s infinite; display: inline-block; }

/* ===== Animations ===== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
@keyframes pulse-sm {
    0%, 100% { opacity: 1; } 50% { opacity: .3; }
}
@keyframes beat {
    0%, 100% { transform: scale(1); } 25% { transform: scale(1.25); } 50% { transform: scale(1); }
}
@keyframes pop {
    from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
@keyframes rise {
    from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}

/* Stagger das entradas */
.links .link:nth-child(1) { animation-delay: .05s; }
.links .link:nth-child(2) { animation-delay: .10s; }
.links .link:nth-child(3) { animation-delay: .15s; }
.links .link:nth-child(4) { animation-delay: .20s; }
.links .link:nth-child(5) { animation-delay: .25s; }
.links .link:nth-child(6) { animation-delay: .30s; }
.links .link:nth-child(7) { animation-delay: .35s; }
.links .link:nth-child(8) { animation-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 420px) {
    .link__cta { padding: 8px 14px; font-size: 13px; }
    .link { padding: 14px; gap: 12px; }
}

.cls-1,.cls-2,.cls-3 {
    fill-rule: evenodd
}

.cls-1,.cls-3 {
    fill: #4f0101
}

.cls-2 {
    fill: #fff
}

/* width */
::-webkit-scrollbar {
    width: 6px;
    z-index: 999;
}

/* Track */
::-webkit-scrollbar-track {
    background: #1a1a1a;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #c95555;
    border-radius:50px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #f54343;
}

::-moz-selection { /* Code for Firefox */
    color: #FFF;
    background: #a62a2a;
}

::selection {
    color: #FFF;
    background: #a62a2a;
}

.loading {
    animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}