/* Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} 

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: #fafbfc;
  color: #222;
  line-height: 1.7;
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(63,61,86,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3F3D56;
}
header .logo img {
  width: 48px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 8px #3F3D56aa);
}
header nav ul {
  display: flex;
  list-style: none;
}
header nav ul li a {
  text-decoration: none;
  margin: 0 18px;
  color: #32190E;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a.active,
header nav ul li a:hover {
  background: #EFA319;
  color: #fff;
}
.contact-btn {
  background: #EFA319;
  color: white;
  border: 2px solid #fff;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #3F3D5633;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.contact-btn:hover {
  background: #EFA319;
  color: white;
  transform: translateY(-2px) scale(1.04);
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #32190E;
  color: #fff;
  padding: 90px 60px 120px 60px;
  /* border-radius: 0 0 60px 60px; */
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.hero-text h3 {
  color: #EFA319;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.95;
}
.hero-text h1 {
  font-size: 3.2rem;
  margin: 24px 0 32px 0;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
}
.hero-text .btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 #3F3D5633;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.hero-text .btn:hover {
  background: #EFA319;
  color: black;
  border: 2px solid #EFA319;
  transform: translateY(-2px) scale(1.04);
}
.hero-imgs {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.hero-imgs img {
  width: 220px;
  filter: drop-shadow(0 4px 24px #3F3D5622);
}
.left-mascot {
  position: absolute;
  left: 60px;
  bottom: 20px;
  z-index: 1;
}
.right-mascot {
  position: absolute;
  right: 60px;
  bottom: 20px;
  z-index: 1;
}

/* About */
.about {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 90px 60px;
  background: #fff;
  border-radius: 36px;
  margin: 40px 60px;
  box-shadow: 0 4px 32px 0 #3F3D5610;
}
.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-text h4 {
  color: #EFA319;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.about-text h2 {
  margin: 16px 0 18px 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: #3F3D56;
}
.about-text p {
  font-size: 1.1rem;
  color: #444;
  opacity: 0.9;
}
.about-img img {
  width: 340px;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 #3F3D5620;
}
.about-icons {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  margin-left: 0;
  margin-bottom: 18px;
}
.about-icon-box {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 2px solid #EFA319;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 #5EDFFF22;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.about-icon-box:hover {
  border: 2px solid #EFA319;
  background: #EAF8FF;
  box-shadow: 0 4px 16px 0 #5EDFFF33;
}
.about-icon {
  width: 32px;
  height: 32px; 
  fill: #EFA319;
  transition: fill 0.2s;
}
.about-icon-box:hover .about-icon {
  fill: #3F3D56;
}

/* Stats */
.stats {
  background: #32190E;
  color: #fff;
  text-align: center;
  padding: 60px 60px;
  display: flex;
  justify-content: space-around;
  border-radius: 36px;
  margin: 40px 60px;
  box-shadow: 0 4px 32px 0 #3F3D5610;
}
.stats .stat {
  background: transparent;
  border-radius: 24px;
  padding: 32px 48px;
  min-width: 180px;
}
.stats .stat span {
  font-size: 3.2rem;
  display: block;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 0 #FFB6B6, 4px 4px 0 #EFA319;
}
.stats .stat p {
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  opacity: 0.85;
  font-weight: 600;
}

/* Team */
.team {
  padding: 90px 60px 60px 60px;
  text-align: center;
}
.team h4 {
  color: #EFA319;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.team h2 {
  margin: 16px 0 18px 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: #3F3D56;
}
.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
  gap: 36px;
}
.member {
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 #3F3D5610;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.member:hover {
  transform: translateY(-6px) scale(1.04);
}
.member img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 12px 0 #5EDFFF22;
  margin-bottom: 18px;
  transition: filter 0.25s;
  z-index: 1;
}
.member:hover img {
  filter: brightness(0.6) blur(1px);
}
.member .member-overlay {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 18px;
  background: rgba(100, 90, 180, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 2;
}
.member:hover .member-overlay {
  opacity: 1;
  pointer-events: auto;
}
.member .arrow-icon {
  font-size: 2.5rem;
  color: #222;
  font-weight: bold;
  background: none;
  border: none;
  outline: none;
  pointer-events: none;
}
.member h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin: 12px 0 4px 0;
  text-align: center;
}
.member p {
  color: #888;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}
.member-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}
.member-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2222;
  margin: 0 2px;
  font-size: 1.2rem;
  color: #222;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.member-social:hover {
  background: #EFA319;
  color: #fff;
  border: 2px solid #EFA319;
}

