/* ==========================================
   O ÚLTIMO BRASILEIRO - Seções Premium
   Glassmorphism, Neon Borders, Efeitos de Camada
   ========================================== */

/* === HEADER / NAVBAR - GLASS PREMIUM === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
    background: rgba(5, 5, 15, 0.88);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5), 
        0 0 15px rgba(233, 69, 96, 0.05),
        var(--shadow-inset-glass);
}

header.scrolled::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--purple), transparent);
    opacity: 0.3;
    animation: navBorderGlow 3s ease-in-out infinite alternate;
}

@keyframes navBorderGlow {
    0% { opacity: 0.2; filter: blur(0px); }
    50% { opacity: 0.5; filter: blur(1px); }
    100% { opacity: 0.2; filter: blur(0px); }
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    filter: drop-shadow(0 0 12px var(--primary-glow));
    transition: filter 0.4s ease, transform 0.4s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 12px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 30px var(--primary-glow)) brightness(1.2); }
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 4s ease-in-out infinite alternate;
}

@keyframes logoGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.08);
    border-color: rgba(233, 69, 96, 0.15);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(233, 69, 96, 0.12);
    border-color: rgba(233, 69, 96, 0.2);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(233, 69, 96, 0.2) 0%, 
            transparent 25%,
            rgba(0, 212, 255, 0.12) 50%,
            transparent 70%,
            rgba(168, 85, 247, 0.08) 100%
        );
    z-index: 1;
    animation: heroGradient 12s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.1) translateX(0); }
    50% { transform: scale(1.15) translateX(-15px); }
    100% { transform: scale(1.1) translateX(0); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    width: 100%;
    max-width: 700px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.9));
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8)) brightness(1); }
    100% { filter: drop-shadow(0 0 50px rgba(233, 69, 96, 0.4)) brightness(1.1); }
}

.typing-container {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    min-height: 2rem;
}

.typing-text { display: inline; }

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.4rem;
    background: var(--primary);
    margin-left: 4px;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === COVER SECTION - PREMIUM === */
.cover-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 30%, var(--bg-dark) 100%);
}

.cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--purple), transparent);
    opacity: 0.3;
}

.cover-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--secondary), var(--primary), transparent);
    opacity: 0.15;
}

.game-cover {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px var(--primary-glow),
        0 0 80px rgba(233, 69, 96, 0.1),
        var(--shadow-card-2d);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.game-cover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--border-radius-lg) + 2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--purple), var(--accent), var(--primary));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: coverBorderNeon 4s linear infinite;
}

@keyframes coverBorderNeon {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-cover:hover::after {
    opacity: 0.6;
}

.game-cover:hover {
    transform: scale(1.03);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px var(--primary-glow),
        0 0 120px rgba(233, 69, 96, 0.2),
        0 0 60px rgba(0, 212, 255, 0.1);
    border-color: rgba(233, 69, 96, 0.3);
}

/* === ABOUT SECTION === */
.about {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 25, 0.5) 50%, var(--bg-darker) 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--primary), var(--purple), transparent);
    opacity: 0.2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Glassmorphism card premium - multi-layer depth */
.about-card {
    background: var(--bg-card-light);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    padding: 2.8rem 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(233, 69, 96, 0.12);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5),
        var(--shadow-inset-glass),
        var(--shadow-neon-multicolor);
}

/* Animated neon gradient border - sempre visível sutilmente */
.about-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        var(--primary), 
        var(--secondary), 
        var(--purple), 
        var(--accent),
        var(--primary)
    );
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.5s ease, filter 0.5s ease;
    animation: borderGlow 4s linear infinite;
    filter: blur(1px);
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.about-card:hover::before {
    opacity: 1;
    filter: blur(0px);
}

/* Inner glow overlay c/ gradiente animado sutil */
.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(233, 69, 96, 0.06) 0%, 
        transparent 25%, 
        rgba(0, 212, 255, 0.04) 50%,
        rgba(168, 85, 247, 0.04) 75%,
        rgba(255, 215, 0, 0.02) 100%
    );
    background-size: 200% 200%;
    animation: innerGlowShift 8s ease-in-out infinite alternate;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes innerGlowShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.about-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 30px var(--primary-glow),
        0 0 60px rgba(168, 85, 247, 0.15),
        0 0 90px rgba(0, 212, 255, 0.08);
    background: var(--bg-card-hover);
    border-color: rgba(233, 69, 96, 0.25);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.2), 0 0 60px rgba(233, 69, 96, 0.1);
    letter-spacing: var(--tracking-wide);
}

.about-card p {
    color: var(--text-card);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

/* === GAMEPLAY / FEATURES === */
.gameplay {
    position: relative;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(10, 10, 25, 0.5) 40%, var(--bg-darker) 100%);
}

