* {
  margin: 0;
  padding: 0;
  font-family: 'Rowdies', cursive;
}
html, body {
overflow-x: hidden;
}

p {
  font-family: 'Nunito', sans-serif;
}
a {
  font-family: 'Rubik', sans-serif;
}
.social-icons a img{
  opacity: 0.5;
  height: 21px;
}
.container {
  background-color: white;
  width: 100%; 
  max-width: 1280px; 
  margin: 0 auto; 
  box-sizing: border-box; 
}
body {
  background-color: #000;
}
.logo img{
  width: 94px;
  height: auto;
}
.video-loader {
  position: absolute;
  inset: 0;
  background-color: #000;
  z-index: 2;
  animation: fadeOut 1s ease 1s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

.navbar {
  background-color: #000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  max-width: 1280px;
  height: 100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  position: static; 
  transform: none;
  width: auto;
  height: auto;
}

.social-icons a {
  transition: transform 0.3s ease;
  color: white;
  margin-left: 1rem;
  font-size: 1.2rem;
}
.social-icons a:hover {
transform: scale(1.2);
}
.social-icons a img:hover{
opacity: 1;
}
.hero-video {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative; 
}
.video-embed-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none; /* <- Chặn tương tác */
}

.video-embed-wrapper iframe {
  mask-image: linear-gradient(black, black);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* <- Vô hiệu hóa click, hover */
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 65%;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-family: 'Arial', sans-serif;
  padding: 1rem;
  max-width: 90%;
  word-wrap: break-word; 
  box-sizing: border-box;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

.hero-text p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  line-height: 1.4;
  word-break: break-word;
}

.about-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

.about-info p {
  padding-top: 100px;
  text-align: justify;
  max-width: 1000px;
  width: 100%;
  font-size: 24px;
  line-height: 1.6;
  color: #111;
  word-break: break-word;
}
/* Stats Section */
.stats {
  padding-top: 143px;
  display: flex;
  justify-content: center;
  align-items: center; 
  padding: 20px;
  padding-left: 187px;
  padding-right: 187px;
  margin-top: 142px;
  margin-bottom: 194px;
  gap: 30px;
}

.stat-item {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.cmt-group {
  position: relative;
}
.stat-item:not(:last-child) .cmt-group::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: 130px;
  transform: translateY(-50%);
  width: 2px;
  height: 50px;
  background-color: #B3B3B3;
}
.stat-item img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.stat-item p {
font-family: 'Rubik', sans-serif;
  margin-top: 10px;
  font-size: 26px;
  color: #000;
}

.stat-item .cmt {
font-family: 'League Spartan', sans-serif;
  margin-top: 10px;
  font-size: 26px;
  color: #B3B3B3;
}
.divider {
  width: 993px;
  height: 5px;
  background-color: #ccc;
  margin: 40px auto;
  transition: width 0.3s ease;
}


/* Section Games */
.games {
font-size: 20px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}
.games h2{
  margin-bottom: 18.75px;
  font-size: 48px;
}

.game-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 784px;
  margin: 1rem auto;
  margin-bottom: 65.89px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.game-image {
  width: 100%;
  height: 540.11px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  text-align: center;
  color: white;
  font-family: 'Arial', sans-serif;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 9));
}



.game-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: flex-end;
}

.game-title {
  margin-top: 100px;
  text-align: left;
}
.game-title h3{
  font-size: 45px;
  font-weight: bold;
  text-align: left;
}

.more-info-btn {
  font-size: 20px;
  background-color: #ffb703;
  font-family: 'Rubik', sans-serif;
  color: #000;
  border: none;
  width: 203.8px;
  height: 44.8px;
  text-align: left;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
}
.more-info-btn:hover {
  background-color: #e5a900;
}
.arrow-icon {
  width: 12,3px;
  height: 18,29px;
  margin-left: auto;
}
.more-info-btn2 {
  font-size: 20px;
  background-color: #55D2B4;
  font-family: 'Rubik', sans-serif;
  color: #000;
  border: none;
  width: 203.8px;
  height: 44.8px;
  text-align: left;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
}
.more-info-btn:hover {
  background-color: #e5a900;
}
.more-info-btn2:hover {
  background-color: #6ab8a6;
}

/* Team Section */
.team {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: 163.25px;
}

.team h2 {
  font-size: 48px;
  text-align: center;
  margin-top: 306.89px;
  margin-bottom: 95px;
}

/* Grid layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 76px;
  text-align: center;
  justify-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Member block */