/* Contact */
.contact {
  background: #fff;
  padding: 90px 60px;
  border-radius: 36px;
  margin: 40px 60px;
  box-shadow: 0 4px 32px 0 #3F3D5610;
}
.contact h4 {
  color: #EFA319;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.contact h2 {
  margin: 16px 0 18px 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: #3F3D56;
}
.contact-info {
  display: flex;
  justify-content: space-around;
  margin-top: 36px;
  gap: 48px;
}
.contact-info .address {
  max-width: 400px;
  background: #F6F8FB;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 #5EDFFF22;
  padding: 32px 24px;
  font-size: 1.08rem;
  border: 2px solid #EFA319;
}
.contact-info form {
  display: flex;
  flex-direction: column;
  background: #F6F8FB;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 #5EDFFF22;
  padding: 32px 24px;
  min-width: 320px;
  border: 2px solid #EFA319;
}
.contact-info form input,
.contact-info form textarea {
  margin: 8px 0;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #fff;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.contact-info form input:focus,
.contact-info form textarea:focus {
  border: 2px solid #5EDFFF;
  outline: none;
}
.contact-info form button {
  background: #EFA319;
  color: white;
  border: 2px solid #fff;
  padding: 12px;
  margin-top: 16px;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #FFD6D633;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.contact-info form button:hover {
  background: #FFB6B6;
  color: #3F3D56;
  border: 2px solid #FFB6B6;
  transform: translateY(-2px) scale(1.04);
}

/* Footer */
footer {
  background: #32190E;
  color: #fff;
  text-align: center;
  padding: 24px 0 16px 0;
  border-radius: 0;
  margin: 0;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  box-shadow: 0 -2px 16px 0 #3F3D5622;
  border-top: 2px solid #f5f5f5;
}
.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #EFA319;
  margin: 0 14px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #FFD6D6;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  background: #1a191955; 
  color: white;
  padding: 16px 18px 16px 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #bfbdbd55;
  font-size: 1.5rem;
  display: none;
  z-index: 2000;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.back-to-top:hover {
  background: #735a3c55;
  /* color: #3F3D56;
  border: 2px solid #FFB6B6;  */
  transform: translateY(-2px) scale(1.08);
}

/* Games Section */
.games {
  padding: 80px 0 60px 0;
  background: #fff;
  min-height: 60vh;
}
.games-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.games-badge {
  display: inline-block;
  background: #EAF8FF;
  color: #3F3D56;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 18px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.games-header h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 0;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}
.game-card {
  background: #fafbfc;
  border-radius: 28px;
  box-shadow: 0 2px 16px 0 #3F3D5610;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px 24px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px 0 #5EDFFF33;
}
.game-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px 0 #5EDFFF22;
  transition: filter 0.25s;
}
.game-card:hover img {
  filter: brightness(0.6) blur(1px);
}
.game-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3F3D56;
  margin-top: 0;
}
.game-links {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 2;
}
.game-card:hover .game-links {
  opacity: 1;
  pointer-events: auto;
}
.game-link {
  background: #fff;
  color: #3F3D56;
  border: 2px solid #3F3D56;
  border-radius: 18px;
  padding: 10px 32px;
  font-weight: 700;
  font-size: 1.08rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 #3F3D5610;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.game-link:hover {
  background: #5EDFFF;
  color: #fff;
  border: 2px solid #5EDFFF;
  transform: scale(1.05);
}

/* Hamburger button */
.mobile-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #3F3D56;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 65vh;
  max-height: 500px;
  background: #fff;
  z-index: 2000;
  padding: 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 32px 0 #2222;
  overflow-y: auto;
  transition: height 0.3s;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px; 
  padding: 0 12px; 
  box-sizing: border-box;
  border-bottom: 1px solid #eee;
}

#mobileClose {
  font-size: 2.5rem;
  cursor: pointer;
  color: red;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0; 
}

.mobile-menu ul li a {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3F3D56;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  background: #EFA319;
  color: #fff;
}

.mobile-menu .contact-btn {
  margin: 24px auto;
  display: block;
  width: 80%;
}

