* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body,
html {
  overflow-x: hidden;
}
body {
  line-height: 1.6;
  background-color: #eee;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  height: 100px; /* ✨ Cố định chiều cao navbar */
}

.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0; /* nếu đang dùng padding */
  margin-left: -50px; /* đẩy sát trái hơn */
}
.logo-container img {
  max-height: 100px; /* ✨ Giới hạn chiều cao ảnh */
  max-width: 700px; /* ✨ Giới hạn chiều rộng ảnh */
  height: auto; /* Giữ tỉ lệ khung hình */
  width: auto;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
}
.navbar ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #fff;
  bottom: 0;
  left: 50%;
  transition: all 0.3s ease;
}
.navbar ul li a:hover::after {
  width: 100%;
  left: 0;
}
.navbar ul li a:hover {
  color: #fff;
}

.hero {
  position: relative;
  width: 100%;
  height: 875px;
  background-size: cover;
  background-position: center 0px;
}

/* Main Content Layout */
.main-content {
  display: flex;
}

.projects {
  width: 70%;
  padding: 50px 20px;
  background-color: #fff;
}

.sidebar {
  width: 30%;
  padding: 50px 20px;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

/* Projects Section - Carousel */
.projects h2 {
  font-size: 40px;
  color: #2e7031;
  text-align: center;
  margin-bottom: 25px;
}

.projects p {
  font-size: 20px;
  color: #333;
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.project-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.project-carousel .carousel-slide {
  min-width: 50%; /* Hiển thị 2 slide cùng lúc (100% / 2 = 50%) */
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-date {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.carousel-slide h3 {
  font-size: 26px;
  color: #2e7031;
  margin-bottom: 10px;
}

.carousel-slide p {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.timer-box {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 60px;
}

.timer-box span {
  display: block;
  font-size: 24px;
  color: #2e7031;
  font-weight: 600;
}

.timer-box p {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.project-btn {
  display: inline-block;
  background: linear-gradient(to right, #2e7031, #3d8b40);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.project-btn:hover {
  transform: scale(1.03);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: #2e7031;
}

/* Sidebar: Đơn Vị Thực Hiện */
.partners h3 {
  font-size: 24px;
  color: #2e7031;
  margin-bottom: 20px;
}

.partner-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.partner-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.partner-info h4 {
  font-size: 18px;
  color: #2e7031;
  margin-bottom: 5px;
}

.partner-info p {
  font-size: 14px;
  color: #666;
}

/* Sidebar: Carousel Dự Án */
.project-carousel-sidebar {
  margin-top: 40px;
}

.project-carousel-sidebar h3 {
  font-size: 24px;
  color: #2e7031;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.project-carousel-sidebar .carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.carousel-slide h4 {
  font-size: 18px;
  color: #2e7031;
  margin-bottom: 10px;
}

.carousel-slide p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.carousel-btn {
  display: inline-block;
  background: linear-gradient(to right, #2e7031, #3d8b40);
  color: #fff;
  padding: 8px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.carousel-btn:hover {
  transform: scale(1.03);
}

/* Sidebar: Đếm Ngược */
.countdown {
  margin-top: 40px;
  text-align: center;
}

.countdown h3 {
  font-size: 24px;
  color: #2e7031;
  margin-bottom: 10px;
}

.countdown p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.timer-box {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 60px;
}

.timer-box span {
  display: block;
  font-size: 24px;
  color: #2e7031;
  font-weight: 600;
}

.timer-box p {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Footer */
.footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  background: #222;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-right {
  flex: 1 1 45%;
  margin-bottom: 20px;
}

.footer-left h3,
.footer-right h3 {
  color: #f2c94c;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer a {
  color: #9ecfff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .projects,
  .sidebar {
    width: 100%;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .project-carousel .carousel-slide {
    min-width: 100%; /* Hiển thị 1 slide trên màn hình nhỏ */
  }

  .timer-box {
    width: 50px;
  }

  .timer-box span {
    font-size: 20px;
  }

  .completed-project-container {
    flex-direction: column;
  }

  .completed-project-item {
    margin-bottom: 20px;
  }

  .fixed-buttons {
    top: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
  }
}

/* Sidebar: Dự Án Đã Thực Hiện */
.completed-projects {
  margin-top: 40px;
}

.completed-projects h3 {
  font-size: 24px;
  color: #2e7031;
  margin-bottom: 20px;
}

.completed-project-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.completed-project-item {
  flex: 1;
  display: flex;
  flex-direction: column; /* Chuyển layout thành dọc */
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center; /* Căn giữa nội dung */
}

.completed-project-item img {
  width: 100%; /* Hình ảnh full chiều rộng */
  height: 150px; /* Tương tự chiều cao của hình ảnh trong "Dự Án Sắp Tới" */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.completed-project-info {
  flex: 1;
}

.completed-project-info h4 {
  font-size: 18px;
  color: #2e7031;
  margin-bottom: 5px;
}

.completed-project-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.view-details-btn {
  display: inline-block;
  color: #00aaff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s;
}

.view-details-btn:hover {
  transform: scale(1.03);
  text-decoration: underline;
}

.divider {
  width: 100%;
  height: 4px;
  background-color: #2e7031; /* Màu xanh chủ đạo của trang */
  margin: 30px 0; /* Khoảng cách trên dưới */
  border-radius: 2px; /* Bo góc nhẹ */
}
.btn-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
.call-button,
.zalo-button,
.back-top-button {
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.2s;
  animation: bounce 1.5s infinite, pulse 2s infinite;
}
.call-button:hover,
.zalo-button:hover,
.back-top-button:hover {
  transform: scale(1.1); /* Phóng to khi hover */
}
.call-button {
  background-color: #ff4d4d; /* Màu đỏ cho nút gọi */
}
.zalo-button {
  background-color: #0068ff; /* Màu xanh của Zalo */
}
.back-top-button {
  background-color: #00cc00; /* Màu xanh lá cho nút quay lại */
  opacity: 0;
  visibility: hidden;
}
.call-button::after,
.zalo-button::after,
.back-top-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: ripple 1.6s infinite;
  z-index: -1;
}
.call-button::after {
  background: rgba(255, 77, 77, 0.3); /* Vòng sóng đỏ */
}
.zalo-button::after {
  background: rgba(0, 104, 255, 0.3); /* Vòng sóng xanh */
}
.back-top-button::after {
  background: rgba(0, 204, 0, 0.3); /* Vòng sóng xanh lá */
}
.call-button img,
.zalo-button img,
.back-top-button img {
  width: 30px;
  height: 30px;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
/* Hiển thị nút quay lại khi cuộn lên */
.show {
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 1200px) {
  .navbar{
    padding: 10px 20px;
  }
    .navbar ul{
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 10px;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar .logo-container::after {
        content: "☰";
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }
}