:root {
    --brand-neon: #f03e6e;
    --brand-teal: #4dd9c0;
    --brand-yellow: #f5c518;
    --bg-black: #000000;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- ORIGINAL UTILITIES --- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.neon-bg {
    background-color: var(--brand-neon);
}

.neon-text {
    color: var(--brand-neon);
}

.neon-border {
    border: 1px solid rgba(240, 62, 110, 0.3);
}

.font-display {
    font-family: var(--font-display);
}

.uppercase {
    text-transform: uppercase;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 80px;
    width: auto;
}

.nav-button {
    background: none;
    color: white;
    border: 1px solid rgba(240, 62, 110, 0.6);
    background: rgba(240, 62, 110, 0.1);
    padding: 0.85rem 1.15rem;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    white-space: nowrap;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
    background: rgba(77, 217, 192, 0.16);
    border-color: rgba(77, 217, 192, 0.7);
  /* transform: translateY(-1px); */
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, var(--bg-black) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 0.85;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 1;
}

.btn-main {
    background: var(--brand-neon);
    color: white;
    border: none;
    padding: 1.1rem 2.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    transition: all 0.3s ease;
}

/* --- BANNER SECTION --- */
.banner {
    padding: 9rem 1.5rem;
    text-align: center;
    background: var(--bg-black);
    position: relative;
}

.banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.banner p {
    color: var(--brand-neon);
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

/* --- RESERVATION FORM --- */
.reservation {
    padding: 10rem 1.5rem;
    background: linear-gradient(to bottom, #000000, #12112a);
    position: relative;
    text-align: center;
    scroll-margin-top: 120px;
}

.glow-teal {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: rgba(77, 217, 192, 0.1);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.form-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

input {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem;
    color: white;
    margin-bottom: 1rem;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--brand-neon);
}

/* Botão de submissão do formulário*/
.btn-submit {
    width: 100%;
    color: #12112a; /* Keeping text dark for readability against the neon background */
    border: none;
    padding: 1.1rem;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
  transition:
    opacity 0.3s,
    transform 0.2s;
    position: relative;
    background-color: transparent;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Base para os pseudoelementos */
.btn-submit:before,
.btn-submit:after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    left: 0;
    /* BLUE is now the main background color */
    background: var(--brand-teal);
  transition:
    transform 0.1s ease-in-out,
    filter 0.1s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.btn-submit:before {
    top: 0;
    bottom: 50%;
    transform: translateX(4px);
    /* Yellow shadow creates the offset effect against the blue body */
    filter: drop-shadow(4px 0px 0px #f03e6e);
}

.btn-submit:after {
    top: 50%;
    bottom: 0;
    /* Start offset to the left with glow */
    transform: translateX(-4px);
    filter: drop-shadow(-4px 0px 0px #f1c40f);
}

/* Hover state: Reset to center and remove glow */
.btn-submit:hover:before,
.btn-submit:hover:after {
    transform: translateX(0);
    filter: drop-shadow(0 0 0 transparent);
}

/* --- ANIMATIONS --- */
[data-fade] {
    opacity: 0;
    transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-fade].visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* --- FOOTER --- */
.icon {
  width: 40px;
  height: 40px;
  display: flex;
  border-radius: 100%;
  padding: 2px;
  margin: 10px;
  cursor: pointer;
}

.icon:hover {
  /* Gerado para atingir exatamente #f03e6e */
  filter: brightness(0) saturate(100%) invert(79%) sepia(100%) saturate(301%) hue-rotate(93deg) brightness(88%) contrast(93%);
}

.social-item {
  display: inline-block;
  text-decoration: none;
  fill: var(--brand-neon);
}

footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1000px;
    margin: 0 auto;
    display: flex;
  justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom-content {
    align-content: center;
    justify-content: center;
    margin-top: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  opacity: 0.3;
  font-size: 0.8rem;
}

/* Botão principal */
.btn-main {
    position: relative;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Base para os pseudoelementos */
.btn-main:before,
.btn-main:after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    left: 0;
    background: var(--brand-neon, #333);

    /* Smooth transition back to original state */
  transition:
    transform 0.1s ease-in-out,
    filter 0.1s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.btn-main:before {
    top: 0;
    bottom: 50%;
    /* Start offset to the right with glow */
    transform: translateX(4px);
    filter: drop-shadow(4px 0px 0px #4dd9c0);
}

.btn-main:after {
    top: 50%;
    bottom: 0;
    /* Start offset to the left with glow */
    transform: translateX(-4px);
    filter: drop-shadow(-4px 0px 0px #f1c40f);
}

/* Hover state: Reset to center and remove glow */
.btn-main:hover:before,
.btn-main:hover:after {
    transform: translateX(0);
    filter: drop-shadow(0 0 0 transparent);
}

/* --- CAROUSEL CONTAINER --- */

.arena-section {
    padding: 100px 0;
    background-color: #000000;
}

.arena-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 24px;
}

.arena-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.arena-subtitle {
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.neon-text {
    color: #f03e6e;
}

.arena-carousel {
    display: flex;
    gap: 1.5rem; /* The space between cards */
    overflow-x: auto;
    padding: 2rem 55px 2rem 30px;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Centering on large screens if there are fewer than 3 cards */
    max-width: 1400px;
    margin: 0 auto;
    scroll-behavior: smooth; /* Smooths out the jumps */
    cursor: grab;
    user-select: none; /* Prevents highlighting text while dragging */
    touch-action: pan-x;
}

.arena-carousel.active {
    cursor: grabbing;
    scroll-behavior: auto; /* We disable smooth scroll during the drag for real-time tracking */
    scroll-snap-type: none;
}

.arena-carousel::-webkit-scrollbar {
    display: none;
}

.arena-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.arena-carousel-button {
    width: 52px;
    height: 52px;
    /* border-radius: 999px; */
    border: 1px solid rgba(240, 62, 110, 0.5);
    background: var(--brand-neon);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.arena-carousel-button span {
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-1px);
}

.arena-carousel-button:hover,
.arena-carousel-button:focus-visible {
    border-color: rgba(77, 217, 192, 0.8);
    background: var(--brand-teal);
    /* color: var(--brand-teal); */
    transform: translateY(-1px);
}

/* --- CARD WRAPPER --- */
.game-card-wrapper {
    border-radius: 10%;
    position: relative;
    width: 420px;
    min-width: 420px;
    height: 400px;
    flex-shrink: 0;
    cursor: pointer;

    /* Mobile: Shows mostly 1 card */
    width: 85%;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 96px;
    }

    nav {
        height: 88px;
    }

    .nav-content {
        padding: 0 16px;
    }

    .nav-logo {
        height: 60px;
    }

    .nav-button {
        padding: 0.78rem 0.95rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero {
        min-height: auto;
        padding: 112px 18px 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(2.2rem, 14vw, 4rem);
        margin-bottom: 1.25rem;
    }

    .hero-p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .btn-main {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
        letter-spacing: 0.1em;
    }

    .banner {
        padding: 4.5rem 1.25rem;
    }

    .banner p {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .arena-section {
        padding: 72px 0;
    }

    .arena-header {
        margin-bottom: 28px;
        padding: 0 18px;
    }

    .arena-carousel {
        gap: 1rem;
        padding: 1rem 18px 2rem;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        -webkit-overflow-scrolling: touch;
    }

    .game-card-wrapper {
        width: 86vw;
        min-width: 86vw;
        height: 360px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .card-content {
        padding: 1.25rem 1.25rem 1.35rem;
        min-height: 48%;
    }

    .card-title,
    .card-description {
        max-width: 100%;
    }

    .glitch {
        font-size: 1.35rem;
    }

    .card-description {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .reservation {
        padding: 6rem 1.25rem;
        scroll-margin-top: 96px;
    }

    .glow-teal {
        width: 520px;
        height: 520px;
        filter: blur(90px);
    }

    .form-card {
        max-width: 100%;
    }

    footer {
        padding: 2.5rem 1.25rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

@media (max-width: 399px) {
    html {
        scroll-padding-top: 88px;
    }

    nav {
        height: 82px;
    }

    .nav-content {
        padding: 0 12px;
        gap: 0.75rem;
    }

    .nav-logo {
        height: 52px;
    }

    .nav-button {
        min-height: 42px;
        padding: 0.68rem 0.82rem;
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .hero {
        padding: 102px 14px 34px;
    }

    h1 {
        font-size: clamp(1.9rem, 13vw, 3rem);
        line-height: 0.92;
    }

    .hero-p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-main {
        padding: 0.92rem 1rem;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .banner {
        padding: 3.5rem 1rem;
    }

    .banner h2 {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }

    .banner p {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .arena-header {
        padding: 0 14px;
        margin-bottom: 22px;
    }

    .arena-subtitle {
        font-size: 0.96rem;
    }

    .arena-carousel {
        padding: 0.85rem 14px 1.75rem;
        scroll-padding-inline: 14px;
    }

    .game-card-wrapper {
        width: 88vw;
        min-width: 88vw;
        height: 340px;
    }

    .card-content {
        padding: 1rem 1rem 1.15rem;
        min-height: 46%;
    }

    .glitch {
        font-size: 1.18rem;
    }

    .card-description {
        font-size: 0.79rem;
        line-height: 1.4;
    }

    .reservation {
        padding: 5rem 2rem;
        scroll-margin-top: 88px;
    }

    .reservation h2 {
        font-size: clamp(1.9rem, 10vw, 2.7rem) !important;
    }

    .reservation p {
        margin-bottom: 2.5rem !important;
        font-size: 0.94rem;
    }

    input,
    .btn-submit {
        padding: 1rem;
    }

    footer {
        padding: 2.2rem 1rem;
    }

    .footer-content img {
        max-width: 140px;
        height: auto !important;
    }

    .footer-bottom-content {
        margin-top: 28px;
        gap: 1rem;
    }
}

.arena-carousel.active .game-card-wrapper {
    pointer-events: none;
}

/* Desktop: Precisely 3 cards visible */
@media (min-width: 1024px) {
    .game-card-wrapper {
        /**
         * Formula: (100% / 3 cards) - (total gap space / 3)
         * Since we have 2 gaps between 3 cards: 1.5rem * 2 = 3rem
         */
        width: calc((100% / 3) - (3rem / 3));
        min-width: 400px;
    }
}

/* --- MAIN CARD --- */
.card-main {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000000 100%, #12112a 100%);
    border: 1px solid var(--bg-black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.game-card-wrapper:hover .card-main {
    border-color: var(--brand-teal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- IMAGE & CONTENT --- */
.card-img-box {
    position: absolute;
    inset: 0;
    height: 60%;
    overflow: hidden;
    z-index: 1;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #12112a, transparent);
}

/* --- CONTENT --- */
.card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 3rem 2.2rem 1.75rem;
    display: flex;
    flex-direction: column;
    min-height: 50%;
    background: linear-gradient(to top, #000000, #12112a);
}

.card-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    max-width: 85%;
}

.card-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 88%;
}

.grab-scroll {
    cursor: grab;
    user-select: none; /* Prevents selecting text while dragging */
}

.grab-scroll:active {
    cursor: grabbing;
}

/* ---------- GLITCH EFFECT ---------- */
.glitch {
    position: relative;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.8rem; /* Adjusted from 130px for the card */
    margin: 0;
    text-decoration: none;
}

/* 2. Layer Setup */
.glitch:before,
.glitch:after {
    display: block;
    content: attr(data-text); /* Grabs text from the HTML attribute */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.8;
}

.glitch:after {
    color: var(--brand-teal);
    z-index: -2;
}

.glitch:before {
    color: var(--brand-neon);
    z-index: -1;
}

/* 3. The Hover Effect - Only glitches when the parent card is hovered */
.game-card-wrapper:hover .glitch:before {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.game-card-wrapper:hover .glitch:after {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

/* 4. Glitch Keyframes */
@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.arena-mobile-hint {
    display: none;
}

@media (max-width: 767px) {
    .nav-content {
        padding: 0 16px;
        gap: 0.875rem;
    }

    .nav-button {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content {
        max-width: 560px;
        padding: 0 2px;
    }

    .arena-mobile-hint {
        display: block;
        margin-top: 0.9rem;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .arena-carousel {
        gap: 1rem;
        padding: 1rem 18px 2rem 18px;
        scroll-padding-inline: 18px;
    }

    .arena-carousel-nav {
        margin-top: 0.35rem;
    }

    .arena-carousel-button {
        width: 46px;
        height: 46px;
    }

    .game-card-wrapper {
        width: clamp(248px, 78vw, 304px);
        min-width: clamp(248px, 78vw, 304px);
        height: 360px;
    }

    .card-img-box {
        height: 56%;
    }

    .card-content {
        padding: 1.15rem 1.15rem 1.25rem;
        min-height: 44%;
    }

    .card-title,
    .card-description {
        max-width: 100%;
    }

    .glitch {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .reservation {
        padding: 5.5rem 1.2rem;
    }

    .form-card {
        max-width: 100%;
    }
}

@media (max-width: 399px) {
    .nav-button {
        max-width: 44vw;
    }

    .hero-content {
        padding: 0;
    }

    .arena-mobile-hint {
        font-size: 0.68rem;
    }

    .arena-carousel {
        padding: 0.85rem 14px 1.6rem 14px;
        scroll-padding-inline: 14px;
    }

    .arena-carousel-button {
        width: 42px;
        height: 42px;
    }

    .arena-carousel-button span {
        font-size: 1.65rem;
    }

    .game-card-wrapper {
        width: min(80vw, 284px);
        min-width: min(80vw, 284px);
        height: 338px;
    }

    .card-content {
        padding: 1rem 1rem 1.15rem;
    }

    .glitch {
        font-size: 1.16rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .reservation {
        padding: 5rem 1rem;
    }
}