/* Color Theme Tokens & Design System */
:root {
  --primary: #FF6B6B;
  --primary-dark: #E04848;
  --secondary: #FFD97D;
  --accent: #9B5DE5;
  --dark: #2B1E3A;
  --bg: #181124;
  --card-bg: #251A36;
  --text: #F8F9FA;
  --text-muted: #B8C0CC;
  --border-radius: 16px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-store {
  background-color: #000000;
  color: #ffffff;
  gap: 12px;
  box-shadow: var(--shadow);
}

.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.store-icon {
  font-size: 1.8rem;
}

.store-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.store-text small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.store-text strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn-light {
  background-color: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-light:hover {
  background-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-light-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-light-outline:hover {
  background-color: #ffffff;
  color: var(--dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 10px;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--secondary);
  color: var(--dark);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(255, 107, 107, 0.3), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: #E2E8F0;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.media-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 12px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: var(--transition);
}

.media-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) - 4px);
  display: block;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.5);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background-color: var(--card-bg);
  padding: 36px 28px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.play-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.overlay-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Specs Section */
.specs-section {
  padding: 60px 0 80px;
}

.specs-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.specs-header {
  margin-bottom: 30px;
}

.specs-header h2 {
  font-size: 1.8rem;
  color: var(--dark);
}

.specs-header p {
  color: var(--text-muted);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

/* Download Banner */
.download-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.banner-container h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.banner-container p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.banner-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-info h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.footer-info p {
  opacity: 0.8;
  margin-bottom: 12px;
}

.seo-keywords {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.lightbox-container {
  position: relative;
  z-index: 2001;
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-body {
  width: 100%;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-body video {
  max-width: 100%;
  max-height: 75vh;
}

.lightbox-caption {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .media-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-menu.active {
    clip-path: circle(140% at 100% 0%);
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .nav-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

/* High-Contrast Card & Text Styling Override */
.section-header h2 {
  color: #FFFFFF !important;
}

.section-header p {
  color: #FFD97D !important;
}

.feature-card {
  background-color: #251A36 !important;
  border: 1px solid rgba(255, 217, 125, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.feature-title {
  color: #FFD97D !important;
  font-weight: 700 !important;
}

.feature-desc {
  color: #F8F9FA !important;
  line-height: 1.6 !important;
}

.specs-card {
  background-color: #251A36 !important;
  border: 1px solid rgba(255, 217, 125, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.specs-header h2 {
  color: #FFFFFF !important;
}

.specs-header p {
  color: #FFD97D !important;
}

.spec-item {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
  color: #FF6B6B !important;
  font-weight: 500 !important;
}

.spec-value {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
