body {
  font-family: "Times New Roman", Times, serif;
  background: url("anh2.gif");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-size: contain;
  background-repeat: repeat;
}

nav {
  max-height: fit-content;
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.navbar-brand {
  font-size: 22px;
}

.nav-item {
  margin-left: 10px;
}

.nav-link {
  color: black;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
  padding: 6px 15px;
}

.nav-link:hover {
  background: #d6d2d2;
}

.nav-link.active {
  background: orange;
  color: white !important;
}

.nav-link i {
  margin-right: 5px;
}

.main-content {
  margin-top: 100px;
  text-align: center;
  padding: 20px;
  flex: 1;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover; 
  margin-bottom: 15px;
  /* object-position: left */
}

.intro-text {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 5px;
  color: black;
}

.btn-custom {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background: linear-gradient(to right, #0056b3, #0099cc);
  transform: scale(1.05);
}

footer {
  /* background: rgba(0, 0, 0, 0.7); */
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: black;
  padding: 3px 15px;
  border-radius: 8px;
  border: 2px solid black;
  background: white;
  transition: 0.3s;
  margin: 5px;
}

.social a:hover {
  background: rgb(53, 164, 205);
  color: white;
}

.social i {
  width: 30px;
  height: 30px;
  font-size: 20px;
  border-radius: 50%;
  border: 3px solid #d2cece;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-github {
  color: black;
}
.fa-facebook {
  color: #1877f2;
}
.fa-linkedin {
  color: #0a66c2;
}
.fa-comments {
  color: #0088cc;
}

#projects {
  height: 1000px;
  display: none;
  margin-top: 50px;
  max-width: 600px; /* Limit width for better readability */
  margin-left: auto;
  margin-right: auto; /* Center horizontally */
}

#projects a {
  display: block;
  margin-bottom: 10px;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  padding: 5px;
}

#navbarNav {
  margin-top: 20px;
}

.vd {
  margin-bottom: 120px;
}

.vd {
  position: relative;
  padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
  height: 0;
  overflow: hidden;
}

.vd iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .an_di {
    display: none;
  }

  .main-content {
    margin-top: 80px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .intro-text p {
    font-size: 14px;
    color: white;
  }

  .btn-custom {
    font-size: 16px;
  }

  .navbar-brand {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .an_di {
    display: none;
  }

  h1 {
    font-size: 24px;
  }

  #projects a,
  h2 {
    font-size: larger;
  }

  #projects p {
    color: white;
  }
}
