* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bgcolor: #0a0a0a;
    --main: #1aff8c;
    --alt: #8b0000;
    --text: #e5e5e5;
    --shadows: #020202;

    --main-hover: #13cc70;
    --main-glow: rgba(26, 255, 140, 0.25);
    --alt-hover: #b30000;
    --border: #222222;
    --text-muted: #9a9a9a;

    --title: 'Base 02', sans-serif;
    --subtitle: 'Special Elite', sans-serif;
    --paragraph: 'Barlow Semi Condensed', sans-serif;
}

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--alt);
}

body {
    overflow-x: hidden;
    color: var(--text);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100dvw;
    background-color: var(--bgcolor);
    height: auto;
    font-family: var(--paragraph);
}

.bg-hero-img {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(50%);
}

.overlay {
    position: absolute;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 25%, transparent 70%);
    width: 100%;
    height: 100%;
}

.overlay2 {
    position: absolute;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, var(--bgcolor) 100%);
    width: 100%;
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
    height: auto;
    padding: 0.7rem 5rem 0.7rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(0);
    background: transparent;
    backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.logo {
    width: auto;
    display: flex;
    align-items: center;
}

.logo img {
    width: 200px;
}

.header nav {
    display: flex;
    gap: 40px;
    font-family: var(--paragraph);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header .btn-join {
    background-color: var(--alt);
}

.btn-join,
.btn-join::after {
    padding: 0.6rem 1.5rem;
    font-size: 1em;
    border: 3px solid var(--alt);
    border-radius: 1px;
    color: var(--text);
    background-color: var(--alt-hover);
    position: relative;
    transition: .1s ease;
    font-family: var(--paragraph);
    font-weight: 500;
    display: flex;
    gap: 10px;
    letter-spacing: 2px;
}

.btn-join::after {
    --move1: inset(50% 50% 50% 50%);
    --move2: inset(31% 0 40% 0);
    --move3: inset(39% 0 15% 0);
    --move4: inset(45% 0 40% 0);
    --move5: inset(45% 0 6% 0);
    --move6: inset(14% 0 61% 0);
    clip-path: var(--move1);
    content: 'ENTRAR NO ASILO';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
}

.btn-join:hover::after {
    animation: glitch_4011 1s;
    animation-timing-function: steps(2, end);
    text-shadow: -3px -3px 0px var(--alt-hover), 3px 3px 0px var(--alt);
    background-color: transparent;
    border: 3px solid var(--alt);
}

.btn-join:hover {
    text-shadow: -1px -1px 0px var(--alt-hover), 1px 1px 0px var(--alt);
    background-color: var(--alt-hover);
    border: 3px solid var(--alt-hover);
    box-shadow: 0px 10px 10px -10px var(--alt-hover);
}

@keyframes glitch_4011 {
    0% {
        clip-path: var(--move1);
        transform: translate(0px, -10px);
    }

    10% {
        clip-path: var(--move2);
        transform: translate(-10px, 10px);
    }

    20% {
        clip-path: var(--move3);
        transform: translate(10px, 0px);
    }

    30% {
        clip-path: var(--move4);
        transform: translate(-10px, 10px);
    }

    40% {
        clip-path: var(--move5);
        transform: translate(10px, -10px);
    }

    50% {
        clip-path: var(--move6);
        transform: translate(-10px, 10px);
    }

    60% {
        clip-path: var(--move1);
        transform: translate(10px, -10px);
    }

    70% {
        clip-path: var(--move3);
        transform: translate(-10px, 10px);
    }

    80% {
        clip-path: var(--move2);
        transform: translate(10px, -10px);
    }

    90% {
        clip-path: var(--move4);
        transform: translate(-10px, 10px);
    }

    100% {
        clip-path: var(--move1);
        transform: translate(0);
    }
}

.header nav a {
    font-size: 1.1em;
    color: #ccc;
    font-family: var(--paragraph);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: #1aff8c;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header nav a:hover {
    color: #fff;
}

.header nav a:hover::after {
    width: 100%;
    left: 0;
}

.header nav a.active {
    color: #1aff8c;
}

.header nav a.active::after {
    width: 100%;
    left: 0;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #E5E5E5;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.9));
}

.glitch-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(0deg,
            var(--main) 0px,
            var(--main-hover) 50px,
            transparent 1px,
            transparent 3px);
    mix-blend-mode: overlay;
    animation: glitchFlicker 0.15s infinite;
}

@keyframes glitchFlicker {
    0% {
        opacity: 0.05;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        opacity: 0.05;
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: 2;
    opacity: 0;
}

.hero.glitch-active::before {
    animation: glitchShift 0.3s;
}

@keyframes glitchShift {
    0% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
        opacity: 0.2;
    }

    20% {
        transform: translate(-10px, 5px);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(10px, -5px);
        filter: hue-rotate(-90deg);
    }

    60% {
        transform: translate(-5px, 2px);
    }

    80% {
        transform: translate(5px, -2px);
    }

    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}

