/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Times New Roman', Arial, sans-serif;
}

/* Header */
.fixed-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #0056b3;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.fixed-header:hover {
  background-color: #003d80;
}

/* Navbar logo và menu toggle */
.navbar {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  display: inline-block;
  margin-right: 10px;
  border: none; /* Xóa viền */
  background-color: transparent; /* Xóa màu nền */
  box-shadow: none; /* Xóa bóng */
}

.navbar-toggler .navbar-toggler-icon {
  width: 25px;
  height: 3px;
  background-color: white;
  position: relative;
  display: block;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  width: 25px;
  height: 3px;
  background-color: white;
  position: absolute;
  left: 0;
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
  background-color: #f8f9fa; /* Đổi sang màu sáng khi hover */
}

.navbar-toggler:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* Navbar logo */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-left: 10px;
  white-space: nowrap;
}

/* Định dạng chọn ngôn ngữ */
#language-selector {
  padding: 5px 10px;
  font-size: 0.9rem;
  background-color: white;
  color: #0056b3;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-left: auto;
}

.fixed-header .ms-auto {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Welcome Section với ảnh nền */
.welcome-section {
  background: url('images/background.jpg') no-repeat center center;
  background-size: contain;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  color: white;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  overflow: hidden;
  height: auto;
  min-height: 300px;
}

/* Logo tách biệt với hiệu ứng */
.welcome-section .logo-img {
  position: absolute;
  top: 50%;
  left: 78%;
  width: 210%;
  max-width: 290px;
  height: 60%;
  border-radius: 50%;
  border: none;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.welcome-section .logo-img:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
#about {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
  border-top: 2px solid #ddd;
}

#about h2 {
  color: #004aad;
  margin-bottom: 20px;
  font-size: 2rem;
}

#about p.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* Xóa dấu đầu dòng trong danh sách */
#about-list {
  list-style: none;
  padding: 0;
}

#about-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 40px 20px;
  border-top: 3px solid #00aaff;
}

footer .btn-primary {
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  margin: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

footer .btn-primary:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

footer .d-flex {
  flex-direction: row;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  @media (max-width: 768px) {
    .welcome-section {
      background-size: contain; /* Đảm bảo hiển thị đầy đủ ảnh nền trên điện thoại */
      min-height: auto; /* Loại bỏ chiều cao tối thiểu để vừa với tỷ lệ ảnh */
      height: auto; /* Tự động điều chỉnh chiều cao */
    }
  }  

  .welcome-section .logo-img {
    width: 150px;   /* Kích thước logo cho điện thoại */
    height: 150px;
    top: 50%;       /* Giữ nguyên vị trí theo chiều dọc */
    left: 78%;      /* Vị trí ngang giữ nguyên như trên máy tính */
    transform: translate(-50%, -50%);
  }

  #about .list-group-item {
    font-size: 1rem;
    padding: 8px 15px;
  }

  footer {
    padding: 20px 10px;
  }

  .navbar-toggler {
    margin-right: 10px;
  }

  #language-selector {
    margin-left: auto;
    width: auto;
  }
}

/* Hiệu ứng fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}