﻿/* ============================================
   RESET & BASE
   ============================================ */
body, nav ul {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    overflow-x: hidden;
    overflow-y: auto;
}

::-webkit-scrollbar {
    display: none;
}

/* ============================================
   HEADER (LOGO + NAV LATERAL)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 20px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    background: 0 0;
    z-index: 5;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.logo {
    width: 130px;
    margin-left: 0;
    transition: transform .5s;
    opacity: 0;
    animation: .8s ease-out .15s forwards fadeInDown;
}

.logo:hover {
    transform: rotate(360deg);
}

/* NAV vertical no desktop */
nav {
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

nav ul li {
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: .6s ease-out forwards fadeInDown;
}

nav ul li a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg) translateZ(0);
    transform-origin: center center;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 2px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transition: transform .3s;
    transform-origin: right;
    transform: scaleX(0);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ia, .pages {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #fff 0, #d3d3d3 25%, #000 50%, #c7c7c7 75%, #292929 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    animation: 5s linear infinite rgbAnimation;
    text-shadow: 0 0 12px rgba(255, 255, 255, .5);
}

nav ul li:first-child  { animation-delay: .2s; }
nav ul li:nth-child(2) { animation-delay: .3s; }
nav ul li:nth-child(3) { animation-delay: .4s; }
nav ul li:nth-child(4) { animation-delay: .5s; }
nav ul li:nth-child(5) { animation-delay: .6s; }

/* ============================================
   VÍDEO DE FUNDO
   ============================================ */
#background-video, .overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
}

#background-video {
    width: 100%;
    object-fit: cover;
    z-index: -3;
    transform: translateZ(0);
    will-change: opacity;
    animation: 1.5s ease-out forwards fadeIn;
}

.overlay {
    width: 100%;
    background: rgba(0, 0, 0, .72);
    z-index: -2;
    animation: 1.5s ease-out .1s forwards fadeIn;
}

/* ============================================
   PERSONAGEM CENTRAL
   ============================================ */
.character-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.character-img {
    display: block;
    height: 100vh;
    max-height: none;
    width: auto;
    opacity: 0;
    animation: 1s ease-out .4s forwards fadeInUp;
}

/* ============================================
   TEXTO CENTRAL "Vk Store"
   ============================================ */
.text-container {
    position: absolute;
    top: 45%;
    left: 51%;
    transform: translate(-50%, -50%);
    z-index: 0;
    text-align: center;
    max-width: 90vw;
}

.center-text {
    -webkit-text-fill-color: transparent;
    font-family: Kanit, sans-serif;
    font-size: min(8vw, 100px) !important;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    background: linear-gradient(90deg, #fff 0, #d3d3d3 25%, #181818 50%, #c7c7c7 75%, #292929 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    opacity: 0;
    animation: 5s linear infinite rgbAnimation, .8s ease-out .35s forwards fadeInDown;
}

/* ============================================
   BOTÃO DISCORD
   ============================================ */
.discord-button-container {
    position: absolute;
    top: calc(45% + 58px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.discord-button {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: radial-gradient(circle at center, #1c1c1c, #0f0f0f, #0a0a0a);
    background-size: 300% 300%;
    font-size: 20px;
    padding: 12px 28px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(255, 255, 255, .08), inset 0 0 12px rgba(255, 255, 255, .04);
    opacity: 0;
    animation: .8s ease-out .5s forwards fadeInUp;
}

.discord-button::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    filter: blur(18px);
    opacity: .45;
    animation: 8s linear infinite spinHalo;
}

.discord-button i {
    font-size: 22px;
}

.discord-text {
    display: inline-block;
}

.discord-arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-width: 1.5;
    transition: transform .3s;
}

.discord-button:hover .discord-arrow {
    transform: translateX(3px);
}

/* ============================================
   LINKS SOCIAIS (canto inferior direito)
   ============================================ */
.social-links-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 26px;
    opacity: 0;
    animation: .8s ease-out .7s forwards fadeInUp;
}

.social-link {
    font-size: 25px;
    color: rgba(255, 255, 255, .829);
    text-decoration: none;
    transition: color .3s, transform .2s;
}

.social-link.discord:hover  { color: #7289da; }
.social-link.youtube:hover  { color: red; }
.social-link.tiktok:hover   { color: #ff0050; }
.social-link.linktree:hover { color: #39e09b; }

/* ============================================
   BOTÃO DE ÁUDIO
   ============================================ */
.audio-control-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1001;
    opacity: 0;
    animation: .8s ease-out .3s forwards fadeInDown;
}

#audio-toggle-btn, .language-switcher-button {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, .1);
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background-color .3s, transform .2s;
    color: #fff;
    border: none;
    border-radius: 50%;
}

#audio-toggle-btn {
    font-size: 20px;
}

#audio-toggle-btn:hover, .language-switcher-button:hover {
    background-color: rgba(255, 255, 255, .2);
    transform: scale(1.1);
}