.mobile-social {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.mobile-social a {
  background: #EFA319;
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.mobile-social a:hover {
  background: #EFA319;
}

body.menu-open {
  overflow: hidden;
}


/* show hamburger on mobile */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 0 12px;
    min-height: 54px;
    height: 54px;
    box-shadow: none;
    border: none;
    background: #fff;
    position: relative;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex: none;
  }
  .logo img {
    width: 32px;
    height: 32px;
    margin: 0 4px 0 0;
    padding: 0;
    display: block;
  }
  .logo span {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #3F3D56;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  .mobile-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 2.1rem;
    color: #3F3D56;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    flex: none;
    margin: 0;
  }
  nav,
  .contact-btn {
    display: none;
  }
  .team {
    padding: 36px 8px;
  }
  .team h2 {
    font-size: 1.4rem;
  }
  .team-members {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
  }
  .member {
    width: 90vw;
    max-width: 340px;
    margin: 0 auto;
    padding: 24px 8px 20px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 12px 0 #3F3D5610;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .member img, .member .member-overlay {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    margin: 0 auto 16px auto;
    display: block;
    object-fit: cover;
    border: 2px solid #eee;
    background: #111;
  }
  .member h3 {
    font-size: 1.15rem;
    margin: 10px 0 2px 0;
    text-align: center;
    font-weight: bold;
  }
  .member p {
    font-size: 1rem;
    margin-bottom: 14px;
    text-align: center;
    color: #888;
  }
  .member-socials {
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    display: flex;
  }
  .member-social {
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #EFA319;
    border: none;
  }
  footer {
    padding: 18px 0 12px 0;
    font-size: 0.98rem;
    border-radius: 0;
    margin: 0;
    width: 100vw;
    min-width: 100vw;
    left: 0;
    right: 0;
  }
  .footer-links {
    gap: 18px;
  }
  .hero-imgs {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: static;
    margin-bottom: 0;
    margin-top: 0;
    pointer-events: none;
    z-index: 1;
  }
  .left-mascot {
    position: static !important;
    width: 120px !important;
    max-width: 40vw;
    margin: 0 auto 18px auto !important;
    display: block !important;
  }
  .right-mascot {
    position: static !important;
    width: 140px !important;
    max-width: 48vw;
    margin: 18px auto 0 auto !important;
    display: block !important;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 8px 32px 8px;
    min-height: unset;
  }
  .hero-text {
    z-index: 2;
    margin: 0 auto;
    padding: 0;
  }
}

/* Responsive for tablets and mobiles */
@media (max-width: 768px) {
  header {
    padding: 14px 24px;
    flex-direction: column;
  }
  header nav ul {
    flex-direction: column;
    margin-top: 12px;
  }
  header nav ul li a {
    margin: 6px 0;
  }
  .contact-btn {
    margin-top: 12px;
  }
  .hero {
    flex-direction: column;
    padding: 60px 24px 80px 24px;
    /* border-radius: 0 0 40px 40px; */
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text .btn {
    width: 100%;
  }
  .left-mascot,
  .right-mascot {
    display: none;
  }
  .about {
    flex-direction: column;
    padding: 60px 24px;
    margin: 24px;
  }
  .about-text {
    align-items: center;
    text-align: center;
  }
  .about-img img {
    width: 100%;
    margin-top: 24px;
  }
  .stats {
    flex-direction: column;
    padding: 48px 24px;
    margin: 24px;
  }
  .stats .stat {
    padding: 24px 0;
  }
  .team {
    padding: 60px 24px;
  }
  .team-members {
    flex-direction: column;
    gap: 24px;
  }
  .contact {
    padding: 60px 24px;
    margin: 24px;
  }
  .contact-info {
    flex-direction: column;
    gap: 24px;
  }
  .contact-info .address,
  .contact-info form {
    width: 100%;
  }
  .games {
    padding: 60px 24px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .game-card img {
    width: 100%;
    height: auto;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 12px;
    font-size: 1.2rem;
  }
}

/* Responsive for very small screens (like phones under 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text h3 {
    font-size: 1rem;
  }
  .about-text h2,
  .team h2,
  .contact h2,
  .games-header h2 {
    font-size: 1.6rem;
  }
  .member img,
  .member .member-overlay {
    width: 320px;
    height: 320px;
  }
  .stats .stat span {
    font-size: 2.2rem;
  }
  .game-link {
    padding: 8px 16px;
  }
  
  
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 16px; /* giảm padding để nhỏ hơn màn hình nhỏ */
    margin: 0 auto;
  }
  .contact-info {
    gap: 24px;
  }
  .contact-info form {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .contact-info form input,
  .contact-info form textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
  }
  .contact-info .address {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
  }
}





  