:root {
  /* Light Theme Variables */
  --primary-gold: #b8860b;
  --primary-gold-light: #d4af37;
  --bg-body: #fdfbf7;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 10px 30px rgba(184, 134, 11, 0.15);
  --transition: all 0.3s ease;
}

/* Dark Theme Variables */
body.dark-mode {
  --bg-body: #1a1a1a;
  --bg-card: #242424;
  --text-main: #f0f0f0;
  --text-light: #cccccc;
  --border-color: #444444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  color: var(--primary-gold);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-control {
  background: none;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.btn-control:hover {
  background-color: var(--primary-gold);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("img/screen.jpg"); /* Lưu ý: Đã chỉnh lại đường dẫn ảnh */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
  overflow: hidden;
  animation: zoomBackground 20s infinite alternate;
}

@keyframes zoomBackground {
  0% {
    background-size: 100%;
  }
  100% {
    background-size: 110%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
  color: var(--primary-gold-light);
  font-style: italic;
  font-family: "Playfair Display", serif;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Luxury Border */
.luxury-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(184, 134, 11, 0.5);
  transform: scale(0.95);
  pointer-events: none;
}

.luxury-border::before,
.luxury-border::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--primary-gold);
  border-style: solid;
  transition: all 0.5s ease;
}

.luxury-border::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.luxury-border::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.hero-content:hover .luxury-border::before,
.hero-content:hover .luxury-border::after {
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

/* Hero Glow */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
  animation: floatGlow 10s infinite alternate ease-in-out;
}

.glow-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-gold);
  top: -50px;
  left: -50px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #cd7f32;
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  100% {
    transform: translate(30px, 50px);
    opacity: 0.6;
  }
}

/* Scroll Down */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  opacity: 0.8;
}

.scroll-down span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -10px;
  animation: scrollAnimate 2s infinite;
}

.scroll-down span:nth-child(2) {
  animation-delay: -0.2s;
}
.scroll-down span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes scrollAnimate {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(20px, 20px);
  }
}

.btn-main {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--primary-gold),
    var(--primary-gold-light)
  );
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.6);
}

/* --- INTRO SECTION --- */
.intro-section {
  padding: 40px 0;
  text-align: center;
}

.image-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.image-grid-3 img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.image-grid-3 img:hover {
  transform: scale(1.03);
}

/* --- SERVICES (PRICING) --- */
.services-section {
  padding: 40px 0;
  background-color: var(--bg-body);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: var(--primary-gold);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.price-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary-gold);
}

/* Xử lý thẻ "Miễn phí" nằm giữa ở hàng dưới */
.price-card:last-child {
  grid-column: 2 / 3;
}

/* Viền đặc biệt cho thẻ miễn phí */
.price-card.special-card {
  border-color: var(--primary-gold);
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.duration {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
  font-style: italic;
}

.card-body {
  flex-grow: 1;
}

.features-list {
  list-style: none;
  margin-bottom: 20px;
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-main);
}

.features-list li i {
  color: var(--primary-gold);
  margin-right: 10px;
  margin-top: 4px;
}

.add-on {
  background-color: rgba(184, 134, 11, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-top: auto;
}

.add-on.special-addon {
  background-color: var(--primary-gold);
  color: #fff;
}

.add-on h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.total-price {
  margin-top: 5px;
  font-weight: bold;
  color: var(--primary-gold);
}

.combo-tag {
  background: var(--primary-gold);
  color: #fff;
  text-align: center;
  padding: 5px;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
}

/* --- FOOTER --- */
footer {
  background-color: #111;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-item h4 {
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-item p {
  margin-bottom: 10px;
  color: #ccc;
}

.footer-item i {
  color: var(--primary-gold);
  width: 20px;
  margin-right: 10px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #777;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  /* Reset vị trí thẻ miễn phí khi màn hình nhỏ */
  .price-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .luxury-border {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .image-grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .controls {
    flex-direction: column;
    gap: 5px;
  }
  .nav-wrapper {
    flex-wrap: wrap;
  }
  .controls {
    margin-left: auto;
  }
}
