* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.2);
  --text-light: #e0e0e0;
  --text-muted: #aaa;
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --border: #333;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === LOGO === */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 0 8px var(--purple-glow));
  transform: scale(1.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  white-space: nowrap;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-purple);
}

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ccc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: #111;
  z-index: 1000;
  transition: left 0.4s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active { left: 0; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo-text {
  font-size: 1.3rem;
}

.close-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.close-btn:hover {
  background: #333;
  color: #fff;
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 0;
  flex-grow: 1;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 2rem;
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s;
  border-bottom: 1px solid #222;
}

.mobile-nav-links a:hover {
  background: var(--bg-card);
  color: var(--primary-purple);
  padding-left: 2.5rem;
}

/* === OVERLAY === */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  background: 
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)),
    url('Assets/Logos/hero-bg.jpg') center/cover no-repeat;
  background-color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(168, 85, 247, 0.05);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 95%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--primary-purple);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--purple-glow);
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* === SECTION TITLE === */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #fff;
}

/* === TYPEWRITER === */
.typewriter-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.typewriter-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.typewriter-text.typing { opacity: 1; }

.cursor {
  display: inline-block;
  background-color: var(--primary-purple);
  width: 2px;
  height: 1.4em;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

.cursor.hidden { opacity: 0; animation: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === IMAGE SLIDER === */
.image-slider-section {
  padding: 4rem 0;
  background: #111;
}

.image-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  height: 500px;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.dots {
  text-align: center;
  padding: 1.5rem 0;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #444;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active, .dot:hover {
  background-color: var(--primary-purple);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--purple-glow);
}

/* === REVIEWS === */
.reviews-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}

.reviews-container::-webkit-scrollbar { display: none; }

.review-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  min-width: 280px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review-card p {
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.95rem;
}

.review-card small {
  color: #888;
  font-size: 0.85rem;
}

/* === DOWNLOAD === */
.download-section {
  background: #111;
  text-align: center;
  padding: 4rem 1.5rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-download {
  background: var(--bg-card);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  min-width: 180px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-8px);
  border-color: var(--primary-purple);
  box-shadow: 0 8px 20px var(--purple-glow);
  color: #fff;
  font-weight: 600;
}

.download-counter {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--text-muted);
}

.download-counter:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 8px 25px var(--purple-glow);
  transform: translateY(-3px);
}

.download-counter i {
  color: var(--primary-purple);
  margin-right: 0.5rem;
}

#download-count {
  font-weight: 700;
  color: var(--primary-purple);
  margin: 0 0.4rem;
  min-width: 60px;
  text-align: center;
}

/* === INFO CARDS === */
.info-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.info-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  width: 280px;
  text-align: center;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-purple);
  box-shadow: 0 8px 20px var(--purple-glow);
}

.info-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-purple);
}

/* === POPUP === */
.download-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.download-popup.active {
  display: flex;
}

.popup-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-content h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--purple-light));
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px var(--purple-glow);
}

#countdown {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin: 0.5rem 0;
}

.btn-confirm {
  background-color: #2b72ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 1rem;
}

.btn-confirm.disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-confirm:not(.disabled):hover {
  background-color: #1d5de8;
}

/* === FADE IN === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === FOOTER - ĐÃ SỬA HOÀN TOÀN === */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 100%;
}

.footer-left .logo {
  color: var(--primary-purple);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-left p {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  word-wrap: break-word;
  line-height: 1.5;
}

.footer-left p a {
  color: #666;
  text-decoration: none;
}

.footer-left p a:hover {
  color: #999;
}

.footer-links h4,
.footer-social h4 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  display: block;
}

.footer-links a:hover {
  color: var(--primary-purple);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.social-icons a:hover {
  background: var(--primary-purple);
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: 0 8px 20px var(--purple-glow);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.social-icons a:hover::before {
  width: 300px;
  height: 300px;
}

.social-icons a i {
  position: relative;
  z-index: 1;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
  .section-title { font-size: 1.8rem; }
  .typewriter-container { padding: 1.5rem; min-height: 240px; }
  .typewriter-text { font-size: 1rem; }
  .image-slider { height: 300px; }
  .slide .caption { font-size: 1rem; bottom: 15px; left: 15px; padding: 0.7rem 1rem; }
  .review-card { min-width: 100%; }
  .btn-download { padding: 1.2rem 1.5rem; font-size: 0.95rem; min-width: 160px; }
  .popup-content { padding: 1.5rem; }
  #countdown { font-size: 1.5rem; }
  .hamburger { display: flex; }
  .nav-menu { display: none; }
  .nav-container { padding: 0 1rem; }
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-left p,
  .footer-left p a { font-size: 0.9rem; }
  .footer-links h4,
  .footer-social h4 { font-size: 1.1rem; }
  .footer-links a { font-size: 0.95rem; }
  .social-icons { gap: 1rem; }
  .social-icons a { width: 44px; height: 44px; font-size: 1.3rem; }
}