html {
  scroll-behavior: smooth;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Lớp khi được kích hoạt */
.fade-up-animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-left-animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-right-animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-up-animate {
  opacity: 1;
  transform: scale(1);
}

/* Thanh kỹ năng animate */
.progress {
  transition: width 1.5s ease-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Comfortaa', 'Poppins', sans-serif;
}

body {
  background-color: #081b29;
  color: #ededed;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(8, 27, 41, 0.9);
}

.logo {
  font-size: 25px;
  color: #ededed;
  text-decoration: none;
  font-weight: 600;
}

.navbar a {
  font-size: 18px;
  color: #ededed;
  text-decoration: none;
  position: relative;
  font-weight: 500;
  margin-left: 35px;
  transition: .3s;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #00abf0;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: #00abf0;
}

.home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  position: relative;
}

.home-content {
  max-width: 600px;
  z-index: 1;

}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  animation: fadeInUp 0.8s ease forwards 0.2s;
  opacity: 0;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #00abf0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

.home-content p {
  font-size: 16px;
  margin: 20px 0 40px;
  animation: fadeInUp 0.8s ease forwards 0.6s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-box {
  display: flex;
  gap: 20px;
}

.btn-box a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 50px;
  background: #00abf0;
  color: #081b29;
  border: 2px solid #00abf0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.4s;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-box a:nth-child(2) {
  background: transparent;
  color: #00abf0;
}

.btn-box a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00abf0;
}

.btn-box a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #ededed;
  z-index: -1;
  transition: 0.5s;
}

.btn-box a:hover::before {
  width: 100%;
}

.home-img img {
  width: 400px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.home-social {
  position: absolute;
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.home-social a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 2px solid #00abf0;
  color: #00abf0;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.home-social a:hover {
  background: #00abf0;
  color: #081b29;
  transform: rotate(10deg) scale(1.1);
}


#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.home-img {
  position: relative;
  left: 110px;
  width: 440px;
  /* tăng container lên */
  height: 440px;
  /* tăng container lên */
  z-index: 1;
  pointer-events: none;
  /* Tắt khả năng nhấp chuột vào ảnh */

}

.home {
  align-items: center;
  justify-content: space-between;
  /* Đẩy phần tử về 2 phía */
  align-items: center;
  /* Căn giữa theo chiều dọc */
}

.home-img .blob {
  position: absolute;
  top: -40px;
  left: -20px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 171, 240, 0.4), transparent 70%);
  filter: blur(80px);
  z-index: -2;
  clip-path: polygon(50% 0%, 85% 20%, 100% 55%, 75% 100%, 40% 85%, 10% 60%, 0% 25%);
}

/* ảnh profile */
.home-img img {
  width: 75%;
  height: 110%;
  object-fit: cover;

  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none !important;
  user-select: none !important;
  cursor: default !important;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;

}

html,
body {
  user-select: none !important;

  cursor: default !important;
}

.about {
  padding: 100px 10%;
  background: #081b29;
  color: #ededed;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #00abf0;
  display: block;
  margin: 10px auto 30px;
}

.about-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

.about-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 171, 240, 0.3);
  padding: 25px;
  border-radius: 12px;
  z-index: 1;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.about-card i {
  font-size: 1.8rem;
  color: #00abf0;
  margin-bottom: 10px;
}

.about-card h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: #00abf0;
}

.about-card p {
  font-size: 1rem;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 171, 240, 0.25);
}


@media (max-width: 768px) {
  .about {
    padding: 60px 5%;
  }
}

.skills {
  padding: 100px 10%;
  background: #081b29;
  color: #ededed;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 171, 240, 0.3);
  padding: 25px;
  border-radius: 12px;
  z-index: 1;
  text-align: center;
  transition: transform .3s ease;
}

.skill-card i {
  font-size: 2rem;
  color: #00abf0;
  margin-bottom: 10px;
}

.skill-card p {
  margin: 0;
  font-size: 1rem;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 171, 240, 0.2);
}

.skills-bars {
  margin-top: 50px;

}

.skill-bar {
  margin-bottom: 20px;
}

.skill-bar span {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #00abf0;
  width: 0;
  transition: width 1s ease;
}

.projects-section {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #38bdf8;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background-color: #1e293b;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease 0.2s;
  z-index: 1;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(80, 163, 247, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
  border-color: rgba(0, 206, 255, 0.4);
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-content {
  padding: 20px;
  text-align: left;
}

.project-title {
  font-size: 1.5rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.tech-used {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 15px;
}

.btn-project {
  display: inline-block;
  background-color: #38bdf8;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-project:hover {
  background-color: #0ea5e9;
  color: white;
}

.contact-section {
  padding: 80px 20px;
  text-align: center;

}

.contact-section .container {
  max-width: 700px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #007bff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border 0.3s;
  z-index: 1;

}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;

}

.contact-form button {
  padding: 15px;
  background: #007bff;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1;

}

.contact-form button:hover {
  background: #0056b3;
}

.footer {
  background: #0a2a3c;
  color: #ededed;
  padding: 30px 10%;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 1;
}

.footer p {
  font-size: 14px;
  color: #b0c4d4;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  z-index: 1;
  text-decoration: none;
  color: #00abf0;
  font-size: 18px;
  border: 1px solid #00abf0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #00abf0;
  color: #081b29;
  transform: scale(1.1);
}