.rec-overlay {
    width: 40%;
    z-index: -1;
    position: absolute;
    height: auto;
    opacity: 0.3;
}

.hero article {
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 5rem;
    text-align: left;
    gap: 0.4rem;
}

.hero article img {
    width: 50%;
}

.hero article h4 {
    font-size: 1.3em;
    letter-spacing: 2px;
    font-weight: 500;
    margin-left: 1rem;
    margin-top: 1rem;
}

.hero article .btns {
    font-weight: 400;
    margin-left: 1rem;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.hero article .btns a {
    position: relative;
    border: 2px solid var(--main);
    border-radius: 2px;
    padding: 1rem 1.5rem;
    color: var(--text);
    overflow: hidden;
    transition: 0.3s ease;
    letter-spacing: 1px;
}

.hero article .btns a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.hero article .btns a:hover {
    color: #000;
    box-shadow: 0 0 10px var(--main-glow), 0 0 20px var(--main-glow);
}

.hero article .btns a:hover::before {
    transform: scaleX(1);
}

.hero article .btns a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent, transparent 2px, rgba(0, 0, 0, 0.2) 3px);
    opacity: 0;
    transition: 0.2s;
}

.hero article .btns a:hover::after {
    opacity: 1;
}

.glitch-img {
    position: relative;
    display: block;
}

.glitch-img-wrap {
    position: relative;
    width: fit-content;
}

.glitch-img-wrap::before,
.glitch-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/img/title-hero.png');
    background-size: 50% 100%;
    background-repeat: no-repeat;
}

.glitch-img-wrap::before {
    filter: hue-rotate(180deg) saturate(2);
    mix-blend-mode: screen;
    animation: glitch-img-top 4s infinite linear;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-img-wrap::after {
    filter: hue-rotate(90deg) saturate(2);
    mix-blend-mode: screen;
    animation: glitch-img-bottom 4s infinite linear;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-img-top {

    0%,
    88%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    90% {
        transform: translate(-6px, -2px);
        opacity: 1;
    }

    92% {
        transform: translate(6px, 2px);
        opacity: 1;
    }

    94% {
        transform: translate(-3px, 0);
        opacity: 1;
    }

    96% {
        transform: translate(3px, -1px);
        opacity: 1;
    }

    98% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-img-bottom {

    0%,
    88%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    91% {
        transform: translate(6px, 2px);
        opacity: 1;
    }

    93% {
        transform: translate(-6px, -2px);
        opacity: 1;
    }

    95% {
        transform: translate(3px, 1px);
        opacity: 1;
    }

    97% {
        transform: translate(-3px, 0);
        opacity: 1;
    }

    99% {
        transform: translate(0);
        opacity: 0;
    }
}

/* ===================== NEWS + HQS ===================== */

.news-hqs {
    display: flex;
    gap: 0px;
}

.news-hqs>article {
    position: relative;
    width: fit-content;
    margin-left: 3rem;
}

.news-hqs>aside {
    padding: 2rem 1.5rem 2rem 1.5rem;
    width: 100%;
    margin-right: 3rem;
}

#noticias {
    width: fit-content;
    padding: 2rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

#noticias h1 {
    font-family: var(--paragraph);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.carrossel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    max-width: 100%;
    flex: 1;
}

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

.carrossel::-webkit-scrollbar-thumb {
    background: var(--main);
}

.carrossel .card {
    min-width: 20%;
    scroll-snap-align: start;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    transition: 0.3s;
    flex: 0 0 300px;
    max-width: 250px;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.3s;
    cursor: default;
}

.card:hover {
    border-color: var(--main);
    box-shadow: 0 0 15px var(--main-glow);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: 0.3s;
}

.card:hover img {
    filter: brightness(1);
}

.card .date {
    font-size: 0.7em;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card h4 {
    font-size: 0.95em;
    line-height: 1.3;
}

.card p {
    font-size: 0.85em;
    color: var(--text-muted);
    flex: 1;
}

.card a {
    margin-top: auto;
    font-size: 0.8em;
    color: var(--main-hover);
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.card a:hover {
    text-shadow: 0 0 10px var(--main-glow);
    color: var(--main);
}

.card a>i {
    position: relative;
    top: 1px;
    transition: transform .2s ease;
    font-size: 1.5em;
}

.card a:hover>i {
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

/* ===================== HQs ASIDE ===================== */

#hqs {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid var(--main-glow);
    padding-bottom: 0.7rem;
    overflow: visible;
}

.header-alt h1 {
    font-family: var(--paragraph);
    letter-spacing: 2px;
}

.center {
    position: relative;
    width: fit-content;
    height: 100%;
}

.header-alt nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
}

.header-alt nav>a {
    color: var(--text-muted);
}

.header-alt nav>a:hover {
    color: var(--text)
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(5px);
    }
}

.header-alt a {
    font-size: 0.9em;
    color: var(--main-hover);
    display: flex;
    letter-spacing: 1px;
    font-weight: 400;
    align-items: center;
    transition: all .2s ease;
}

.header-alt a:hover {
    color: var(--main);
}

.header-alt a:hover>i {
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

.header-alt a>i {
    position: relative;
    transition: transform .2s ease;
    font-size: 1.6em;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    height: 75%;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #aaa;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    flex-shrink: 0;
    font-size: 18px;
}

.slider-btn:hover {
    border-color: var(--main);
    color: var(--main);
    box-shadow: 0 0 8px var(--main-glow);
}

.slides-track-wrap {
    overflow: hidden;
    flex: 1;
    padding: 0 8px;
}

.slides-track {
    display: flex;
    gap: 12px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.slide {
    flex: 0 0 calc(25% - 9px);
    cursor: pointer;
    position: relative;
}

.slide img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    filter: brightness(.55) saturate(.7);
    transition: .3s;
    border: 2px solid transparent;
}

.slide.active img {
    filter: brightness(.95) saturate(1);
    border-color: var(--main);
    box-shadow: 0 0 14px var(--main-glow);
}

.slide:hover img {
    filter: brightness(.8) saturate(.9);
}

.slide-num {
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: .75rem;
    color: var(--main);
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.6);
    width: 20px;
    height: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    font-family: var(--paragraph);
}

.slide-info {
    margin-top: 1rem;
    padding: 0 28px;
}

.slide-info h3 {
    font-size: .9rem;
    color: var(--text);
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.slide-info p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: .9rem;
}

.btn-ler {
    border: 2px solid var(--main);
    padding: .5rem 2rem;
    font-size: .9em;
    color: var(--text);
    letter-spacing: 0px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    font-family: var(--paragraph);
    transition: .2s;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn-ler::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    z-index: -1;
}

.btn-ler:hover {
    color: #000;
    box-shadow: 0 0 12px var(--main-glow);
}

.btn-ler:hover::before {
    transform: scaleX(1);
}

/* ===================== JOGOS + TRAILER ===================== */

.games-trailer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 5rem;
}

#jogos {
    display: flex;
    flex-direction: column;
}

