:root {
    --bg: #0b0c10;
    --text: #eef1f7;
    --muted: #a8b0bd;
    --line: rgba(255, 255, 255, 0.12);

    /* Purple accent system */
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.12);
    --accent-border: rgba(139, 92, 246, 0.35);
    --accent-strong: rgba(139, 92, 246, 0.55);

    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(
            1100px 600px at 15% 0%,
            var(--accent-soft),
            transparent 55%
        ),
        radial-gradient(
            900px 520px at 85% 12%,
            rgba(110, 180, 255, 0.08),
            transparent 60%
        ),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    color: var(--text);
}

code {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

.muted {
    color: var(--muted);
}

.container {
    width: min(var(--container), 92vw);
    margin: 0 auto;
}

/* ================= HEADER ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(11, 12, 16, 0.7);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
    position: relative;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 0.98rem;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a {
    color: var(--muted);
    font-weight: 650;
    font-size: 0.95rem;
    padding: 10px 10px;
    border-radius: 12px;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 9px;
}

.nav a.is-cta {
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* ================= LAYOUT ================= */

main {
    padding-bottom: 40px;
}

/* ================= HERO ================= */

.hero {
    padding: 56px 0 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}

.kicker {
    margin: 0 0 12px;
    color: var(--muted);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.8vw, 3.05rem);
    letter-spacing: -0.3px;
    line-height: 1.08;
}

.lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--text);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

/* ================= CARDS ================= */

.card {
    border: 1px solid var(--line);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ================= SECTIONS ================= */

.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.2px;
}

.section-head .desc {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.section-link {
    white-space: nowrap;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.section-link:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

/* ================= MEDIA ================= */

.ratio {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.note {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ================= SLIDER ================= */

.slider {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.03);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.slide.is-active {
    opacity: 1;
}

.slider-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: rgba(11, 12, 16, 0.55);
    backdrop-filter: blur(10px);
}

.caption {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.slider-actions {
    display: flex;
    gap: 8px;
}

/* Keep slider controls visible on narrow screens:
   allow dots to shrink/scroll instead of pushing buttons out. */
.slider-ui > div:first-child {
    flex: 1 1 auto;
    min-width: 0; /* enables flex child to shrink */
}

.dots {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; /* small space so scrollbar (if any) doesn't overlap */
    scrollbar-width: thin;
}

.dots::-webkit-scrollbar {
    height: 6px;
}

.dots::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 999px;
}

.slider-actions {
    flex: 0 0 auto;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.icon-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.dot.is-active {
    border-color: var(--accent-strong);
    background: var(--accent-border);
}

/* ================= FOOTER ================= */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 34px 0;
    background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
    align-items: start;
}

.footer-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
    letter-spacing: -0.2px;
}

.footer-sub {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

.email {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 750;
    width: fit-content;
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.social {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.social:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.icon {
    width: 18px;
    height: 18px;
}

.footer-card .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.copyright {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ================= MOBILE ================= */

@media (max-width: 980px) {
    /* Slider: ensure next/prev buttons never get clipped on mobile */
    .slider-ui {
        gap: 8px;
        padding: 10px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dots {
        gap: 10px;
        padding-bottom: 4px;
    }


    .hero-grid {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
        position: absolute;
        top: 62px;
        right: 0;
        width: min(360px, 92vw);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: rgba(11, 12, 16, 0.92);
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav a {
        padding: 12px 12px;
    }
}

/* =========================
   SOCIAL (Linktree-style)
   ========================= */

.social-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.social-wrap {
    width: min(520px, 92vw);
}

.social-card-simple {
    border: 1px solid var(--line);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    text-align: center;
}

.social-avatar {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    display: block;
    margin: 0 auto 14px;
}

.social-name {
    margin: 0 0 8px;
    font-size: 1.6rem;
    letter-spacing: -0.2px;
}

.social-bio {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

.social-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    font-weight: 850;
    margin-bottom: 12px;
}

.social-website-btn:hover {
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
}

.social-link:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.social-foot {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================
   BIOGRAPHY PAGE
   ========================= */

.bio-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.bio-title {
    margin: 6px 0 10px;
}

.bio-paragraph {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.bio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bio-photo {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.bio-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bio-photo-caption {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: rgba(11, 12, 16, 0.55);
    backdrop-filter: blur(10px);
}

/* Mobile */
@media (max-width: 980px) {
    .bio-wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CV PAGE
   ========================= */

.cv-hero {
    padding-top: 34px;
    padding-bottom: 0;
}

.cv-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: start;
}

.cv-hero-card .cv-mini {
    margin: 0;
    padding-left: 18px;
}

.cv-inline {
    color: var(--text);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.cv-inline:hover {
    border-bottom-color: var(--accent-border);
}

.cv-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    align-items: start;
}

.cv-block h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.cv-p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.cv-item {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.cv-item:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.cv-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.cv-item h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cv-date {
    color: var(--muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.cv-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.cv-list li {
    margin: 8px 0;
}

.cv-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-chips li {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 750;
    font-size: 0.92rem;
}

.cv-links {
    display: grid;
    gap: 10px;
}

.cv-item.small h3 {
    font-size: 1rem;
}

/* Mobile */
@media (max-width: 980px) {
    .cv-hero-grid {
        grid-template-columns: 1fr;
    }
    .cv-grid {
        grid-template-columns: 1fr;
    }
    .cv-date {
        white-space: normal;
    }
}

/* =========================
   PAGE TRANSITIONS
   ========================= */

body {
    opacity: 1;
    transition: opacity 0.35s ease;
}

body.is-entering {
    opacity: 0;
}

body.is-leaving {
    opacity: 0;
}

/* =========================
   LANGUAGE TOGGLE (EN / PT-BR)
   ========================= */

.nav .lang-toggle {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 650;
    font-size: 0.95rem;
}

.nav .lang-toggle:hover {
    color: var(--text);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

/* =========================
   FIX: Section head squished on mobile
   ========================= */

.section-head {
    flex-wrap: wrap; /* permite quebrar linha quando faltar espaço */
}

.section-head > div {
    flex: 1 1 320px; /* dá largura mínima decente pro texto */
    min-width: 0; /* importante pra não "travar" o wrap */
}

.section-head .desc {
    max-width: none; /* evita limitar em telas pequenas */
}

/* Mobile: botão ocupa linha inteira */
@media (max-width: 980px) {
    .section-link {
        flex: 1 1 220px;
        width: 100%;
        text-align: center;
        padding: 12px 14px;
    }
}

/* =========================
   Biography: avatar inside text card (mobile)
   ========================= */

@media (max-width: 980px) {
    /* transforma o card em container flex vertical */
    .bio-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* esconde a div original da foto */
    .bio-photo {
        display: none;
    }

    /* cria espaço para o avatar no topo */
    .bio-text::before {
        content: "";
        width: 128px;
        height: 128px;
        border-radius: 50%;
        background-image: url("../img/biography/avatar.jpg"); /* AJUSTE SE PRECISAR */
        background-size: cover;
        background-position: center;
        border: 1px solid var(--accent-border);
        background-color: var(--accent-soft);
        box-shadow: var(--shadow);
        margin-bottom: 14px;
    }

    /* garante espaçamento correto do título */
    .bio-title {
        margin-top: 0;
    }

    .bio-actions {
        justify-content: center;
    }
}

/* celulares pequenos */
@media (max-width: 420px) {
    .bio-text::before {
        width: 112px;
        height: 112px;
    }
}

/* =========================
   PHOTO (Instagram grid)
   ========================= */

.page-title {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.3px;
    line-height: 1.08;
}

.ig-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.ig-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
    padding: 10px;
}

/* força o embed a respeitar o container */
.ig-card .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

@media (max-width: 980px) {
    .ig-grid {
        grid-template-columns: 1fr;
    }
    .ig-card {
        padding: 8px;
    }
}

/* =========================
   VIDEO (Projects + grid)
   ========================= */

.project {
    margin-top: 16px;
    padding: 18px;
}

.project-head {
    margin-bottom: 14px;
}

.project-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    letter-spacing: -0.2px;
}

.project-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
}

.video-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.video-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
    padding: 10px;
}

@media (max-width: 980px) {
    .project {
        padding: 14px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .video-card {
        padding: 8px;
    }
}

/* Steam links */
.steam-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.steam-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.steam-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* =========================
   EMO 2000s / NEOCITIES SKIN (LEGIBLE)
   - no text/content changes
   - uses existing stars.gif tile
   ========================= */

/* Fonts */
body.theme-2000s-chaos {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
    color: #f2e9ff !important;
    background-color: #000 !important;
    background-image: url("../images/stars.gif") !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-attachment: fixed !important;
    overflow-x: hidden;
}

/* CRT scanlines + subtle noise (CSS-only) */
body.theme-2000s-chaos::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.035) 0px,
        rgba(255, 255, 255, 0.035) 1px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.18;
    mix-blend-mode: overlay;
    z-index: 9998;
}

body.theme-2000s-chaos::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* faux-noise using multiple tiny gradients */
    background:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0/6px
            6px,
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 3px
            2px/7px 7px;
    opacity: 0.12;
    z-index: 9999;
}

/* Make modern smoothing less obvious */
body.theme-2000s-chaos * {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Links (old web) */
body.theme-2000s-chaos a {
    color: #b9a7ff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
body.theme-2000s-chaos a:visited {
    color: #b9a7ff !important;
}
body.theme-2000s-chaos a:hover {
    color: #ffffff !important;
    background: #3b0a45 !important;
    outline: 1px dotted #b9a7ff;
}

/* Headings: pixel/terminal-ish */
body.theme-2000s-chaos h1,
body.theme-2000s-chaos h2,
body.theme-2000s-chaos h3,
body.theme-2000s-chaos .page-title {
    font-family: "Courier New", Courier, monospace !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    color: #f2efff !important;
    text-shadow: 2px 2px 0 #000;
}

/* Global container: keep your layout but add 2000s frame */
body.theme-2000s-chaos header.site-header,
body.theme-2000s-chaos main {
    background: rgba(10, 8, 20, 0.45) !important;
    border: 3px double rgba(185, 167, 255, 0.85) !important;
    outline: 1px solid rgba(0, 0, 0, 0.9);
}

/* Add "tape/sticker corners" without images */
body.theme-2000s-chaos header.site-header,
body.theme-2000s-chaos main {
    position: relative;
}

body.theme-2000s-chaos header.site-header::before,
body.theme-2000s-chaos main::before {
    content: none !important;
}

body.theme-2000s-chaos header.site-header::after,
body.theme-2000s-chaos main::after {
    content: none !important;
}

/* Sections as "windows" */
body.theme-2000s-chaos section {
    background: rgba(6, 0, 12, 0.78) !important;
    border: 2px solid rgba(169, 139, 255, 0.55) !important;
    outline: 1px dotted rgba(185, 167, 255, 0.55);
    padding: 16px !important;
    margin: 18px 0 !important;
    position: relative;
}

/* Fake title bar for each section (no text) */
body.theme-2000s-chaos section::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    height: 18px;
    background: linear-gradient(
        90deg,
        rgba(185, 167, 255, 0.85),
        rgba(20, 0, 40, 0.95),
        rgba(169, 139, 255, 0.8)
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

/* Push section content below the bar */
body.theme-2000s-chaos section > *:first-child {
    margin-top: 10px !important;
}

/* Nav: compact, underline, with classic separators */
body.theme-2000s-chaos .nav a {
    padding: 4px 8px !important;
    margin: 2px 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.55) !important;
}
body.theme-2000s-chaos .nav a:hover {
    border-color: rgba(185, 167, 255, 0.9) !important;
}

/* Buttons (beveled) */
body.theme-2000s-chaos button,
body.theme-2000s-chaos .btn {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
    background: linear-gradient(#3b0a45, #140018) !important;
    color: #fff !important;
    border-top: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.18) !important;
    border-right: 2px solid rgba(0, 0, 0, 0.85) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.85) !important;
    padding: 8px 12px !important;
}
body.theme-2000s-chaos button:active,
body.theme-2000s-chaos .btn:active {
    transform: translateY(1px);
}

/* Images: old-web frame */
body.theme-2000s-chaos img,
body.theme-2000s-chaos iframe {
    border: 2px solid rgba(185, 167, 255, 0.35) !important;
    outline: 1px solid rgba(0, 0, 0, 0.9);
}

/* Text legibility */
body.theme-2000s-chaos p,
body.theme-2000s-chaos li {
    font-size: 17px !important;
    line-height: 1.65 !important;
    color: #f2e9ff !important;
}
body.theme-2000s-chaos .muted,
body.theme-2000s-chaos small {
    color: rgba(242, 233, 255, 0.75) !important;
}

/* (removed) decorative title stickers */
/* Reduce modern smooth scrolling */
html {
    scroll-behavior: auto !important;
}

/* =========================
   EMO 2000s – Moving Marquee Bar
   ========================= */
body.theme-2000s-chaos .y2k-marquee-bar {
    margin: 10px 0 12px;
    padding: 6px 0;
    border-top: 2px solid rgba(185, 167, 255, 0.75);
    border-bottom: 2px solid rgba(185, 167, 255, 0.75);
    background: linear-gradient(
        180deg,
        rgba(185, 167, 255, 0.3),
        rgba(75, 42, 165, 0.18)
    );
    overflow: hidden;
}

body.theme-2000s-chaos .y2k-marquee-inner {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: y2kMarquee 14s linear infinite;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    color: #f2efff;
    text-shadow: 2px 2px 0 #000;
}

@keyframes y2kMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.theme-2000s-chaos .y2k-marquee-inner {
        animation: none;
        padding-left: 0;
    }
}

/* =========================
   EMO 2000s – Sticky Header/Nav (desktop)
   ========================= */
@media (min-width: 900px) {
    body.theme-2000s-chaos header.site-header {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    /* keep content from hiding under sticky header */
    body.theme-2000s-chaos main {
        scroll-margin-top: 120px;
    }
}

@media (min-width: 900px) {
    body.theme-2000s-chaos .y2k-marquee-bar {
        position: sticky;
        top: 72px; /* sits right below header */
        z-index: 998;
    }
}

/* =========================
   EMO 2000s – Marquee visible only at top (no scroll)
   ========================= */
body.theme-2000s-chaos .y2k-marquee-bar {
    position: static !important;
}

/* =========================
   SOCIAL – remover faixas vazias dentro do frame (topo/rodapé)
   ========================= */

body.social-body.theme-2000s-chaos main.social-wrap {
    padding: 0 !important; /* mata padding do main */
}

body.social-body.theme-2000s-chaos section.social-card-simple {
    margin: 0 !important; /* encosta no topo/rodapé do main */
    width: 100% !important; /* ocupa o frame inteiro */
}

/* =========================
   GLOBAL (theme-2000s-chaos)
   Remove faixas vazias dentro do frame do MAIN
   ========================= */
body.theme-2000s-chaos main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* zera margem do primeiro e do último bloco dentro do main */
body.theme-2000s-chaos main > :first-child {
    margin-top: 0 !important;
}

body.theme-2000s-chaos main > :last-child {
    margin-bottom: 0 !important;
}

/* caso seu layout use sections com margin (como você tem) */
body.theme-2000s-chaos main > section:first-child {
    margin-top: 0 !important;
}

body.theme-2000s-chaos main > section:last-child {
    margin-bottom: 0 !important;
}


/* =========================
   SOUND CLOUD EMBED
   ========================= */

.embed { width: 100%; }

/* Better looking SoundCloud embeds */
.sc-embed {
  width: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* Keep the compact player from looking too tall on mobile */
@media (max-width: 520px) {
  .sc-embed { border-radius: 12px; }
}


/* =========================
   SOUND CLOUD PLAYLIST
   ========================= */

/* For tall SoundCloud playlist embeds */
.sc-embed.sc-playlist {
  height: 450px;
}

@media (max-width: 520px) {
  .sc-embed.sc-playlist { height: 420px; }
}
