/* RESET */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

body {
    font-family: 'VT323', monospace;
  background: #000;
    color: #fff;
    line-height: 1.6;
    font-size: 18px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    border-bottom: 1px solid #222;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.4em;
    text-decoration: none;
    font-weight: bold;
}

.nav-links li {
    list-style: none;
    display: inline-block;
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 120px;
    text-align: center;
    background: radial-gradient(circle at top, #111, #000);
}

.game-subtitle {
    font-size: 1.4em;
    opacity: 0.8;
    margin-bottom: 20px;
}

.game-description {
    max-width: 700px;
    margin: auto;
    font-size: 1.1em;
    opacity: 0.85;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
}

.primary {
    background: #171a2e;
    color: #fff;
}

/* LOGO */
.game-logo {
    max-width: 420px;
    width: 90%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(230,57,70,0.35));
}

/* TRAILER */
.trailer-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.trailer-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.trailer-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* SEÇÕES */
.section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.section-text {
    max-width: 800px;
    opacity: 0.85;
}

/* FEATURES */
.features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #111;
    padding: 24px;
    border-radius: 8px;
}

/* EQUIPE */
.dark {
    background: #0a0a0a;
}

.team-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.team-card {
    background: #111;
    padding: 24px;
    border-radius: 8px;
}

.team-card span {
    display: block;
    margin: 8px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

/* FOOTER */
.footer {
    background: #000;
    border-top: 1px solid #222;
    text-align: center;
    padding: 24px;
    font-size: 0.9em;
}

.footer a {
    color: #e63946;
    text-decoration: none;
}
/* =========================
   CRT EFFECT
========================= */

.crt {
    position: relative;
    overflow: hidden;
}

/* Scanlines */
.crt::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.03) 50%,
            rgba(0, 0, 0, 0.03) 50%
        );
    background-size: 100% 3px;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Glow + vignette */
.crt::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,0.05) 0%,
            rgba(0,0,0,0.45) 70%,
            rgba(0,0,0,0.8) 100%
        );
    z-index: 9998;
}

/* Subtle flicker */
@keyframes crt-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.97; }
    100% { opacity: 1; }
}

.crt {
    animation: crt-flicker 0.12s infinite;
}

/* Slight blur + color bleed */
.crt * {
    text-shadow:
        0.5px 0 rgba(255,0,0,0.15),
       -0.5px 0 rgba(0,255,255,0.15);
}
/* ================================
   GLITCH / CRT TEXT EFFECT
   ================================ */

.glitch-text {
    position: relative;
    color: #e6e6e6;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 
        0 0 6px rgba(0, 255, 170, 0.25),
        0 0 12px rgba(0, 255, 170, 0.15);
    animation: glitch-flicker 4s infinite;
}

/* Camadas duplicadas */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

/* Camada vermelha */
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff004c;
    animation: glitch-before 2.5s infinite linear alternate-reverse;
}

/* Camada ciano */
.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 #00fff0;
    animation: glitch-after 3s infinite linear alternate-reverse;
}

/* Flicker geral CRT */
@keyframes glitch-flicker {
    0%, 100% { opacity: 1; }
    97% { opacity: 1; }
    98% { opacity: 0.85; }
    99% { opacity: 0.95; }
}

/* Animação camada vermelha */
@keyframes glitch-before {
    0%   { clip-path: inset(0 0 90% 0); }
    20%  { clip-path: inset(10% 0 60% 0); }
    40%  { clip-path: inset(40% 0 40% 0); }
    60%  { clip-path: inset(80% 0 5% 0); }
    80%  { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(0 0 90% 0); }
}

/* Animação camada ciano */
@keyframes glitch-after {
    0%   { clip-path: inset(85% 0 5% 0); }
    20%  { clip-path: inset(60% 0 20% 0); }
    40%  { clip-path: inset(30% 0 50% 0); }
    60%  { clip-path: inset(10% 0 70% 0); }
    80%  { clip-path: inset(40% 0 40% 0); }
    100% { clip-path: inset(85% 0 5% 0); }
}

/* Opcional: efeito de scanline leve */
.glitch-text {
    background-image: linear-gradient(
        rgba(255,255,255,0.03) 1px,
        transparent 1px
    );
    background-size: 100% 3px;
}