.gameplay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--secondary), var(--primary), transparent);
    opacity: 0.2;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    padding: 2.8rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        var(--shadow-neon-multicolor);
}

/* Neon border animado nas features */
.feature::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        transparent 20%, 
        var(--primary), 
        var(--secondary), 
        var(--purple), 
        transparent 80%
    );
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: featureBorderGlow 4s linear infinite;
}

@keyframes featureBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(233, 69, 96, 0.04) 0%, 
        transparent 35%, 
        rgba(0, 212, 255, 0.03) 60%,
        rgba(168, 85, 247, 0.03) 100%
    );
    background-size: 200% 200%;
    animation: featureGlowShift 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes featureGlowShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--primary-glow),
        0 0 60px rgba(168, 85, 247, 0.1);
    background: var(--bg-card-hover);
}

.feature:hover::before {
    opacity: 1;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    letter-spacing: var(--tracking-wide);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.15);
}

.feature p {
    color: var(--text-card);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* === GALERIA - CARROSSEL AUTOMÁTICO === */
.gallery {
    position: relative;
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(10, 10, 25, 0.5) 50%, var(--bg-dark) 100%);
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--purple), var(--secondary), transparent);
    opacity: 0.2;
}

/* Carrossel principal */
.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px var(--primary-glow),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 69, 96, 0.1);
    aspect-ratio: 16 / 9;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.3) brightness(0.85);
    transition: filter 0.6s ease, transform 6s ease;
    transform: scale(1.05);
}

.carousel-slide.active img {
    filter: grayscale(0) brightness(1);
    transform: scale(1);
}

/* Overlay gradiente nas laterais do slide */
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(5, 5, 15, 0.8) 0%, 
        transparent 100%
    );
    pointer-events: none;
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.carousel:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(233, 69, 96, 0.25);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(233, 69, 96, 0.3));
}

/* Dots / Indicadores */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(233, 69, 96, 0.2);
    transform: scale(1.3);
    width: 30px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: rgba(233, 69, 96, 0.5);
    transform: scale(1.15);
}

/* Indicador de slide atual */
.carousel-counter {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 10;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.15);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* =============================================
   OVERLAY CINEMATOGRÁFICO C/ EFEITO PORTAL
   ============================================= */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) brightness(1);
    -webkit-backdrop-filter: blur(0px) brightness(1);
    z-index: 2999;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.gallery-overlay.active {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px) brightness(0.6);
    -webkit-backdrop-filter: blur(16px) brightness(0.6);
    pointer-events: auto;
}

/* Efeito de vignette radial no overlay */
.gallery-overlay.active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
}

/* =============================================
   IMAGEM EXPANDIDA - Efeito Portal Dimensional
   ============================================= */
.gallery-item.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: auto !important;
    max-width: 90vw;
    max-height: 85vh;
    height: auto !important;
    z-index: 3000;
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 0 40px var(--primary-glow),
        0 0 80px rgba(233, 69, 96, 0.15),
        0 0 120px rgba(168, 85, 247, 0.1),
        inset 0 0 60px rgba(0, 212, 255, 0.05);
    filter: grayscale(0) brightness(1.1) saturate(1.1);
    border-radius: var(--border-radius-md);
    cursor: zoom-out;
    object-fit: contain;
    pointer-events: auto;
    background: var(--bg-darker);
    animation: portalEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               expandedGlow 3s ease-in-out 0.5s infinite;
}

.gallery-item.expanded::before {
    opacity: 0 !important;
}

/* Borda neon pulsante na imagem expandida */
.gallery-item.expanded::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    transform: translate(-50%, -50%);
    border-radius: calc(var(--border-radius-md) + 4px);
    background: linear-gradient(135deg, 
        var(--primary), var(--secondary), var(--purple), var(--accent), 
        var(--primary), var(--secondary), var(--purple)
    );
    background-size: 600% 600%;
    z-index: -1;
    opacity: 0.6;
    animation: expandedBorderPulse 3s ease-in-out infinite;
    filter: blur(2px);
    pointer-events: none;
}

@keyframes expandedBorderPulse {
    0% { background-position: 0% 50%; opacity: 0.4; filter: blur(2px); }
    25% { background-position: 100% 0%; opacity: 0.7; filter: blur(1px); }
    50% { background-position: 100% 100%; opacity: 0.5; filter: blur(3px); }
    75% { background-position: 0% 100%; opacity: 0.8; filter: blur(1px); }
    100% { background-position: 0% 50%; opacity: 0.4; filter: blur(2px); }
}

