﻿/**
 * HP CRIACOES - Intro Splash Screen
 * Animacao de entrada premium com logo, particulas e transicoes
 */

/* OVERLAY FULLSCREEN */
.hp-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-intro-overlay.hp-intro--exiting {
    opacity: 0;
    pointer-events: none;
}

.hp-intro-overlay.hp-intro--hidden {
    display: none !important;
}

/* CANVAS DE PARTICULAS */
.hp-intro-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* CONTEUDO CENTRAL */
.hp-intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Logo / Simbolo HP */
.hp-intro-logo {
    width: 220px;
    height: auto;
    opacity: 0;
    transform: scale(0.4) rotateY(-90deg);
    filter: brightness(0) saturate(0);
    animation: hp-intro-logo-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes hp-intro-logo-enter {
    0% {
        opacity: 0;
        transform: scale(0.4) rotateY(-90deg);
        filter: brightness(0) saturate(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.08) rotateY(0deg);
        filter: brightness(1.3) saturate(1);
    }
    70% {
        transform: scale(0.96) rotateY(0deg);
        filter: brightness(1) saturate(1);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: brightness(1) saturate(1);
    }
}

/* Ring de Glow em volta da logo */
.hp-intro-glow-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(0,132,255,0.25) 0%, transparent 70%);
    box-shadow: 0 0 80px 20px rgba(0,132,255,0.15);
    animation: hp-glow-ring-pulse 2.4s ease-out 0.6s forwards;
    z-index: 1;
    pointer-events: none;
}

@keyframes hp-glow-ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Texto CRIACOES */
.hp-intro-text-criacoes {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #C0C0C0 0%, #FFFFFF 40%, #A0B4CC 60%, #C0C0C0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    margin-top: -8px;
    opacity: 0;
    transform: translateY(20px);
    animation: hp-intro-text-slide 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

/* Linha Divisoria Neon */
.hp-intro-divider {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0084FF, #00B4FF, #0084FF, transparent);
    margin: 12px 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,132,255,0.6), 0 0 30px rgba(0,132,255,0.2);
    animation: hp-intro-divider-expand 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.7s forwards;
}

@keyframes hp-intro-divider-expand {
    to {
        width: 240px;
    }
}

/* Slogan */
.hp-intro-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #94A3B8;
    opacity: 0;
    transform: translateY(12px);
    animation: hp-intro-text-slide 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.1s forwards;
}

@keyframes hp-intro-text-slide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BARRA DE LOADING */
.hp-intro-loader {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hp-intro-loader-track {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: hp-intro-text-slide 0.4s ease 0.6s forwards;
}

.hp-intro-loader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0084FF, #00B4FF);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0,132,255,0.5);
    animation: hp-intro-loading 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes hp-intro-loading {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    90% { width: 92%; }
    100% { width: 100%; }
}

.hp-intro-loader-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(148,163,184,0.5);
    opacity: 0;
    animation: hp-intro-text-slide 0.4s ease 0.6s forwards;
}

/* FLARES DECORATIVOS */
.hp-intro-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hp-intro-flare--tl {
    top: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,132,255,0.08) 0%, transparent 70%);
    animation: hp-flare-drift 6s ease-in-out infinite alternate;
}

.hp-intro-flare--br {
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0,180,255,0.06) 0%, transparent 70%);
    animation: hp-flare-drift 7s ease-in-out 1s infinite alternate-reverse;
}

@keyframes hp-flare-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.15); }
}

/* SPARKLES */
.hp-intro-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #0084FF;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(0,132,255,0.6);
    opacity: 0;
    z-index: 1;
    animation: hp-sparkle-blink var(--dur, 2s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes hp-sparkle-blink {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* RESPONSIVO */
@media (max-width: 576px) {
    .hp-intro-logo {
        width: 150px;
    }
    .hp-intro-text-criacoes {
        font-size: 1.5rem;
        letter-spacing: 0.25em;
    }
    .hp-intro-slogan {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
    }
    .hp-intro-glow-ring {
        width: 200px;
        height: 200px;
    }
    .hp-intro-loader-track {
        width: 140px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hp-intro-logo {
        width: 180px;
    }
    .hp-intro-text-criacoes {
        font-size: 1.9rem;
    }
}
