* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: white;
  color: rgb(0, 0, 0);
  font-family: poppins, sans-serif;
  overflow-x: hidden;
  width: 100%;
  height: fit-content;
  margin: 0;
  padding: 0;
}

img {
  width: 900px;
  height: 600px;
  opacity: 0;
}

/* Stack Area */
.stack-area {
  width: 100%;
  height: 400vh;
  position: relavtive;
  background: rgb(255, 255, 255);
  display: flex;
}

.left {
  height: 100vh;
  flex-basis: 50%;
  position: sticky;
  top: 0;
  left: 0;
}

.title {
  width: 420px;
  font-size: 100px;
  font-family: poppins;
  font-weight: 700;
  line-height: 88px;
}

.sub-title {
  width: 400px;
  font-family: poppins;
  font-size: 25px;
  margin-top: 30px;
}

.right {
  height: 100vh;
  flex-basis: 50%;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
}

.left {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-items: center;
  flex-direction: column;
}

.card {
  width: 350px;
  height: 350px;
  border-radius: 25px;
  margin-bottom: 10px;
  position: absolute;
  top: calc(50% - 175px);
  left: calc(50% - 175px);
  transition: 0.5s ease-in-out;
  background-color: #6c3082;
}

.card:nth-child(1) {
  background: #c21e56;
}
.card:nth-child(2) {
  background: #eeb211;
}
.card:nth-child(3) {
  background: #0070b8;
}
.card:nth-child(4) {
  background: #32cd32;
}

.card {
  box-sizing: border-box;
  padding: 35px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.sub {
  font-family: poppins;
  font-size: 40px;
  font-weight: 700;
  color: white;
}
.content {
  font-family: poppins;
  font-size: 40px;
  font-weight: 700;
  line-height: 70px;
  color: white;
}
/*Styling for the card content ends here...*/

.away {
  transform-origin: bottom left;
}

button {
  margin-top: 20px;
  height: 100px;
  width: 400px;
  border-radius: 10px;
  font-family: poppins;
  font-size: 30px;
  font-weight: 700;
  color: #ffa38c;
  background-color: black;
}

button:hover {
  background-color: #ffa38c;
  color: black;
}

.visible {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.achievement-sub-title {
  width: auto;
  font-family: poppins;
  font-size: 28px;
}

.achievement-title {
  margin-top: -20px;
  width: 420px;
  font-size: 100px;
  font-family: poppins;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.achievement-title.visible {
  opacity: 1; /* Hiện khi cuộn đến */
  transform: translateY(0);
}

.right-section {
  height: 50vh;
  flex-basis: 50%;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* Use space-around to balance gaps */
  padding-left: 50px;
  text-align: left;
}

.award-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  color: rgb(255, 0, 0);
}

.award {
  position: relative;
  color: black;
  border-radius: 15px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #ff69b4, #9370db);
  transform: scaleX(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.award::after {
  content: "🏆";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 5rem;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.award:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 192, 203, 0.1);
}

.award:hover::before {
  transform: scaleX(1);
}

.award:hover::after {
  opacity: 1;
}

.award-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff69b4;
  margin-bottom: 0.5rem;
}

.award-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #000000, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.award-count {
  font-size: 1.4rem;
  color: #ff0000;
  font-weight: 500;
}

/* Glass Field */
.glass-field {
  /* margin-top: -50px; */
  width: 100%;
  height: 150vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
}

.glass-title {
  padding-top: 0%;
  width: 300px;
  font-size: 100px;
  font-family: poppins;
  font-weight: 700;
  align-items: center;
  text-align: left;
  transform: translateY(50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.glass-container {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-in-out;
}

.glass-container.visible,
.glass-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Styling */
.glass-card {
  width: 250px; /* Adjust size */
  height: 350px; /* Maintain aspect ratio */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.glass-card:hover {
  transform: scale(1.05);
}

/* Images */
.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: opacity 0.3s ease-in-out;
}

/* Mặc định hiển thị ảnh đầu tiên */
.glass-card img:nth-child(1) {
  opacity: 1;
}

/* Ẩn ảnh thứ hai lúc ban đầu */
.glass-card img:nth-child(2) {
  opacity: 0;
}

/* Khi hover, hiển thị ảnh thứ hai */
.glass-card:hover img:nth-child(1) {
  opacity: 0;
}

.glass-card:hover img:nth-child(2) {
  opacity: 1;
}

/* credit */
.credit-container {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  font-family: "Poppins", sans-serif;
}

.credit-text {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 0, 0, 0.7);
}

.credit-link {
  font-size: 24px;
  font-weight: 700;
  color: #15dab2;
  text-decoration: none;
  transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.credit-link:hover {
  color: #ff007f;
  /* text-shadow: 0px 0px 10px rgba(255, 0, 127, 0.8); */
}

/* Hiện lên khi người dùng cuộn đến */
.credit-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */

/* Menu positioning */
.menu {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Animations */
.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
