*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins', sans-serif;
  background: #0f0f0f;
  color: rgb(252, 250, 250);
  line-height: 1.6;
}

/* HERO */

.hero{
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 100px 20px;

  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url('images/background.jpg');

  background-size: cover;

  background-position: center;

  background-attachment: fixed;
}

/* ẢNH NỀN THỨ 2 */

.hero::before{
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.35)
    ),
    url('images/background2.jpg');

  background-size: cover;

  background-position: center;

  opacity: 0.35;

  z-index: 0;

  animation: floatBg 10s ease-in-out infinite;
}

/* CHỮ HERO */

.hero-content{
  max-width: 800px;

  position: relative;

  z-index: 2;
}

.role{
  letter-spacing: 6px;
  margin-bottom: 15px;
  color: #d4d4d4;
}

.hero h1{
  font-size: 65px;
  margin-bottom: 20px;
}

.quote{
  font-size: 22px;
  color: #f1f1f1;
  margin-bottom: 35px;
}

.btn{
  display: inline-block;

  padding: 15px 30px;

  background: #8b5cf6;
  color: white;

  text-decoration: none;

  border-radius: 14px;

  transition: 0.3s;
}

.btn:hover{
  transform: translateY(-5px);
}

/* ANIMATION */

@keyframes floatBg{

  0%{
    transform: scale(1) translateY(0px);
  }

  50%{
    transform: scale(1.05) translateY(-10px);
  }

  100%{
    transform: scale(1) translateY(0px);
  }

}

/* PHẦN TỪ ABOUT TRỞ XUỐNG */

main{
  background:
    linear-gradient(
      rgba(0,0,0,0.78),
      rgba(0,0,0,0.78)
    ),
    url('images/background2.jpg');

  background-size: cover;

  background-position: center;

  background-attachment: fixed;
}

/* SECTION */

.section{
  padding: 100px 8%;

  position: relative;

  overflow: hidden;
}

.section-title{
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2{
  font-size: 42px;
}

/* ABOUT */

.about-content{
  display: flex;
  justify-content: center;
}

.about-card{
  max-width: 800px;

  background: rgba(24,24,24,0.85);

  backdrop-filter: blur(8px);

  padding: 40px;

  border-radius: 25px;

  text-align: center;

  border: 1px solid rgba(255,255,255,0.08);
}

/* SKILLS */

.skills-grid{
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));

  gap: 25px;
}

.skill-card{
  background: rgba(24,24,24,0.85);

  padding: 30px;

  border-radius: 20px;

  transition: 0.3s;

  backdrop-filter: blur(5px);
}

.skill-card:hover{
  transform: translateY(-10px);
  background: #8b5cf6;
}

/* PROJECTS */

.project-grid{
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));

  gap: 30px;
}

.project-card{
  background: rgba(24,24,24,0.88);

  border-radius: 20px;

  overflow: hidden;

  transition: 0.3s;

  backdrop-filter: blur(5px);
}

.project-card:hover{
  transform: translateY(-10px);
}

.project-card img{
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-content{
  padding: 25px;
}

/* CONTACT */

.contact-container{
  text-align: center;
}

.contact-links{
  margin-top: 30px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 20px;
}

.contact-links a{
  text-decoration: none;

  color: white;

  background: #8b5cf6;

  padding: 14px 24px;

  border-radius: 12px;

  transition: 0.3s;
}

.contact-links a:hover{
  transform: scale(1.05);
}

/* FOOTER */

footer{
  text-align: center;

  padding: 30px;

  border-top: 1px solid rgba(255,255,255,0.1);

  background: rgba(0,0,0,0.5);
}

/* RESPONSIVE */

@media(max-width:768px){

  .hero h1{
    font-size: 42px;
  }

  .quote{
    font-size: 18px;
  }

  .section-title h2{
    font-size: 32px;
  }


}