.carrossel-jogos {
    padding: 0.8rem;
    display: flex;
    gap: 1.5%;
}

.games-trailer aside {
    background: #000;
    border: 1px solid var(--border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.games-trailer h3 {
    color: var(--text-muted);
}

.games-trailer iframe {
    width: 100%;
    height: 100%;
    border: 5px solid var(--border);
}

.carrossel-jogos .card.active {
    border-color: var(--main);
    box-shadow: 0 0 15px var(--main-glow);
}

.carrossel-jogos .card.active img {
    filter: brightness(1);
}

.trailer-track-wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.trailer-track {
    display: flex;
    flex-direction: row;
    /* adicione isso explicitamente */
    height: 100%;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.trailer-track iframe {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.trailer-track iframe.active {
    pointer-events: all;
}

/* ===================== GALERIA ===================== */


.galeria {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 40px 5rem;
    align-items: flex-start;
}

.galeria.open {
    grid-template-columns: 60fr 40fr;
    gap: 20px;
}

#galeria {
    width: 100%;
    flex-shrink: 0;
    transition: width 0.4s ease;
}

.galeria.open #galeria {
    width: 60%;
}

.grade-galeria {
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.linha {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.linha img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: 0.3s;
    cursor: pointer;
    display: block;
}

.linha img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

.linha img.selected {
    filter: brightness(1);
    outline: 2px solid var(--main);
    box-shadow: 0 0 12px var(--main-glow);
    transform: scale(1.05);
}

.galeria.open .linha img {
    height: 70px;
}

/* ===================== VISUALIZADOR ===================== */

.galeria-viewer {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 40%;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.galeria.open .galeria-viewer {
    display: flex;
}

.viewer-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.viewer-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.viewer-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    z-index: 5;
}

.viewer-close:hover {
    border-color: var(--alt);
    color: var(--alt);
}

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

.viewer-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #aaa;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    flex-shrink: 0;
    font-size: 20px;
}

.viewer-btn:hover {
    border-color: var(--main);
    color: var(--main);
    box-shadow: 0 0 8px var(--main-glow);
}

.viewer-thumbs-wrap {
    overflow: hidden;
    flex: 1;
}

.viewer-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.viewer-thumb {
    flex: 0 0 calc(25% - 5px);
    width: calc(25% - 5px);
    aspect-ratio: 1;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.6);
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
    display: block;
}

.viewer-thumb:hover {
    filter: brightness(0.8);
}

.viewer-thumb.active {
    filter: brightness(1);
    border-color: var(--main);
    box-shadow: 0 0 8px var(--main-glow);
}

.viewer-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-align: right;
    flex-shrink: 0;
}