/* Animação de entrada - efeito warp/portal */
@keyframes portalEnter {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotateZ(5deg);
        opacity: 0;
        filter: grayscale(1) brightness(0.3) blur(8px);
        border-color: transparent;
        box-shadow: none;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.1) rotateZ(-1deg);
        opacity: 1;
        filter: grayscale(0.3) brightness(0.8) blur(2px);
        border-color: var(--secondary);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95) rotateZ(0.5deg);
        filter: grayscale(0) brightness(1.1) blur(0px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotateZ(0deg);
        opacity: 1;
        filter: grayscale(0) brightness(1.1) saturate(1.1);
        border-color: var(--primary);
    }
}

/* Animação de saída */
.gallery-item.expanded.collapsing {
    animation: portalExit 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes portalExit {
    0% {
        transform: translate(-50%, -50%) scale(1) rotateZ(0deg);
        opacity: 1;
        filter: grayscale(0) brightness(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2) rotateZ(-10deg);
        opacity: 0;
        filter: grayscale(1) brightness(0.2) blur(12px);
    }
}

.gallery-item.expanded:hover {
    transform: translate(-50%, -50%) scale(1) !important;
}

@keyframes expandedGlow {
    0%, 100% { box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 0 40px var(--primary-glow),
        0 0 80px rgba(233, 69, 96, 0.15),
        0 0 120px rgba(168, 85, 247, 0.1);
    }
    50% { box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.8),
        0 0 60px var(--primary-glow),
        0 0 100px rgba(233, 69, 96, 0.25),
        0 0 140px rgba(168, 85, 247, 0.2),
        0 0 60px rgba(0, 212, 255, 0.1);
    }
}

/* =============================================
   LEGENDA DA IMAGEM
   ============================================= */
.gallery-caption {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 3001;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 50px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 80vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-caption.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   NAVEGAÇÃO - ANTERIOR / PRÓXIMA
   ============================================= */
.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.gallery-nav.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.gallery-nav:hover {
    background: rgba(233, 69, 96, 0.25);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(233, 69, 96, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.gallery-nav-prev {
    left: 24px;
}

.gallery-nav-next {
    right: 24px;
}

.gallery-nav.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.5) !important;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.4));
}

/* =============================================
   PARTÍCULAS DA GALERIA - Efeito Dimensional
   ============================================= */
.gallery-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3002;
    opacity: 0;
    transform: translate(0, 0) scale(0);
    transition: none;
}

.gallery-particle.active {
    animation: particleBurst 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes particleBurst {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1);
    }
    60% {
        opacity: 1;
        transform: translate(calc(var(--dx) * 0.8), calc(var(--dy) * 0.8)) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

/* =============================================
   ARENA DE BATALHA - Seção de Combate Animado
   ============================================= */
.battle-arena {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 5, 20, 0.9) 50%, var(--bg-darker) 100%);
    overflow: hidden;
}

.battle-arena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--purple), transparent);
    opacity: 0.2;
}

/* Seletor de Personagens */
.character-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.selector-title {
    text-align: center;
    min-width: 280px;
}

.battle-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin: 0;
    line-height: 1.2;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 30px rgba(233, 69, 96, 0.3));
}

.battle-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--secondary);
    text-shadow: 0 0 20px var(--secondary-glow);
    margin-top: 0.3rem;
    transition: opacity 0.3s ease;
}

/* Botões do seletor */
.battle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.battle-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(233, 69, 96, 0.1);
    transform: scale(1.15);
}

.battle-btn:active {
    transform: scale(0.9);
}

/* Indicadores de personagem */
.char-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.char-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.char-indicator.active {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.15);
    text-shadow: 0 0 10px var(--primary-glow);
}

.char-indicator:hover {
    border-color: rgba(233, 69, 96, 0.3);
    color: var(--text-primary);
}

/* Palco da Batalha */
.battle-arena-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 420px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(15, 10, 30, 0.95) 0%, 
        rgba(20, 15, 35, 0.9) 60%, 
        rgba(10, 8, 20, 0.95) 100%
    );
    border: 1px solid rgba(233, 69, 96, 0.1);
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
}

/* Chão da arena */
.arena-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(233, 69, 96, 0.05) 0%, 
        rgba(168, 85, 247, 0.03) 50%,
        transparent 100%
    );
    border-top: 1px solid rgba(233, 69, 96, 0.08);
}

.arena-floor::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        var(--purple), 
        transparent
    );
    opacity: 0.15;
    animation: floorGlow 3s ease-in-out infinite alternate;
}

@keyframes floorGlow {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

/* Impacto */
.battle-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary), var(--secondary), transparent);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: none;
}

.battle-impact.active {
    animation: impactFlash 0.4s ease-out forwards;
}

