/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: rgba(10, 0, 0, 0.8);
    /* Variaveis Lerp para o Efeito de Blur no Hero */
    --lerp-0: 1;
    --lerp-1: calc(sin(50deg));
    --lerp-2: calc(sin(45deg));
    --lerp-3: calc(sin(35deg));
    --lerp-4: calc(sin(25deg));
    --lerp-5: calc(sin(15deg));
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Anton', sans-serif;
    background: linear-gradient(135deg, #1a0a0f 0%, #0d0000 50%, #000000 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   VISIBILIDADE (MOBILE VS DESKTOP)
======================================== */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }
}

/* ========================================
   LOADING SCREEN 
======================================== */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s ease;
}

.loading-screen.hidden { opacity: 0; pointer-events: none; }

.loading-container {
    width: clamp(200px, 40vw, 600px); aspect-ratio: 1; border-radius: 50%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    animation: loadingPulse 2s ease-in-out infinite; will-change: transform, opacity;
}

.loading-gif { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2); }

@keyframes loadingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

/* ========================================
   EFEITO DE PARTICULAS
======================================== */
.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2; overflow: hidden;
}

.particle {
    position: absolute; background: #fff; border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    animation: float linear infinite; will-change: transform, opacity;
    bottom: -20px; 
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-120vh) translateX(50px); opacity: 0; }
}

/* ========================================
   BACKGROUNDS
======================================== */
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.03) 50%);
    background-size: 100% 4px; pointer-events: none; z-index: 1;
    animation: scan 8s linear infinite; will-change: background-position;
}

@keyframes scan { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

.red-glow {
    position: fixed; top: 50%; left: 50%; width: clamp(300px, 60vw, 800px);
    aspect-ratio: 1; background: radial-gradient(circle, rgba(34, 1, 1, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5;}
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8;}
}

.mouse-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px at 50% 50%, rgba(120, 0, 20, 0.15) 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}

/* ========================================
   NAVEGAÇÃO
======================================== */
nav {
    position: fixed; top: 0; width: 100%;
    padding: clamp(15px, 2vw, 30px) clamp(20px, 5vw, 60px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: all 0.3s ease;
}

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: 'UnifrakturMaguntia', cursive; font-size: clamp(32px, 4vw, 48px);
    color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    cursor: pointer; transition: all 0.3s ease;
}

.logo:hover { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8); transform: scale(1.05); }

.nav-right { display: flex; align-items: center; gap: 30px; }

.nav-links { display: flex; gap: clamp(15px, 3vw, 40px); }

.nav-links a {
    color: #fff; text-decoration: none; font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: 3px; text-transform: uppercase; position: relative; transition: all 0.3s ease;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: #fff; transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 101; padding: 5px; }

.hamburger span { width: 25px; height: 2px; background: #fff; transition: all 0.3s ease; border-radius: 2px; }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 768px) {
    nav { padding: 20px; }
    .hamburger { display: flex; }
    .nav-links {
        display: none; 
        position: fixed; top: 0; right: -100%; width: clamp(250px, 70vw, 300px); height: 100vh;
        background: rgba(0, 0, 0, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transition: right 0.4s ease; border-left: 1px solid rgba(255, 255, 255, 0.1); z-index: 100;
    }
    .nav-links.active {
        display: flex; 
        right: 0;
    }
    .nav-links a { font-size: 16px; letter-spacing: 4px; }
}

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7);
    z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

/* ========================================
   HERO SECTION & BLUR EFFECT
======================================== */
.hero {
    display: flex; align-items: center; justify-content: center; position: relative;
    padding: clamp(140px, 20vh, 220px) clamp(20px, 5vw, 60px) clamp(80px, 10vh, 120px);
    min-height: 100vh; z-index: 10;
}

.hero-content {
    text-align: center; max-width: 1200px; display: flex; flex-direction: column;
    align-items: center; gap: clamp(20px, 3vw, 30px);
}

/* Base Comum do Titulo */
.hero-title {
    font-size: clamp(48px, 10vw, 140px); font-weight: 300; letter-spacing: clamp(4px, 1vw, 10px);
    line-height: 1.1; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); margin: 0;
    color: #fff;
}

/* Versão Mobile (Apenas Glitch Normal) */
.hero-title.mobile-only {
    position: relative; display: inline-block;
}

/* EFEITO DE GLITCH (UNIFICADO MOBILE/DESKTOP) */
.hero-title.mobile-only::before, .hero-title.mobile-only::after,
.char-blur span::before, .char-blur span::after {
    content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}

.hero-title.mobile-only::before, .char-blur span::before {
    animation: glitch-before 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: #ff0055; z-index: -1; text-shadow: -2px 0 #ff0055;
}