#audio-icon {
    display: block;
}

/* ============================================
   SELETOR DE IDIOMA
   ============================================ */
.language-switcher-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    animation: .8s ease-out .25s forwards fadeInDown;
}

.language-switcher-button {
    font-size: 16px;
    font-weight: 700;
}

.language-dropdown-menu {
    position: absolute;
    top: 50%;
    right: 55px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, .5);
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.language-dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
}

.language-option {
    color: #fff;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .2s;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, .2);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes rgbAnimation {
    0%, 100% { background-position: 0 0; }
    50%      { background-position: 100% 100%; }
}

@keyframes circularGradient {
    0%, 100% { background-position: 0 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,.15), 0 0 30px rgba(255,255,255,.05); }
    50%      { box-shadow: 0 0 25px rgba(255,255,255,.25), 0 0 50px rgba(255,255,255,.1); }
}

@keyframes spinHalo {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(1.15); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================================================
   ============================================================================
   RESPONSIVIDADE — MEDIA QUERIES
   ============================================================================
   ============================================================================ */

/* ============================================
   TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .logo {
        width: 90px;
    }

    nav ul {
        gap: 25px;
    }

    nav ul li {
        height: 80px;
    }

    .character-img {
        height: 90vh;
    }

    .center-text {
        font-size: min(7vw, 90px) !important;
    }

    .discord-button-container {
        top: calc(45% + 52px);
    }
}

/* ============================================
   MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header vai pro topo, horizontal */
    header {
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .header-container {
        flex-direction: row;
        gap: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .logo {
        width: 50px;
    }

    /* NAV: vira menu horizontal no rodapé */
    nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: transparent;
        padding: 12px 8px 16px;
        z-index: 999;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 4px;
        width: 100%;
    }

    nav ul li {
        height: auto;
        flex: 1;
    }

    nav ul li a {
        position: static;
        transform: none;
        font-size: 16px;
        letter-spacing: 1px;
        padding: 6px 4px;
    }

    /* OCULTA REDES SOCIAIS no mobile */
    .social-links-container {
        display: none !important;
    }

    /* Áudio sobe pra ocupar o espaço onde estavam as redes */
    .audio-control-container {
        bottom: 90px;
        right: 15px;
    }

    /* Texto central menor */
    .text-container {
        top: 38%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 95%;
        width: 100%;
        text-align: center;
    }

    .center-text {
        font-size: min(11vw, 60px) !important;
        white-space: normal;
        line-height: 1;
    }

    /* Discord button posicionado em relação ao texto */
    .discord-button-container {
        top: calc(38% + min(11vw, 60px) + 10px);
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
    }

    .discord-button {
        font-size: 14px;
        padding: 10px 22px;
        white-space: nowrap;
        gap: 8px;
    }

    .discord-button i {
        font-size: 18px;
    }

    /* Personagem menor pra não tampar o conteúdo */
    .character-img {
        height: 60vh;
        max-height: 60vh;
    }

    /* Sociais e áudio com mais espaço do menu inferior */
    .social-links-container {
        bottom: 70px;
        right: 15px;
        gap: 18px;
    }

    .social-link {
        font-size: 22px;
    }

    .audio-control-container {
        bottom: 120px;
        right: 15px;
    }

    #audio-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Idioma menor */
    .language-switcher-container {
        top: 12px;
        right: 12px;
    }

    .language-switcher-button {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .language-dropdown-menu {
        right: 48px;
        padding: 6px 10px;
        gap: 6px;
    }

    .language-option {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ============================================
   MOBILE PEQUENO (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .logo {
        width: 42px;
    }

    nav ul li a {
        font-size: 14px;
        letter-spacing: 0.5px;
        padding: 6px 2px;
    }

    .center-text {
        font-size: min(12vw, 50px) !important;
    }

    .text-container {
        top: 35%;
    }

    .discord-button-container {
        top: calc(35% + min(12vw, 50px) + 10px);
    }

    .discord-button {
        font-size: 13px;
        padding: 8px 18px;
    }

    .character-img {
        height: 55vh;
    }

    .audio-control-container {
        bottom: 80px;
        right: 10px;
    }

    #audio-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ============================================
   PAISAGEM no celular (mais largo que alto)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .text-container {
        top: 30%;
    }

    .center-text {
        font-size: min(7vw, 60px) !important;
    }

    .discord-button-container {
        top: calc(30% + min(7vw, 60px) + 8px);
    }

    .character-img {
        height: 80vh;
    }

    nav {
        padding: 8px 8px 10px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 6px 4px;
    }

    .audio-control-container {
        bottom: 60px;
    }
}

/* ============================================
   TELAS GRANDES (≥ 1400px)
   ============================================ */
@media (min-width: 1400px) {
    .center-text {
        font-size: min(7vw, 100px) !important;
    }

    .character-img {
        height: 100vh;
    }
}
