/* Reset and General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
}

/* Navbar */
/* (Thêm style cho navbar nếu cần) */

#preloader {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 9999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#preloader-logo img {
  width: 120px;
  max-width: 80vw;
  height: auto;
  animation: pulse 1.5s infinite alternate ease-in-out;
}

/* Animation hiệu ứng nhịp tim */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Ẩn preloader sau khi trang load */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  /* Điều chỉnh độ rộng tối đa */
  padding: 0 20px;
  /* Thêm padding ngang */
}

.hero-content h1,
.hero-content p {
  color: white;
}

.scroll-down-icon {
  animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
}

/* About Section */
.photo-stack {
  position: relative;
  /* Thêm để giới hạn kích thước */
  width: 100%;
  /* Chiều rộng tối đa bằng phần tử cha */
  max-width: 500px;
  /* Giới hạn chiều rộng tối đa (tùy chỉnh) */
  margin-left: auto;
  /* Để căn giữa, nếu muốn */
  margin-right: auto;
}

.framed-image {
  width: 100%;
  /* Để ảnh responsive */
  height: auto;
  /* Để ảnh responsive */
  border: 4px solid white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  /* Quan trọng */
  top: 0;
  left: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  /* Thêm transition */
  border-radius: 10px;
}

.second-image {
  transform: rotate(5deg) translateY(20px);
  /* Xoay và di chuyển ảnh thứ hai */
  z-index: 2;
  /* Đảm bảo ảnh thứ hai nằm trên ảnh đầu tiên */
}

.third-image {
  transform: rotate(-5deg) translateY(40px);
  z-index: 3;
}

/* Hover effect (optional) */
.photo-stack:hover .framed-image {
  transform: scale(1.1) rotate(0deg) translateY(0);
  /* Phóng to khi hover */
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 4;
}

.photo-stack:hover .second-image {
  transform: scale(1.05) rotate(5deg) translateY(20px);
  z-index: 5;
}

.photo-stack:hover .third-image {
  transform: scale(1.05) rotate(-5deg) translateY(40px);
  z-index: 6;
}

.value-item i {
  color: #35c4fe;
  /* Màu xanh ngọc, hoặc màu khác trong bảng màu của bạn */
  transition: transform 0.3s ease;
  /* Hiệu ứng khi hover */
}

.value-item:hover i {
  transform: scale(1.1);
  color: #2692ed;
}

.value-item h4 {
  color: #1950b4;
}

/*Achievement*/
.achievement-item {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-color: #2692ed;
  /* Hoặc màu khác trong bảng màu */
}

.achievement-item:hover i {
  color: #1950b4;
}

/* Related Groups (Cards with Background Image) */
.group-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.group-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.group-card:hover .group-card__bg {
  filter: blur(2px);
}

.group-card__content {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.group-card__title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.group-card__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #555;
}

.group-card__description {
  margin-bottom: 15px;
  line-height: 1.4;
  color: #444;
  flex-grow: 1;
}

.group-card__links {
  margin-top: auto;
}

.group-card__links a {
  color: #3498db;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  margin: 0 5px;
}

/* Swiper Styles (nếu dùng slider) */
.swiper {
  width: 100%;
  padding-bottom: 50px;
}

.swiper-pagination-bullet {
  background-color: #bbb;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background-color: #3498db;
}

.swiper-button-next,
.swiper-button-prev {
  color: #3498db;
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 8px);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* Hoặc màu nền khác */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Đảm bảo preloader nằm trên cùng */
}

#preloader-logo img {
  width: 200px; /* Điều chỉnh kích thước logo */
  /* Thêm style cho logo nếu cần */
}

.category-card {
  position: relative;
  overflow: hidden; /* Ẩn phần ảnh bị tràn */
  border-radius: 16px; /* Bo tròn góc (Material Design) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Đổ bóng (Material Design) */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 250px;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-8px); /* "Nâng" card lên khi hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Đổ bóng đậm hơn khi hover */
}

.category-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: filter 0.5s ease;
  filter: brightness(0.6); /* Làm tối ảnh */
}

/* (Tùy chọn) Làm mờ ảnh một chút khi hover */
.category-card:hover .category-card__bg {
  filter: brightness(0.7);
}

.category-card__content {
  position: relative; /* Để nằm trên ảnh nền */
  z-index: 1;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: #fff; /* Màu chữ trắng */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-card__title {
  font-size: 1.75rem; /* Lớn hơn */
  font-weight: 600; /* Đậm hơn */
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Đổ bóng chữ */
}

.category-card__description {
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* opacity: 0.8;  Giảm opacity một chút */
}
.category-card__description,
.category-card__title {
  color: white;
}

.blob-transition {
  border-radius: 28% 72% 23% 77% / 69% 8% 92% 31%;
  transition: border-radius 0.5s ease;
}

.group:hover .blob-transition {
  border-radius: 1rem; /* hoặc 16px hoặc 10px tuỳ bạn */
}
