body {
    margin: 0;
    font-family: Poppins, sans-serif;
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}


/* partículas */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* efeito matrix */

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: black;
}


/* NAVBAR */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #111827;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover {
    color: #7c3aed;
}


/* BOTÃO MODO ESCURO */

#themeToggle{
background:none;
border:none;
font-size:20px;
cursor:pointer;
color:white;
}


/* HERO */

.hero{
text-align:center;
padding:120px 20px;
}

.profile{
width:180px;
height:180px;
object-fit:cover;
border-radius:50%;
border:4px solid #7c3aed;
margin-bottom:20px;
box-shadow:0 0 25px #7c3aed;
transition:0.4s;
}

.profile:hover{
transform:scale(1.05);
box-shadow:0 0 40px #7c3aed;
}


/* BOTÕES */

.btn{
background:#7c3aed;
padding:10px 25px;
border-radius:10px;
color:white;
text-decoration:none;
transition:0.3s;
margin:5px;
display:inline-block;
}

.btn:hover{
box-shadow:0 0 20px #7c3aed;
}


/* SEÇÕES */

section{
padding:80px;
text-align:center;
}


/* PROJETOS */

.projects-grid{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
}

.card{
background:#111827;
padding:25px;
border-radius:15px;
width:260px;
transition:0.5s;
transform-style:preserve-3d;
}

.card img{
width:100%;
border-radius:10px;
margin-bottom:10px;
}

.card:hover{
transform:rotateY(10deg) rotateX(10deg) scale(1.05);
box-shadow:0 0 25px #7c3aed;
}


/* SKILLS */

.skill-bar{
max-width:500px;
margin:auto;
}

.bar{
background:#111827;
height:10px;
border-radius:10px;
margin-bottom:20px;
overflow:hidden;
}

.bar span{
display:block;
height:10px;
background:#7c3aed;
width:0;
transition:1.5s;
}


/* ANIMAÇÃO DE SCROLL */

.fade{
opacity:0;
transform:translateY(30px);
transition:1s;
}

.fade.show{
opacity:1;
transform:translateY(0);
}


/* TERMINAL */

.terminal{
background:black;
color:#00ff9c;
font-family:monospace;
padding:20px;
max-width:600px;
margin:auto;
border-radius:10px;
text-align:left;
}


/* DASHBOARD */

.dashboard{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
}

.box{
background:#111827;
padding:25px;
border-radius:15px;
width:200px;
transition:0.3s;
}

.box:hover{
transform:translateY(-10px);
box-shadow:0 0 20px #7c3aed;
}


/* CHATBOT */

.chatbot{
bottom:20px;
right:20px;
background:#7c3aed;
padding:15px;
border-radius:10px;
}


/* RESPONSIVO */

@media (max-width:768px){

.projects-grid{
flex-direction:column;
align-items:center;
}

.navbar{
flex-direction:column;
gap:10px;
}

}

/* MODO CLARO */

body.light{
background:#f3f4f6;
color:#111827;
}

body.light .navbar{
background:#ffffff;
}

body.light .card{
background:#ffffff;
color:#111827;
}

body.light .box{
background:#ffffff;
}

body.light .bar{
background:#e5e7eb;
}

body.light .terminal{
background:#f3f4f6;
color:#111827;
}

body.light .chatbot{
background:#7c3aed;
}

body.light a{
color:#111827;
}

.cyber-grid{

display:flex;
gap:30px;
justify-content:center;
flex-wrap:wrap;

}

.cyber-box{

background:#111827;
padding:25px;
border-radius:15px;
width:420px;
transition:0.3s;

}

.cyber-box:hover{

transform:translateY(-5px);
box-shadow:0 0 20px #7c3aed;

}

#cyber-map{

height:300px;
background:#020617;
border-radius:10px;
position:relative;
overflow:hidden;

}

.attack{

position:absolute;
width:6px;
height:6px;
background:#7c3aed;
border-radius:50%;
animation:pulse 1.5s infinite;

}

@keyframes pulse{

0%{transform:scale(1);opacity:1;}
100%{transform:scale(3);opacity:0;}

}

.threat-counter{

display:flex;
justify-content:center;
gap:30px;
margin-top:40px;
flex-wrap:wrap;

}

.threat-box{

background:#020617;
padding:25px;
border-radius:12px;
width:220px;
text-align:center;

border:1px solid #7c3aed;

box-shadow:0 0 15px rgba(124,58,237,0.4);

transition:0.3s;

}

.threat-box:hover{

transform:translateY(-5px);
box-shadow:0 0 25px #7c3aed;

}

.counter{

font-size:28px;
font-weight:700;
color:#7c3aed;
margin-top:10px;

}

.lab-grid{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
margin-top:30px;
}

.lab-box{
background:#111827;
padding:25px;
border-radius:15px;
width:260px;
}

.lab-box input{
width:100%;
padding:10px;
margin-bottom:10px;
border-radius:8px;
border:none;
}

.lab-box button{
background:#7c3aed;
border:none;
padding:8px 15px;
border-radius:8px;
color:white;
cursor:pointer;
}

.chatbot-container{

position:fixed;
bottom:20px;
right:20px;

width:300px;
height:380px;

background:#111827;

border-radius:15px;

display:flex;
flex-direction:column;

box-shadow:0 0 20px #7c3aed;

overflow:hidden;

font-size:14px;

}

.chat-header{

background:#7c3aed;
padding:10px;
text-align:center;
font-weight:bold;

}

.chat-messages{

flex:1;

padding:10px;

overflow-y:auto;

}

.bot-message{

background:#020617;

padding:8px;

border-radius:8px;

margin-bottom:8px;

white-space: pre-line;

}

.user-message{

background:#7c3aed;

padding:8px;

border-radius:8px;

margin-bottom:8px;

text-align:right;

}

.chat-input{

display:flex;

border-top:1px solid #333;

}

.chat-input input{

flex:1;

border:none;

padding:10px;

background:#020617;

color:white;

}

.chat-input button{

border:none;

background:#7c3aed;

color:white;

padding:10px;

cursor:pointer;

}

.chatbot-wrapper{
position:fixed;
bottom:20px;
right:20px;
z-index:999;
}

/* chatbot */

.chatbot-container{
width:300px;
height:420px;
background:#111827;
border-radius:15px;
display:none;
flex-direction:column;
overflow:hidden;
margin-top:10px;
box-shadow:0 0 25px rgba(0,0,0,0.6);
}

.chat-header{
background:#7c3aed;
padding:10px;
font-weight:bold;
display:flex;
justify-content:space-between;
align-items:center;
}

.close-chat{
cursor:pointer;
}

.chat-messages{
flex:1;
padding:10px;
overflow-y:auto;
font-size:14px;
}

.chat-input{
display:flex;
border-top:1px solid #333;
}

.chat-input input{
flex:1;
padding:10px;
border:none;
outline:none;
background:#020617;
color:white;
}

.chat-input button{
background:#7c3aed;
border:none;
padding:10px 15px;
color:white;
cursor:pointer;
}

.chatbot-wrapper{
position:fixed;
bottom:20px;
right:20px;
z-index:9999;
}

.welcome-bot{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.85);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

.bot-content{
background:#020617;
padding:30px;
border-radius:10px;
text-align:center;
color:white;
max-width:350px;
border:1px solid #7c3aed;
}

.bot-content h3{
margin-bottom:10px;
}

.bot-content button{
margin-top:15px;
padding:10px 20px;
border:none;
background:#7c3aed;
color:white;
border-radius:5px;
cursor:pointer;
}

.bot-content button:hover{
background:#9333ea;
}

.welcome-bot{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.bot-box{
background:#020617;
padding:30px;
border-radius:12px;
text-align:center;
border:1px solid #7c3aed;
color:white;
max-width:400px;
}

.bot-img{
width:120px;
margin-bottom:15px;
animation: float 3s ease-in-out infinite;
}

/* animação flutuando */

@keyframes float{

0%{transform:translateY(0px);}
50%{transform:translateY(-10px);}
100%{transform:translateY(0px);}

}

.bot-text{
min-height:60px;
margin-bottom:10px;
}

.bot-box button{
background:#7c3aed;
border:none;
padding:10px 20px;
color:white;
border-radius:6px;
cursor:pointer;
}

.bot-box button:hover{
background:#9333ea;
}

/* BOT BOAS VINDAS */

.welcome-bot{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#020617;
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.bot-box{
text-align:center;
color:white;
max-width:420px;
padding:30px;
border:1px solid #7c3aed;
border-radius:12px;
}

/* ROBÔ */

.robot{
margin:auto;
width:80px;
animation: float 3s ease-in-out infinite;
}

.head{
width:80px;
height:50px;
background:#7c3aed;
border-radius:10px;
display:flex;
justify-content:space-around;
align-items:center;
}

.eye{
width:10px;
height:10px;
background:white;
border-radius:50%;
animation: blink 4s infinite;
}

.body{
width:60px;
height:40px;
background:#9333ea;
margin:auto;
margin-top:5px;
border-radius:10px;
}

@keyframes blink{
0%,90%,100%{transform:scaleY(1);}
95%{transform:scaleY(0.1);}
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-10px);}
100%{transform:translateY(0);}
}

.bot-text{
margin-top:20px;
min-height:70px;
}

.bot-box button{
margin-top:15px;
background:#7c3aed;
border:none;
padding:10px 20px;
color:white;
border-radius:6px;
cursor:pointer;
}

.bot-box button:hover{
background:#9333ea;
}

/* HOLOGRAMA NO NOME */

.hologram{
font-size:48px;
font-weight:700;
position:relative;
color:#fff;
letter-spacing:2px;
text-transform:uppercase;
}

/* camada holográfica */

.hologram::before,
.hologram::after{
content:attr(data-text);
position:absolute;
left:0;
top:0;
width:100%;
overflow:hidden;
color:#7c3aed;
}

/* glitch 1 */

.hologram::before{
animation: glitchTop 2s infinite linear alternate-reverse;
clip-path: polygon(0 0,100% 0,100% 45%,0 45%);
}

/* glitch 2 */

.hologram::after{
animation: glitchBottom 2s infinite linear alternate-reverse;
clip-path: polygon(0 55%,100% 55%,100% 100%,0 100%);
}

/* animações */

@keyframes glitchTop{

0%{transform:translate(0)}
20%{transform:translate(-2px,-2px)}
40%{transform:translate(2px,2px)}
60%{transform:translate(-2px,1px)}
80%{transform:translate(2px,-1px)}
100%{transform:translate(0)}

}

@keyframes glitchBottom{

0%{transform:translate(0)}
20%{transform:translate(2px,2px)}
40%{transform:translate(-2px,-1px)}
60%{transform:translate(1px,2px)}
80%{transform:translate(-1px,-2px)}
100%{transform:translate(0)}

}

/* brilho holográfico */

.hologram{
text-shadow:
0 0 5px #7c3aed,
0 0 10px #7c3aed,
0 0 20px #7c3aed,
0 0 40px #9333ea;
}

#jogo-hacker{
padding:80px;
text-align:center;
}

.terminal-hacker{
background:black;
color:#00ff9c;
font-family:monospace;
max-width:600px;
margin:auto;
padding:20px;
border-radius:10px;
}

#saidaHacker{
height:200px;
overflow-y:auto;
text-align:left;
margin-bottom:10px;
}

#entradaHacker{
width:100%;
padding:10px;
background:#020617;
border:none;
color:#00ff9c;
font-family:monospace;
}

#neural-bg{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;
display:none;
}

.hacker-mode{
background:#000;
color:#00ff9c;
}

#hackerButton{
bottom:20px;
right:20px;
background:#7c3aed;
color:white;
border:none;
padding:12px 18px;
border-radius:8px;
cursor:pointer;
font-weight:bold;
}

#hackerButton:hover{
background:#5b21b6;
}

#bibotContainer{
position:fixed;
top:40px;
right:40px;
z-index:9999;
display:none;
flex-direction:column;
align-items:center;
}


/* linha */

.linha{
width:2px;
height:80px;
background:#00ffff;
box-shadow:0 0 10px #00ffff;
}

/* robô */

.bibot{
animation:balancar 3s ease-in-out infinite;
transform-origin:top;
}

.head{
width:50px;
height:40px;
background:#0ff;
border-radius:10px;
display:flex;
justify-content:space-around;
align-items:center;
box-shadow:0 0 20px #0ff;
}

.eye{
width:8px;
height:8px;
background:#000;
border-radius:50%;
animation:blink 3s infinite;
}

@keyframes blink{
0%,90%,100%{transform:scaleY(1)}
95%{transform:scaleY(0.1)}
}

.body{
width:30px;
height:40px;
background:#00ffff;
margin:auto;
border-radius:10px;
margin-top:5px;
box-shadow:0 0 20px #00ffff;
}

@keyframes balancar{

0%{transform:rotate(-8deg)}
50%{transform:rotate(8deg)}
100%{transform:rotate(-8deg)}

}

.bibotMessage{
margin-top:10px;
background:#0a0a0a;
padding:12px;
border-radius:10px;
width:220px;
font-size:14px;
color:#00ffff;
border:1px solid #00ffff;
box-shadow:0 0 10px #00ffff;
text-align:center;
}

.bibotButtons{
margin-top:10px;
}

.bibotButtons button{
background:#00ffff;
border:none;
padding:6px 10px;
margin:3px;
cursor:pointer;
border-radius:5px;
font-weight:bold;
}

.floating-controls{

position:fixed;
right:20px;
bottom:30px;

display:flex;
flex-direction:column;
gap:15px;

z-index:9999;

}

.floating-controls button{

width:55px;
height:55px;

font-size:24px;

border:none;
border-radius:50%;

cursor:pointer;

background:#00ffff;
color:#000;

box-shadow:0 0 15px #00ffff;

transition:0.3s;

}

.floating-controls button:hover{

transform:scale(1.1);

box-shadow:0 0 25px #00ffff;

}

.floating-controls{

position:fixed;
right:20px;
bottom:30px;

display:flex;
flex-direction:column;
gap:15px;

z-index:9999;

}

.floating-controls button{

width:55px;
height:55px;

font-size:24px;

border:none;
border-radius:50%;

cursor:pointer;

background:#00ffff;
color:#000;

box-shadow:0 0 15px #00ffff;

transition:0.3s;

}

.floating-controls button:hover{

transform:scale(1.1);

box-shadow:0 0 25px #00ffff;

}

.floating-controls{

position:fixed;
right:20px;
bottom:20px;

display:flex;
flex-direction:column;
align-items:center;

gap:15px;

z-index:9999;

}

/* todos os botões */

.floating-controls button{

width:60px;
height:60px;

border-radius:15px;

border:none;

font-size:26px;

cursor:pointer;

background:linear-gradient(135deg,#00ffff,#7c3aed);

color:white;

box-shadow:0 0 20px rgba(0,255,255,0.6);

transition:0.3s;

}

/* hover */

.floating-controls button:hover{

transform:scale(1.1);

box-shadow:0 0 30px #00ffff;

}

/* botões flutuantes */
.floating-controls{
z-index:1000;
}

/* quando chat estiver aberto */
.chat-open .floating-controls{
z-index:1;
}

.chat-open #lanterninha,
.chat-open #hackerButton{
opacity:0;
pointer-events:none;
}

/* esconder botão do chat quando aberto */

.chat-open button[onclick="toggleChat()"]{
opacity:0;
pointer-events:none;
}

.chatbot-container{
z-index:10000;
}

.chat-input button{
position:relative;
z-index:10001;
}

/* foto tremendo */

.shake{
animation:shake 0.3s infinite;
}

@keyframes shake{

0%{transform:translate(2px,2px)}
25%{transform:translate(-2px,2px)}
50%{transform:translate(2px,-2px)}
75%{transform:translate(-2px,-2px)}
100%{transform:translate(2px,2px)}

}

/* tela do scanner */

#aiScanner{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.95);

display:none;

justify-content:center;
align-items:center;

z-index:99999;

}

/* caixa */

.scanner-box{

background:#020617;

padding:40px;

border-radius:12px;

border:1px solid #7c3aed;

text-align:center;

width:400px;

box-shadow:0 0 30px #7c3aed;

}

/* linha de scanner */

#scanLine{

width:100%;
height:3px;

background:#00ffff;

margin-bottom:20px;

animation:scan 2s infinite;

}

@keyframes scan{

0%{transform:translateY(0)}
100%{transform:translateY(200px)}

}

/* análise */

.analysis{

margin-top:20px;

text-align:left;

}

.analysis p{

margin:10px 0;

}

/* comentário do bibot */

#bibotComment{

margin-top:20px;

color:#00ffff;

font-weight:bold;

}