/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Share Tech Mono', monospace;

  background:
    linear-gradient(
      to top,
      rgba(12,10,22,0.95) 0%,
      rgba(12,10,22,0.7) 40%,
      rgba(12,10,22,0.3) 70%,
      rgba(12,10,22,0) 100%
    ),
    url("assets/space.gif") center bottom / cover no-repeat fixed;

  color:#ccc;
  scroll-behavior:smooth;
  overflow-x:hidden;
}

/* ================= GRID BACKGROUND ================= */
.grid-bg{
  position:fixed;
  width:100%;
  height:100%;
  background-image:
    linear-gradient(rgba(255,46,166,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,46,166,0.05) 1px, transparent 1px);
  background-size:40px 40px;
  z-index:-1;
}

/* ================= HEADER ================= */
header{
  position:fixed;
  top:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 10%;
  background:#0c0a16;
  z-index:100;
}

.logo{
  color:#ff2ea6;
  font-size:18px;
}

nav a{
  margin-left:30px;
  text-decoration:none;
  color:#aaa;
  transition:0.3s;
}

nav a:hover{
  color:#ff2ea6;
}

/* ================= HERO ================= */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:120px 10%;
}

.hero-container{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:60px;
}

/* BIG TITLE */
.hero h1{
  font-size:clamp(38px,4.5vw,60px);
  line-height:1.2;
  margin-bottom:20px;
}

.neon{
  color:#ff2ea6;
  font-size:clamp(48px,5.5vw,70px);
  text-shadow:0 0 12px rgba(255,46,166,0.6);
}

.typing-line{
  margin:20px 0;
  min-height:30px;
}

.cursor{
  margin-left:5px;
  animation:blink 1s infinite;
}

@keyframes blink{
  50%{opacity:0}
}

.description{
  max-width:550px;
  line-height:1.7;
  margin-bottom:30px;
  color:#aaa;
}

/* ================= BUTTONS ================= */
.buttons{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.btn{
  border:1px solid #ff2ea6;
  padding:12px 22px;
  color:#ff2ea6;
  text-decoration:none;
  transition:0.3s;
}

.btn:hover{
  background:#ff2ea6;
  color:#0c0a16;
}

.btn-outline{
  border:1px solid #555;
  padding:12px 22px;
  color:#aaa;
  text-decoration:none;
  transition:0.3s;
}

.btn-outline:hover{
  border-color:#ff2ea6;
  color:#ff2ea6;
}

/* ================= HERO IMAGE ================= */
.hero-image img{
  width:320px;
  border-radius:12px;
  border:2px solid #ff2ea6;
  box-shadow:0 0 25px rgba(255,46,166,0.6);
}

/* ================= SECTIONS ================= */
.section{
  padding:120px 10%;
}

.section-title{
  color:#ff2ea6;
  margin-bottom:50px;
  font-size:22px;
}

/* ================= ABOUT GRID ================= */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:flex-start;
}

.about-text p{
  margin-bottom:20px;
  line-height:1.7;
  color:#aaa;
}

/* TERMINAL BOX */
.terminal-box{
  background:#111;
  border:1px solid #222;
  padding:20px;
  font-size:0.9rem;
}

.terminal-command{
  color:#ff2ea6;
  margin-bottom:10px;
}

.terminal-box pre{
  white-space:pre-wrap;
  color:#ccc;
}

/* ================= SKILLS ================= */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
  gap:40px;
}

.skill{
  margin-bottom:30px;
  position:relative;
}

.skill span:first-child{
  display:inline-block;
  margin-bottom:6px;
  font-size:0.9rem;
}

.percent{
  position:absolute;
  right:0;
  top:0;
  color:#ff2ea6;
  font-size:0.9rem;
}

.bar{
  background:#222;
  height:8px;
  border-radius:4px;
  overflow:hidden;
}

.bar div{
  height:100%;
  background:#ff2ea6;
  border-radius:4px;
  box-shadow:0 0 8px rgba(255,46,166,0.6);
}

/* ================= TOOLS ================= */
.tools-list{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
  margin-top:30px;
}

.tools-list span{
  border:1px solid #ff2ea6;
  padding:8px 16px;
  font-size:0.8rem;
  color:#ff2ea6;
  transition:0.3s;
}

.tools-list span:hover{
  background:#ff2ea6;
  color:#0c0a16;
}

/* ================= PROJECTS ================= */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.project-card{
  border:1px solid #222;
  padding:25px;
  background:#111;
  transition:0.3s;
}

.project-card:hover{
  border-color:#ff2ea6;
  transform:translateY(-6px);
}

.project-card h3{
  color:#ff2ea6;
  margin-bottom:10px;
}

.tags{
  margin-top:15px;
  font-size:0.85rem;
  color:#888;
}

/* ================= CONTACT ================= */
.contact-form{
  max-width:500px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  background:#111;
  border:1px solid #333;
  padding:12px;
  margin-bottom:15px;
  color:#fff;
  font-family:'Share Tech Mono', monospace;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#ff2ea6;
}

button{
  cursor:pointer;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){

  .hero-container{
    flex-direction:column;
    text-align:center;
  }

  .hero-image img{
    width:240px;
  }

  .about-grid{
    grid-template-columns:1fr;
  }

  nav a{
    margin-left:15px;
  }

}
/* ================= TERMINAL UPGRADE ================= */

.terminal-box{
  background:#0f0f18;
  border:1px solid #1f1f2e;
  border-radius:8px;
  overflow:hidden;
  font-size:0.85rem;
  box-shadow:0 0 20px rgba(255,46,166,0.1);
}

.terminal-header{
  display:flex;
  align-items:center;
  gap:8px;
  background:#151526;
  padding:8px 12px;
  border-bottom:1px solid #222;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
}

.red{ background:#ff5f56; }
.yellow{ background:#ffbd2e; }
.green{ background:#27c93f; }

.terminal-title{
  margin-left:10px;
  font-size:0.75rem;
  color:#777;
}

.terminal-content{
  padding:15px 20px;
}

.terminal-command{
  color:#ff2ea6;
  margin-bottom:10px;
}

pre{
  white-space:pre-wrap;
  line-height:1.6;
}

/* Syntax highlight */
.key{
  color:#ff2ea6;
}

.value{
  color:#9cdcfe;
}

.array{
  color:#ce9178;
}

.highlight{
  color:#4ec9b0;
}

.hero-image img{
  width: 280px;
  border-radius: 10%;

  /* glow nhẹ */
  box-shadow: 0 0 25px rgba(255,46,166,0.4);

  /* animation mượt */
  animation: floatSmooth 4s ease-in-out infinite;
}

/* chuyển động lên xuống nhẹ */
@keyframes floatSmooth{
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