.hero-title.mobile-only::after, .char-blur span::after {
    animation: glitch-after 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    color: #00ffff; z-index: -2; text-shadow: 2px 0 #00ffff;
}

/* EFEITO SECRET CODE (BLUR) PARA O DESKTOP */
@media (min-width: 769px) {
    .hero-title.desktop-blur {
        flex-wrap: wrap; justify-content: center; gap: 0; cursor: default;
    }
    
    .char-blur {
        display: flex; outline: none; align-items: center; justify-content: center;
    }

    .char-blur.space { width: 0.3em; }
    .char-blur.break { flex-basis: 100%; height: 0; }

    .char-blur span {
        position: relative; display: inline-block;
        /* Matemática adaptada para não quebrar em fontes muito gigantes */
        scale: calc(var(--active, 0) * 0.5 + 0.5); 
        filter: blur(calc((1 - var(--active, 0)) * 1rem));
        transition: scale calc(((1 - var(--active, 0)) + 0.2) * 1s), filter calc(((1 - var(--active, 0)) + 0.2) * 1s);
    }

    /* A Magia de Revelação Baseada na Proximidade do Mouse */
    .char-blur:is(:hover, :focus-visible) { --active: var(--lerp-0); }
    
    .char-blur:is(:hover, :focus-visible) + .char-blur,
    .char-blur:has(+ .char-blur:is(:hover, :focus-visible)) { --active: var(--lerp-1); }
    
    .char-blur:is(:hover, :focus-visible) + .char-blur + .char-blur,
    .char-blur:has(+ .char-blur + .char-blur:is(:hover, :focus-visible)) { --active: var(--lerp-2); }
    
    .char-blur:is(:hover, :focus-visible) + .char-blur + .char-blur + .char-blur,
    .char-blur:has(+ .char-blur + .char-blur + .char-blur:is(:hover, :focus-visible)) { --active: var(--lerp-3); }
    
    .char-blur:is(:hover, :focus-visible) + .char-blur + .char-blur + .char-blur + .char-blur,
    .char-blur:has(+ .char-blur + .char-blur + .char-blur + .char-blur:is(:hover, :focus-visible)) { --active: var(--lerp-4); }
    
    .char-blur:is(:hover, :focus-visible) + .char-blur + .char-blur + .char-blur + .char-blur + .char-blur,
    .char-blur:has(+ .char-blur + .char-blur + .char-blur + .char-blur + .char-blur:is(:hover, :focus-visible)) { --active: var(--lerp-5); }
}

@keyframes glitch-before {
    0%, 100% { clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%); transform: translate(0); }
    10% { clip-path: polygon(0% 0%, 100% 0%, 100% 8%, 0% 8%); transform: translate(-2px, 2px); }
    20% { clip-path: polygon(0% 0%, 100% 0%, 100% 20%, 0% 20%); transform: translate(2px, -2px); }
    30% { clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 0% 40%); transform: translate(-1px, 1px); }
    40%, 90% { clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%); transform: translate(0); }
}

@keyframes glitch-after {
    0%, 100% { clip-path: polygon(0% 100%, 0% 100%, 100% 100%, 100% 100%); transform: translate(0); }
    15% { clip-path: polygon(0% 92%, 0% 92%, 100% 100%, 100% 92%); transform: translate(2px, -2px); }
    25% { clip-path: polygon(0% 80%, 0% 80%, 100% 100%, 100% 80%); transform: translate(-2px, 2px); }
    35% { clip-path: polygon(0% 60%, 0% 60%, 100% 100%, 100% 60%); transform: translate(1px, -1px); }
    45%, 85% { clip-path: polygon(0% 100%, 0% 100%, 100% 100%, 100% 100%); transform: translate(0); }
}

.hero p {
    font-size: clamp(14px, 2vw, 20px); color: rgba(255, 255, 255, 0.7);
    letter-spacing: clamp(2px, 0.5vw, 3px); text-transform: uppercase;
}

.cta-button {
    display: inline-block; padding: clamp(15px, 2vw, 20px) clamp(40px, 5vw, 60px);
    border: 2px solid #fff; color: #fff; text-decoration: none; font-size: clamp(12px, 1.5vw, 14px);
    letter-spacing: 4px; text-transform: uppercase; position: relative; overflow: hidden;
    transition: all 0.3s ease; margin-top: 15px;
}

.cta-button::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: #fff; transition: left 0.4s ease; z-index: -1;
}

.cta-button:hover::before { left: 0; }
.cta-button:hover { color: #000; }

/* ========================================
   SECTIONS GENÉRICAS
======================================== */
section { position: relative; z-index: 10; padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 60px); }

.section-title {
    font-size: clamp(32px, 6vw, 80px); font-weight: 300; letter-spacing: 3px;
    text-align: center; margin-bottom: clamp(30px, 5vw, 60px); text-transform: uppercase;
}

