* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ================= BANNER ================= */
.banner {
  position: relative;
  height: 70vh;
  background: url("../images/banner.png") no-repeat center/cover;
  color: white;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.35)
  );
}

/* ================= NAVBAR ================= */
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.navbar button {
  background: linear-gradient(135deg, #00b4ff, #007acc);
  border: none;
  padding: 10px 26px;
  border-radius: 30px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 6px 20px rgba(0,153,255,0.4);
}

.navbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,153,255,0.6);
}

/* ================= BANNER CONTENT ================= */
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.banner-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ================= GALLERY ================= */
.gallery {
  padding: 80px 10%;
  background: linear-gradient(180deg, #f9fbff, #eef3f9);
  text-align: center;
}

.gallery h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.gallery h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #0099ff;
  display: block;
  margin: 15px auto 0;
  border-radius: 5px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

/* ================= CARD ================= */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.18);
}

/* ================= CARD IMAGE (KHÔNG CẮT ẢNH) ================= */
.card img {
  width: 100%;
  height: auto;           /* giữ đúng tỷ lệ ảnh */
  display: block;
  object-fit: contain;   /* không crop */
  background: #fff;
}

/* ================= CARD TITLE ================= */
.card h3 {
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ================= BUTTON VIEW ================= */
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00b4ff, #007acc);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.4s;
  box-shadow: 0 6px 20px rgba(0,153,255,0.35);
}

.btn-view img {
  width: 22px;
  height: 22px;
}

.btn-view:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 35px rgba(0,153,255,0.55);
}

/* ================= POPUP LOGIN ================= */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: white;
  padding: 35px;
  border-radius: 16px;
  width: 320px;
  animation: fadeIn 0.4s ease;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 25px;
}

.popup-content input {
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.popup-content button {
  margin-top: 15px;
  background: linear-gradient(135deg, #00b4ff, #007acc);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content button:hover {
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
}

/* ================= WHATSAPP ================= */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  z-index: 200;
  animation: shake 1.5s infinite;
}

.whatsapp-btn img {
  width: 100%;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 30px 0;
  background: #0b0f1a;
  color: #bbb;
  font-size: 0.95rem;
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%,100%{ transform:rotate(0deg); }
  25%{ transform:rotate(12deg); }
  50%{ transform:rotate(-12deg); }
  75%{ transform:rotate(12deg); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
  .banner-content h1 {
    font-size: 2.2rem;
  }
  .navbar {
    padding: 12px 20px;
  }
}


[data-aos] {
  transition-property: transform, opacity;
}

.card {
  will-change: transform;
}
