@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: #fdf6e3;
  color: #5b2c00;
  overflow-x: hidden;
}

#myVideo {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    object-fit: fill;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 999;
}

.logo {
  height: 150px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.nav-buttons .btn img {
  height: 50px;
  transition: transform 0.2s;
}
.nav-buttons .btn img:hover {
  transform: scale(1.08);
}

/* Hero Section */
.hero-content{
  margin-bottom: 80px;
}
.hero {
  /* background: url('BG-1.png') top no-repeat;
  background-size: cover;
  background-position: center; */
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 100%;
  height: 100vh;
}

.title {
  font-size: 56px;
  color: #ffcc00;
  text-shadow: 2px 2px 8px #722a00;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  position: relative;
  width: 800px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.hero-buttons .napthe{
    background: url(btn-1.png);
    width: 214px;
    height: 119px;
    z-index: 10;
    position: absolute;
    left: 80px;
}

.hero-buttons .download{
  background: url(btn-00.png);
  width: 382px;
  height: 126px;
  left: 240px;
  z-index: 20;
  position: absolute;
}

.hero-buttons .register{
  background: url(dkz.png);
  width: 228px;
  height: 107px;
  z-index: 10;
  margin-top: 10px;
  position: absolute;
  left: 550px;
}

.hero-buttons .btn:hover{
filter: brightness(1.25);
}

/* Server Section */
.server {
  background: url('BG-2.png') top no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: end;
  align-items: end;
  position: relative;
  width: 100%;
  z-index: 6;
  margin-top: -4px;
  aspect-ratio: 1977 / 1030;
}

.server h2 {
  color: #d92323;
  font-size: 40px;
  text-shadow: 1px 1px 5px #fff;
}
.server h3 {
  font-size: 30px;
  color: #e29400;
  margin-top: 10px;
}

.features {
  list-style: none;
  margin-top: 30px;
  font-size: 18px;
  color: #3c1b00;
  line-height: 1.8;
}
.btn.xemchitiet{
  position: absolute;
  right: 350px;
  bottom: 130px;
  margin-top: 25px;
}
.btn.xemchitiet img {
  height: 70px;
  transition: transform 0.3s;
}
.btn.xemchitiet img:hover {
  transform: scale(1.05);
}

/* Events */
.events {
  background: url(BG-3.png) top no-repeat;
  background-size: cover;
  background-position: center;
  padding: 80px 10%;
  text-align: center;
  color: #3c1b00;
  width: 100%;
}

.events h2 {
  font-size: 36px;
  color: #b22222;
  margin-bottom: 30px;
}

.event-list {
  display: flex;
  justify-content: right;
  gap: 80px;
  margin: 100px 0px;
}

.event-list ul {
  list-style: none;
}
.event-list li {
  font-size: 18px;
  transition: all 0.3s;
}
.event-list li:hover{
  transform: translateX(5px);
}

.event-list li a{
  display: block;
}

/* Footer */
footer {
  text-align: center;
  background: #6b0000;
  color: #fff;
  padding: 20px;
  /* margin-top: 40px; */
}

/* Hiệu ứng */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 40px;
  }
  .event-list {
    flex-direction: column;
    gap: 20px;
  }
}
/* ------------------------------- */
/* 📱 Responsive Styles */
/* ------------------------------- */

/* Tablet (iPad dọc, màn hình 768–1024px) */
@media screen and (min-width: 1200px) {
  .events{
    aspect-ratio: 1977 / 1030; /* giữ tỉ lệ đúng như ảnh */
  }
}

@media (max-width: 1024px) {
  .hero-content{
    display: none;
  }
  .header {
    height: 70px;
    padding: 0 20px;
  }
  .logo img {
    height: 50px;
  }
  .btn-header img {
    height: 40px;
  }
  .buttons {
    bottom: 40px;
    gap: 15px;
  }
  .btn-main img {
    height: 60px;
  }
}
/* Mobile (màn hình nhỏ hơn 768px) */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header {
    flex-direction: row;
    height: 65px;
    padding: 0 15px;
  }

  .logo img {
    height: 45px;
  }

  .header-buttons {
    gap: 10px;
  }

  .btn-header img {
    height: 35px;
  }

  .banner {
    height: auto;
    aspect-ratio: 9 / 16; /* giữ tỷ lệ đứng cho mobile */
  }

  .buttons {
    position: relative;
    transform: none;
    left: 0;
    bottom: 0;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5);
  }

  .btn-main img {
    height: 60px;
    margin: 5px;
  }

  .footer {
    font-size: 13px;
    padding: 15px;
  }
}

/* Màn hình rất nhỏ (điện thoại 360px trở xuống) */
@media (max-width: 400px) {
  .logo img {
    height: 40px;
  }

  .btn-header img {
    height: 30px;
  }

  .btn-main img {
    height: 50px;
  }

  .footer {
    font-size: 12px;
  }
}