.viewer-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.viewer-btn-icon {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.viewer-btn-icon:hover {
    border-color: var(--main);
    color: var(--main);
    box-shadow: 0 0 8px var(--main-glow);
}

/* Fullscreen overlay */

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: background 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.open {
    background: rgba(0, 0, 0, 0.95);
    visibility: visible;
    pointer-events: all;
}

.fullscreen-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--border);
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: 0.2s;
    z-index: 1000;
}

.fullscreen-close:hover {
    border-color: var(--alt);
    color: var(--alt);
}

.fullscreen-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

.fullscreen-nav button {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: 0.2s;
}

.fullscreen-nav button:hover {
    border-color: var(--main);
    color: var(--main);
}

.fullscreen-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    min-width: 50px;
    text-align: center;
}

@keyframes overlay-fade {
    from {
        background: rgba(0, 0, 0, 0);
    }

    to {
        background: rgba(0, 0, 0, 0.95);
    }
}

.fullscreen-overlay.open img {
    transform: scale(1);
    opacity: 1;
}

.fullscreen-overlay img.switching {
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================== SOBRE ===================== */

.sobre {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    padding: 40px 2rem;
    border: 1px solid var(--border);
    margin: 0 5rem;
}

#sobre {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid var(--border);
}

#sobre h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 700;
}

#sobre p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

#sobre a {
    display: inline-block;
    border: 2px solid var(--main);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text);
    width: fit-content;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}

#sobre a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: -1;
}

#sobre a:hover {
    color: #000;
    box-shadow: 0 0 12px var(--main-glow);
}

#sobre a:hover::before {
    transform: scaleX(1);
}

/* Timeline aside */

.sobre aside {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.sobre aside img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) sepia(0.3);
    z-index: 0;
}

.sobre aside h2 {
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--text);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--main-glow);
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.circle-dot {
    position: absolute;
    left: -2px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main);
    box-shadow: 0 0 6px var(--main-glow);
    flex-shrink: 0;
}

.timeline-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
}

.timeline-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.sobre aside .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.sobre aside h2,
.sobre aside .timeline {
    position: relative;
    z-index: 2;
}

/* ===================== FOOTER ===================== */
.footer {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 3rem 5rem;
    background: #050505;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.footer video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: 0;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 50%, #000 100%);
    z-index: 1;
}

.footer>* {
    position: relative;
    z-index: 2;
}

/* Brand */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-brand img {
    width: 70px;
    opacity: 0.85;
    filter: grayscale(1) brightness(1.2);
    transition: 0.3s;
}

.footer-brand span {
    font-size: 0.85em;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.footer-brand small {
    font-size: 0.7em;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Nav */

.footer nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer nav h4 {
    font-family: var(--subtitle);
    margin-bottom: 8px;
    color: var(--main);
    font-weight: 200;
    letter-spacing: 2px;
    font-size: 0.8em;
}

.footer nav a {
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 0.85em;
}

.footer nav a:hover {
    color: var(--main);
    transform: translateX(5px);
}

/* Social */

.social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social h4 {
    color: var(--main);
    font-family: var(--subtitle);
    letter-spacing: 2px;
    font-weight: 200;
    font-size: 0.8em;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.1em;
    transition: 0.3s;
}

.social a:hover {
    border-color: var(--main);
    color: var(--main);
    box-shadow: 0 0 10px var(--main-glow);
}

/* Disclaimer */

.disclaimer h4 {
    color: var(--main);
    font-family: var(--subtitle);
    margin-bottom: 8px;
    font-weight: 200;
    font-size: 0.8em;
    letter-spacing: 2px;
}

.disclaimer p {
    font-size: 0.78em;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sistema Murkoff */

.murkoff-system {
    border: 1px solid var(--main-glow);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(26, 255, 140, 0.03);
}

.murkoff-system h4 {
    font-size: 0.85em;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text);
}

.murkoff-system .status {
    font-size: 0.8em;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.murkoff-system .status span {
    color: var(--main);
    font-weight: 700;
}

/* ECG */

.ecg {
    width: 100%;
    height: 40px;
    overflow: visible;
}

.ecg-line {
    fill: none;
    stroke: var(--main);
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: ecg-draw 2s linear infinite;
    filter: drop-shadow(0 0 3px var(--main));
}

@keyframes ecg-draw {
    0% {
        stroke-dashoffset: 300;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Responsive */

@media (max-width: 900px) {
    .footer {
        grid-template-columns: 1fr 1fr;
        padding: 40px 2rem;
    }
}

@media (max-width: 600px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.2s;
}

@media screen {
    .header.hide {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.hero video,
.footer video {
    pointer-events: none;
}