/* ========================================
   SOBRE
======================================== */
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(40px, 6vw, 80px); align-items: center; max-width: 1400px; margin: 0 auto;
}

.about-text p {
    font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8;
    color: rgba(255, 255, 255, 0.8); margin-bottom: 25px;
}

.gif-container { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; margin: 0 auto; }
.gif-container img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2); }

/* ========================================
   GALERIA
======================================== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; max-width: 1600px; margin: 0 auto;
}

.gallery-item {
    position: relative; aspect-ratio: 3/4; border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; cursor: pointer; transition: all 0.4s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.gallery-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(80, 0, 0, 0.3) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.4s ease; z-index: 1;
}

.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover { border-color: rgba(255, 255, 255, 0.3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: all 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: clamp(15px, 3vw, 30px);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); z-index: 2;
}

.gallery-info p {
    font-size: clamp(10px, 1vw, 12px); color: rgba(255, 255, 255, 0.5); letter-spacing: 2px;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ========================================
   MAIS / DESCUBRA
======================================== */
.more { text-align: center; }

.rec-subtitle {
    color: rgba(255, 255, 255, 0.6); font-size: clamp(14px, 1.5vw, 18px);
    margin: -20px auto 40px auto; max-width: 600px;
}

.rec-buttons {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
    max-width: 800px; margin: 0 auto;
}

.rec-btn {
    padding: clamp(12px, 1.5vw, 15px) clamp(30px, 4vw, 50px);
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff; font-size: clamp(12px, 1.2vw, 14px); letter-spacing: 3px;
    text-transform: uppercase; cursor: pointer; font-family: 'Anton', sans-serif;
    transition: all 0.3s ease;
}

.rec-btn:hover { background: #fff; color: #000; }

@media (max-width: 480px) {
    .rec-buttons { flex-direction: column; width: 100%; }
    .rec-btn { width: 100%; }
}

/* ========================================
   CONTATO
======================================== */
.contact-container { max-width: 800px; margin: 0 auto; }

.contact-form { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); }

.form-group input, .form-group textarea {
    width: 100%; padding: clamp(15px, 2vw, 20px); background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
    font-size: clamp(14px, 1.5vw, 16px); font-family: 'Anton', sans-serif; transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); background: rgba(255,255,255,0.05);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4); letter-spacing: 2px;
    text-transform: uppercase; font-size: clamp(10px, 1vw, 12px);
}

.submit-btn {
    width: 100%; padding: clamp(15px, 2vw, 20px); background: transparent;
    border: 2px solid #fff; color: #fff; font-size: clamp(12px, 1.5vw, 14px);
    letter-spacing: 4px; text-transform: uppercase; cursor: pointer;
    position: relative; overflow: hidden; transition: all 0.3s ease; font-family: 'Anton', sans-serif;
}

.submit-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: #fff; transition: left 0.4s ease; z-index: -1;
}

.submit-btn:hover::before { left: 0; }
.submit-btn:hover { color: #000; }

/* ========================================
   FOOTER
======================================== */
footer {
    padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
    text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; z-index: 10;
}

footer .logo { margin-bottom: 20px; }

footer p { font-size: clamp(10px, 1vw, 12px); color: rgba(255, 255, 255, 0.5); letter-spacing: 2px; margin: 10px 0; }

.social-links {
    display: flex; justify-content: center; gap: clamp(15px, 3vw, 30px); margin: 30px 0; flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: clamp(12px, 1.5vw, 15px);
    letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s ease;
}

.social-links a:hover { color: #fff; }

/* ========================================
   MODAIS
======================================== */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 9998; align-items: center;
    justify-content: center; padding: 20px;
}

.modal.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-content {
    background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(30px, 5vw, 60px); text-align: center; width: 100%;
    max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto;
}

.rec-modal-content { max-width: 800px; text-align: left; }

.modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 30px;
    color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease;
}

.modal-close:hover { color: #fff; transform: rotate(90deg); }

.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.rec-card {
    display: flex; flex-direction: column; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; text-decoration: none;
    color: #fff; transition: transform 0.3s ease, background 0.3s ease;
}

.rec-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); border-color: rgba(255, 255, 255, 0.3); }

.rec-avatar {
    width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
    margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.2);
}

.rec-info h3 { font-size: 18px; letter-spacing: 1px; margin-bottom: 2px; }
.rec-handle { display: block; font-size: 12px; color: #ff0055; margin-bottom: 15px; letter-spacing: 1px; }
.rec-info p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; font-family: sans-serif; letter-spacing: normal;}

/* ========================================
   ANIMAÇÕES SCROLL
======================================== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; will-change: transform, opacity; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }