*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

/* BACKGROUND */

body{
background:linear-gradient(270deg,#020617,#0f172a,#020617);
background-size:400% 400%;
animation:bgMove 12s infinite alternate;
color:white;
overflow-x:hidden;
}

@keyframes bgMove{
0%{background-position:left}
100%{background-position:right}
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:0 60px;
background:#020617;
border-bottom:1px solid #1e293b;
flex-wrap:wrap;
}

.logo img{
width:80px;
height: 80px;
object-fit:contain;
}

/* nếu muốn hover đẹp */
.logo img:hover{
transform:scale(1.05);
transition:0.3s;
}

nav{
display:flex;
flex-wrap:wrap;
}

nav a{
color:white;
margin-left:20px;
text-decoration:none;
transition:.3s;
}

nav a:hover{
color:#00f2ff;
}

/* HERO */

.hero{
text-align:center;
padding:80px 20px;
}

.avatar{
width:180px;
height:180px;
border-radius:50%;
border:4px solid #00f2ff;
margin-bottom:20px;
transition:.4s;
object-fit:cover;
}

.avatar:hover{
box-shadow:
0 0 25px #00f2ff,
0 0 60px #00f2ff;
}

.hero h1{
font-size:40px;
margin-bottom:10px;
}

.hero p{
max-width:600px;
margin:auto;
color:#cbd5f5;
}

/* SOCIAL */

.social{
margin-top:20px;
text-align:center;
}

.social a{
display:inline-block;
padding:10px 18px;
margin:6px;
background:#020617;
border:1px solid #00f2ff;
border-radius:6px;
cursor:pointer;
transition:.3s;
}

.social a:hover{
background:#00f2ff;
color:black;
transform:translateY(-4px);
}

/* ABOUT */

.about{
display:flex;
justify-content:center;
gap:60px;
padding:80px 20px;
flex-wrap:wrap;
}

.skills,
.info{
width:350px;
}

.skills h2,
.info h2{
margin-bottom:20px;
}

/* SKILL */

.skill{
margin-bottom:18px;
}

.skill-title{
display:flex;
justify-content:space-between;
margin-bottom:6px;
}

.bar{
background:#1e293b;
height:10px;
border-radius:20px;
overflow:hidden;
}

.bar div{
height:10px;
background:#00f2ff;
}

/* INFO */

.info p{
margin-bottom:8px;
color:#cbd5f5;
}

/* PROJECT */

.projects{
padding:80px 20px;
text-align:center;
}

.projects h2{
margin-bottom:40px;
}

.project-list{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:30px;
}

.project{
width:300px;
background:#020617;
padding:20px;
border-radius:10px;
border:1px solid #1e293b;
transition:.4s;
}

.project:hover{
transform:translateY(-10px);
box-shadow:0 0 20px #00f2ff50;
}

.project h3{
color:#00f2ff;
margin-bottom:10px;
}

.project p{
font-size:14px;
margin-bottom:10px;
color:#cbd5f5;
}

.project a{
display:inline-block;
margin-top:10px;
color:#00f2ff;
text-decoration:none;
}

/* FOOTER */

footer{
text-align:center;
padding:30px;
border-top:1px solid #1e293b;
margin-top:60px;
color:#94a3b8;
}

/* ROCKET */

.rocket{
position:fixed;
font-size:40px;
top:120px;
left:-100px;
animation:rocketFly 14s linear infinite;
}

@keyframes rocketFly{
0%{left:-100px}
100%{left:110%}
}

/* PARTICLE */

.particle{
position:fixed;
bottom:-10px;
background:#00f2ff;
border-radius:50%;
pointer-events:none;
animation:float linear forwards;
opacity:0.6;
}

@keyframes float{
0%{transform:translateY(0);opacity:0}
20%{opacity:1}
100%{transform:translateY(-100vh);opacity:0}
}

/* CURSOR */

.cursor-glow{
position:fixed;
width:20px;
height:20px;
border-radius:50%;
background:#00f2ff;
pointer-events:none;
filter:blur(10px);
z-index:9999;
}

/* STAR CANVAS */

#stars{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;
}

/* ANIMATION SCROLL */

.hidden{
opacity:0;
transform:translateY(40px);
transition:1s;
}

.show{
opacity:1;
transform:translateY(0);
}

/* RESPONSIVE */

@media (max-width:768px){
.about{
flex-direction:column;
align-items:center;
}

.skills,
.info{
width:90%;
}

.hero h1{
font-size:28px;
}
}

@media (max-width:480px){
header{
flex-direction:column;
text-align:center;
}

nav{
justify-content:center;
margin-top:10px;
}

.avatar{
width:120px;
height:120px;
}

.hero h1{
font-size:22px;
}

.project{
width:90%;
}
}


header h2{
color:#38bdf8;
}

nav{
display:flex;
gap:20px;
}

nav a{
color:white;
text-decoration:none;
transition:.3s;
}

nav a:hover{
color:#38bdf8;
}

/* CV LAYOUT */

.cv{
max-width:1100px;
margin:40px auto;
display:flex;
background:white;
box-shadow:0 0 20px rgba(0,0,0,0.1);
border-radius:10px;
overflow:hidden;
}

/* LEFT */

.left{
width:35%;
background:#0f172a;
color:white;
padding:30px 20px;
}

.avatar{
width:120px;
height:120px;
border-radius:50%;
display:block;
margin:0 auto 15px;
object-fit:cover;
border:3px solid #38bdf8;
}

.name{
text-align:center;
margin-bottom:20px;
}

.name p{
color:#94a3b8;
}

.section{
margin-bottom:25px;
}

.section h3{
margin-bottom:10px;
border-bottom:1px solid #334155;
padding-bottom:5px;
}

.section p{
font-size:14px;
line-height:1.6;
color:#cbd5f5;
}

/* RIGHT */

.right{
width:65%;
padding:30px;
color:#333;
}

.block{
margin-bottom:30px;
}

.block h2{
margin-bottom:10px;
color:#0f172a;
border-left:4px solid #38bdf8;
padding-left:10px;
}

.block p{
line-height:1.6;
margin-bottom:10px;
}

/* JOB */

.job{
margin-top:15px;
padding:15px;
background:#f8fafc;
border-radius:8px;
border-left:4px solid #38bdf8;
}

.job b{
display:block;
margin-bottom:5px;
}

.date{
float:right;
color:#64748b;
font-size:13px;
}

.job ul{
margin-top:8px;
padding-left:20px;
}

.job ul li{
margin-bottom:5px;
}

/* RESPONSIVE */

@media (max-width:768px){

.cv{
flex-direction:column;
}

.left, .right{
width:100%;
}

.date{
float:none;
display:block;
margin-top:5px;
}

header{
flex-direction:column;
gap:10px;
text-align:center;
}

nav{
justify-content:center;
}
}
.snow{
position:fixed;
top:-10px;
background:white;
border-radius:50%;
pointer-events:none;
animation:fall linear forwards;
z-index:9999;
opacity:0.8;
}

@keyframes fall{
0%{
transform:translateY(0);
opacity:0;
}
20%{
opacity:1;
}
100%{
transform:translateY(100vh);
opacity:0;
}
}

/* Bank */
.popup-content{
background:linear-gradient(135deg,#0f172a,#020617);
color:white;
padding:35px;
border-radius:20px;
width:420px; /* TO HƠN */
max-width:90%;
text-align:center;
box-shadow:0 0 50px rgba(0,170,255,0.6);
animation:zoomIn 0.3s ease;
position:relative;
}

/* QR TO HƠN */
.popup-content img{
margin-top:20px;
width:260px;
border-radius:10px;
box-shadow:0 0 20px rgba(0,170,255,0.7);
}

/* INPUT đẹp hơn */
.popup-content input{
width:100%;
padding:12px;
margin:12px 0;
border-radius:10px;
border:1px solid rgba(0,170,255,0.3);
background:#020617;
color:white;
font-size:16px;
}

/* BUTTON xịn hơn */
.popup-content button{
width:100%;
margin-top:12px;
padding:12px;
border:none;
background:linear-gradient(45deg,#00aaff,#00f2ff);
color:#000;
border-radius:10px;
cursor:pointer;
font-weight:bold;
font-size:16px;
transition:0.3s;
}

.popup-content button:hover{
transform:scale(1.05);
box-shadow:0 0 20px #00aaff;
}

/* TITLE */
.popup-content h2{
font-size:22px;
margin-bottom:10px;
}

/* animation */
@keyframes zoomIn{
from{transform:scale(0.7);opacity:0;}
to{transform:scale(1);opacity:1;}
}
/* ===== RESPONSIVE POPUP ===== */

/* Tablet */
@media (max-width:768px){

.popup-content{
width:90%;
padding:25px;
}

.popup-content h2{
font-size:20px;
}

.popup-content img{
width:220px;
}

}

/* Mobile */
@media (max-width:480px){

.popup-content{
width:95%;
padding:20px;
border-radius:15px;
}

.popup-content h2{
font-size:18px;
}

.popup-content p{
font-size:14px;
}

.popup-content input{
font-size:14px;
padding:10px;
}

.popup-content button{
font-size:14px;
padding:10px;
}

.popup-content img{
width:180px;
}

/* nút đóng dễ bấm hơn */
.close{
font-size:28px;
top:8px;
right:12px;
}

}
.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
backdrop-filter:blur(8px);

display:flex;
justify-content:center;
align-items:center; /* QUAN TRỌNG */

z-index:9999;
}