/* =========================================
   EFEITOS VISUAIS, GLITCH E ANIMAÇÕES
   ========================================= */

/* --- EFEITOS GLITCH (Logo e Títulos) --- */
.glitch-text-logo::before, .glitch-text-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch-text-logo::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text-logo::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-hero {
    position: relative;
    display: inline-block;
}
.glitch-hero::before, .glitch-hero::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch-hero:hover::before {
    left: 2px;
    text-shadow: -2px 0 #a881ff;
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
    opacity: 1;
}
.glitch-hero:hover::after {
    left: -2px;
    text-shadow: 2px 0 #ff81e6;
    animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
    opacity: 1;
}

.card-title-glitch:hover {
    animation: text-flicker 0.2s infinite alternate;
    color: #a881ff;
}

/* --- EFEITOS DA IMAGEM E AURA --- */
.image-aura {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(168,129,255,0.3) 0%, rgba(255,129,230,0.15) 40%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: auraPulse 4s infinite alternate ease-in-out;
}

.chromatic-revelation-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: chromaticSweep 5s infinite linear;
}

/* --- EFEITOS DE BOTÕES --- */
.btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    color: #000;
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}
.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(168,129,255,0.4);
}

/* --- EFEITOS DO DUAL MARQUEE --- */
.marquee-content {
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #050508;
    text-transform: uppercase;
}

.right-to-left .marquee-content {
    animation: marqueeMove 25s linear infinite;
}

.left-to-right .marquee-content {
    /* Cor invertida em neon para a segunda faixa criar um contraste de design */
    color: #a881ff;
    text-shadow: 0 0 10px rgba(168,129,255,0.5);
    animation: marqueeMoveReverse 25s linear infinite;
}

/* --- EFEITOS DE CARDS E TÓPICOS --- */
.topic-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}
.topic-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}
.topic-box:hover::before {
    left: 100%;
}
.topic-box:hover {
    background: rgba(168,129,255,0.05);
    border-color: rgba(168,129,255,0.3);
    transform: translateX(15px) scale(1.02);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
}

.skill-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}
.skill-card:hover {
    border-color: #a881ff;
    box-shadow: 0 15px 40px rgba(168,129,255,0.15), inset 0 0 20px rgba(168,129,255,0.05);
}
.skill-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transform: translateZ(30px);
}
.skill-list {
    list-style: none;
    color: #ccc;
    transform: translateZ(20px);
}
.skill-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.skill-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #ff81e6;
}

.icon-glow-pulsing {
    font-size: 3.5rem;
    color: #a881ff;
    margin-bottom: 25px;
    animation: iconPulse 2.5s infinite ease-in-out;
    display: inline-block;
    transform: translateZ(40px);
}

.magnetic-container {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- KEYFRAMES (Animações CSS) --- */
@keyframes glitch-anim-1 {
    0% { clip: rect(10px, 9999px, 34px, 0); }
    20% { clip: rect(65px, 9999px, 12px, 0); }
    40% { clip: rect(43px, 9999px, 87px, 0); }
    60% { clip: rect(90px, 9999px, 12px, 0); }
    80% { clip: rect(2px, 9999px, 54px, 0); }
    100% { clip: rect(55px, 9999px, 23px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 54px, 0); }
    40% { clip: rect(87px, 9999px, 12px, 0); }
    60% { clip: rect(43px, 9999px, 65px, 0); }
    80% { clip: rect(21px, 9999px, 98px, 0); }
    100% { clip: rect(43px, 9999px, 12px, 0); }
}
@keyframes auraPulse {
    0% { transform: scale(0.9) rotate(0deg); opacity: 0.4; }
    100% { transform: scale(1.1) rotate(15deg); opacity: 0.8; }
}
@keyframes chromaticSweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marqueeMoveReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1) translateZ(40px); filter: drop-shadow(0 0 10px rgba(168,129,255,0.5)); }
    50% { transform: scale(1.1) translateZ(50px); filter: drop-shadow(0 0 25px rgba(255,129,230,0.8)); color: #ff81e6; }
}
@keyframes text-flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 10px #a881ff; }
    100% { opacity: 0.9; }
}