@keyframes impactFlash {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Shake na tela */
.battle-arena-stage.shaking {
    animation: arenaShake 0.4s ease-in-out;
}

@keyframes arenaShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px) rotate(-0.5deg); }
    40% { transform: translateX(6px) rotate(0.5deg); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* VS Divider */
.vs-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.vs-divider span {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--primary);
    text-shadow: 
        0 0 20px var(--primary-glow),
        0 0 40px rgba(233, 69, 96, 0.3);
    opacity: 0.6;
}

/* Containers dos lutadores */
.fighter-container {
    position: absolute;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.character-container {
    left: 5%;
}

.enemy-container {
    right: 5%;
}

/* Posições de caminhada */
.character-container.walking {
    left: 30%;
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.enemy-container.walking {
    right: 30%;
    transition: right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Posição de encontro (meio) */
.character-container.meet {
    left: 35%;
    transition: left 0.3s ease;
}

.enemy-container.meet {
    right: 35%;
    transition: right 0.3s ease;
}

/* Posição de knockback (volta) */
.character-container.knockback {
    left: 2%;
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.enemy-container.knockback {
    right: 2%;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.character-container.position-start {
    left: 5%;
}

.enemy-container.position-start {
    right: 5%;
}

/* Info dos lutadores */
.fighter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
    text-align: center;
}

.fighter-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.fighter-name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.fighter-info.character .fighter-name {
    color: var(--secondary);
}

.fighter-info.enemy .fighter-name {
    color: var(--primary);
}

/* Health Bars */
.health-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.health-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.health-bar.character .health-fill {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.health-bar.enemy .health-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
}

/* Sprite dos lutadores */
.fighter-sprite {
    width: auto;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

/* Inverter inimigo horizontalmente pra ficar de frente pro personagem */
.enemy-container .fighter-sprite {
    transform: scaleX(-1);
}

.enemy-container.walking .fighter-sprite {
    transform: scaleX(-1);
}

.enemy-container.meet .fighter-sprite {
    transform: scaleX(-1);
}

.enemy-container.attacking .fighter-sprite {
    transform: scaleX(-1);
}

.enemy-container.knockback .fighter-sprite {
    transform: scaleX(-1);
}

.enemy-container.position-start .fighter-sprite {
    transform: scaleX(-1);
}

/* Animação de ataque - treme o sprite */
.character-container.attacking .fighter-sprite {
    animation: charAttackAnim 0.15s ease-in-out 3;
}

.enemy-container.attacking .fighter-sprite {
    animation: enemyAttackAnim 0.15s ease-in-out 3;
}

@keyframes charAttackAnim {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(8px) rotate(3deg); }
}

/* Nota: scaleX(-1) incluso nas keyframes pra manter o flip horizontal do inimigo */
@keyframes enemyAttackAnim {
    0%, 100% { transform: scaleX(-1) translateX(0) rotate(0deg); }
    50% { transform: scaleX(-1) translateX(-8px) rotate(-3deg); }
}

/* === RESPONSIVO - ARENA === */
@media (max-width: 768px) {
    .battle-arena-stage {
        height: 320px;
    }
    
    .battle-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .battle-subtitle {
        font-size: 0.9rem;
    }
    
    .selector-title {
        min-width: 200px;
    }
    
    .fighter-sprite {
        height: 130px;
    }
    
    .vs-divider span {
        font-size: 1.3rem;
    }
    
    .health-bar {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .battle-arena-stage {
        height: 260px;
    }
    
    .battle-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    .character-selector {
        gap: 0.8rem;
    }
    
    .selector-title {
        min-width: 150px;
    }
    
    .fighter-sprite {
        height: 100px;
    }
    
    .char-indicator {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .battle-btn {
        width: 36px;
        height: 36px;
    }
    
    .battle-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* === CONTATO === */
.contact {
    position: relative;
    background: linear-gradient(0deg, var(--bg-darker) 0%, rgba(10, 10, 25, 0.5) 50%, var(--bg-dark) 100%);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--purple), transparent);
    opacity: 0.2;
}

/* Animated background gradient for contact section */
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(233, 69, 96, 0.03) 15%,
        rgba(0, 212, 255, 0.02) 30%,
        rgba(168, 85, 247, 0.02) 45%,
        rgba(255, 215, 0, 0.01) 60%,
        transparent 100%
    );
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.05;
    animation: contactBgGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes contactBgGlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(233, 69, 96, 0.02), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.contact:hover::before {
    opacity: 0.1;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(233, 69, 96, 0.1);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon svg {
    color: var(--primary);
    transition: color 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.contact-link:hover .contact-icon svg {
    color: var(--secondary);
    filter: drop-shadow(0 0 12px var(--secondary-glow));
}

.contact-icon span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-link:hover .contact-icon span {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .contact-links {
        gap: 1rem;
    }
    
    .contact-link {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-icon span {
        font-size: 0.8rem;
    }
}