.member {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1rem;
  width: 100%;
  max-width: 546px;
  box-sizing: border-box;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

/* Avatar */
.member img {
  width: 256px;
  height: 256px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

/* Info section */
.member-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible; /* Ã„ÂÃƒÆ’ SÃ¡Â»Â¬A */
  box-sizing: border-box;
  word-break: break-word;
}

.member-info h4 {
  font-family: 'League Spartan', sans-serif;
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

/* Tags section */
.member-tags {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Tag style */
.tag {
  display: inline-block;
  font-size: 26px;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  width: fit-content;
  font-weight: 500;
  font-family: 'League Spartan', sans-serif;
  line-height: 1.3; /* THÃƒÅ M */
}

/* Tag colors */
.role {
  background-color: #f3e8ff;
  color: #A438CE;
}

.tag.purple {
  background-color: #e9d5ff;
  color: #7c3aed;
}

.tag.cyan {
  background-color: #ccfbf1;
  color: #23BE9F;
}

.tag.red {
  background-color: #fee2e2;
  color: #CE4A38;
}

.tag.yellow {
  background-color: #F5F6C6;
  color: #A2B922;
}

/* Experience */
.member-exp {
  font-family: 'League Spartan', sans-serif;
  margin-top: 0.5rem;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 26px;
  width: 100%;
  box-sizing: border-box;
}

.footer-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.contact {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  align-items: flex-start;
  font-size: 24px;
}
.contact a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}
.contact img{
  width: auto;
  height: auto;
  max-height: 41px;
}
.phone img{
  padding-left: 4px;
}
.backToTopBtn {
  background-color: transparent;
  outline: none;
  border: none;
  display: flex;
  flex-direction: row;
  justify-content: end;
  bottom: 40px;
  padding: 20px;
}


#backToTopBtn img {
  width: 30px;
  height: 60px;
  transition: transform 0.3s ease;
}

#backToTopBtn img:hover {
  transform: scale(1.1);
}

    
/* ====== Responsive: max-width 1280px ====== */
@media (max-width: 1280px) {
  body {
    min-height: auto;
  }
  html, body {
    overflow-x: hidden;
  }
  .navbar {
    padding: 1rem 2rem;
    flex-direction: row;
    justify-content: space-between;
  }
  .navbar .logo {
    font-size: 1.5rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar a {
    font-size: 1rem;
  }

  .logo {
    width: auto;
    height: auto;
  }

  .social-icons a {
    font-size: 1.2rem;
  }

  .team h2 {
    margin-top: 98.61px;
    margin-bottom: 22.91px;
  }

  footer {
    padding: 1rem;
    font-size: 18px;
    text-align: center;
  }

  .footer p {
    text-align: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 0.01rem;
  }

  .hero-image {
    height: 400px;
  }

  .stats {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .stat-item {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .stat-item:not(:last-child) .cmt-group::after {
    display: none !important;
  }
  .game-title h3 {
    white-space: normal !important;
  }

  .stat-item p {
    font-size: 1rem;
  }

  .game-card {
    box-sizing: border-box;
  }

  .game-image {
    height: 300px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .member {
    box-sizing: border-box;
  }

  .member img {
    width: 150px;
    height: 150px;
  }  
  .about-text p {
    white-space: nowrap;
    width: 100%;
    display: block;
  }

  .member-tags {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .divider{
    width: 80%;
  }
  .team-grid {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  footer {
    padding: 1rem;
    font-size: 20px;
  }
}
/* ====== Responsive: max-width 768px ====== */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-text {
    padding: 10px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
 .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
  .member {
    padding: 1rem;
    gap: 1rem;
  }

  .member img {
    width: 150px;
    height: 150px;
  }

  .navbar {
    padding: 2rem;
  }
  .about-info p {
    padding-top: 20px;
    max-width: 1000px;
    width: 100%;
    font-size: 18px;
    line-height: 1.6;
    color: #111;
    word-break: break-word;
}
  .stats {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 2rem 1rem;
    margin-bottom: 8px;
  }

  .stat-item img {
    width: 150px;
    height: 150px;
  }

  .stat-item p {
    font-size: 22.9px;
  }

  .stat-item .cmt {
    font-size: 18.35px;
  }

  .stat-item {
    width: calc(50% - 15px);
    margin-bottom: 30px;
    box-sizing: border-box;
  }

  .stat-item:not(:last-child) .cmt-group::after {
    display: none;
  }

  .social-icons a {
    font-size: 1rem;
  }

  .divider {
    /* margin-bottom: 75px; */
    width: 80%;
  }

  .hero-image {
    height: auto;
  }

  .about-info {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 50px;
    max-width: 100%;
  }

  .game-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 33.25px;
  }

  .game-image {
    height: 250px;
  }

  .game-title h3 {
    white-space: nowrap;
    font-size: 22.93px;
    font-size: bold;
    text-align: left;
  }

  .game-title p {
    font-size: 16px;
    text-align: left;
  }

  .member-info h4 {
    font-size: 14.8px;
  }

  .member-exp {
    text-align: center;
  }

  .tag {
    font-size: 14.8px;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
    width: fit-content;
    font-weight: 500;
  }

  .more-info-btn,
  .more-info-btn2 {
    white-space: nowrap;
    font-size: 11.47px;
    text-align: left;
    border: none;
    gap: 10px;
    width: 95.68px;
    height: 21.03px;
    padding: 0.5rem 1rem;
    font-weight: normal;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .arrow-icon {
    width: 10px;
    height: 8.59px;
    margin-left: auto;
  }

  footer {
    padding: 1rem;
  }

  .footer p {
    text-align: center;
  }
  .footer-wrapper{
    font-size: 16.05px;
  }
  .contact a{
    font-size: 17.04px;
  }
}
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
