/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0a12; color: #e0e0ff; font-family: 'Poppins', sans-serif;
  overflow-x: hidden; scroll-behavior: smooth;
}
body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 244, 238, 0.15) 0%, transparent 25%),
              radial-gradient(circle at 80% 70%, rgba(254, 44, 85, 0.15) 0%, transparent 25%),
              linear-gradient(to bottom, #0a0a20, #000000);
  z-index: -2; animation: bgPulse 15s infinite alternate;
}
@keyframes bgPulse { 0% { opacity: 0.8; } 100% { opacity: 1; } }
body::after {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(37, 244, 238, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37, 244, 238, 0.05) 1px, transparent 1px);
  background-size: 50px 50px; z-index: -1; animation: gridMove 30s linear infinite;
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }
body.paused::before, body.paused::after { animation-play-state: paused; }
h1, h2, h3, h4 { font-family: 'Bai Jamjuree', sans-serif; letter-spacing: 1px; }

/* Header */
header { position: fixed; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 10%; background: rgba(10, 10, 30, 0.9); z-index: 1000; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(37, 244, 238, 0.2); transition: all 0.3s ease; }
header:hover { background: rgba(10, 10, 30, 0.95); box-shadow: 0 5px 20px rgba(37, 244, 238, 0.1); }
.logo { font-family: 'Bai Jamjuree', sans-serif; font-size: 1.8rem; font-weight: 700; background: linear-gradient(90deg, #25F4EE, #FE2C55); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(37, 244, 238, 0.3); transition: all 0.3s ease; }
.logo:hover { text-shadow: 0 0 15px rgba(37, 244, 238, 0.6); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #25F4EE; }
nav { display: flex; align-items: center; }
nav a { color: #e0e0ff; text-decoration: none; margin-left: 30px; font-weight: 600; transition: all 0.3s ease; position: relative; font-size: 0.95rem; text-shadow: 0 0 5px rgba(224, 224, 255, 0.3); }
nav a:hover, nav a.active { color: #25F4EE; text-shadow: 0 0 10px rgba(37, 244, 238, 0.7); }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: linear-gradient(90deg, #25F4EE, #FE2C55); transition: width 0.3s; }
nav a:hover::after { width: 100%; }
.contact-btn { background: linear-gradient(90deg, #25F4EE, #FE2C55); color: #0a0a20 !important; padding: 10px 25px; border-radius: 30px; font-weight: bold; transition: all 0.3s; margin-left: 20px; box-shadow: 0 0 15px rgba(37, 244, 238, 0.3); }
.contact-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(37, 244, 238, 0.5); }

/* Background Động */
.dynamic-bg { position: relative; overflow: hidden; }
.dynamic-bg::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; /* background: linear-gradient(to bottom, rgba(10, 10, 30, 0.9), rgba(0, 0, 0, 0.9)) */; z-index: -1; }
.tech-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); animation: float 8s infinite ease-in-out; }
#home .particle { background: rgba(37, 244, 238, 0.6); box-shadow: 0 0 15px rgba(37, 244, 238, 0.8); }
#about .particle { background: rgba(254, 44, 85, 0.6); box-shadow: 0 0 15px rgba(254, 44, 85, 0.8); }
#products .particle { background: rgba(255, 165, 0, 0.6); box-shadow: 0 0 15px rgba(255, 165, 0, 0.8); }
#video-demos .particle { background: rgba(0, 255, 255, 0.6); box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); }
#contact .particle { background: rgba(138, 43, 226, 0.6); box-shadow: 0 0 15px rgba(138, 43, 226, 0.8); }
.line { position: absolute; background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent); height: 1px; transform-origin: left; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }

/* Hero Section */
#home { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; overflow: hidden; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.video-background video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.video-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(10, 10, 30, 0.5), rgba(0, 0, 0, 0.5)); }
.hero-content { padding: 0 5%; max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; background: linear-gradient(90deg, #25F4EE, #FE2C55); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(37, 244, 238, 0.3); line-height: 1.2; letter-spacing: 2px; animation: textGlow 3s ease-in-out infinite alternate; font-weight: 900; }
@keyframes textGlow { 0% { text-shadow: 0 0 10px rgba(37, 244, 238, 0.3); } 100% { text-shadow: 0 0 20px rgba(37, 244, 238, 0.6), 0 0 30px rgba(254, 44, 85, 0.3); } }
.hero-content p { font-size: 1.5rem; margin-bottom: 40px; opacity: 0.9; max-width: 800px; margin-left: auto; margin-right: auto; color: #e0e0ff; text-shadow: 0 0 10px rgba(192, 192, 255, 0.2); }
.cta-button { display: inline-block; background: linear-gradient(90deg, #25F4EE, #FE2C55); color: #0a0a20; padding: 18px 40px; border-radius: 50px; font-weight: bold; text-decoration: none; font-size: 1.2rem; transition: all 0.3s; box-shadow: 0 5px 25px rgba(37, 244, 238, 0.3); margin: 10px; position: relative; overflow: hidden; font-family: 'Bai Jamjuree', sans-serif; letter-spacing: 1px; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(37, 244, 238, 0.5); }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: all 0.5s ease; }
.cta-button:hover::before { left: 100%; }

/* About Section */
#about { padding: 100px 10%; background: rgba(15, 15, 30, 0.7); }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { border-radius: 15px; overflow: hidden; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); transition: transform 0.5s ease; }
.about-image:hover { transform: scale(1.02); }
.about-image img { width: 100%; height: auto; display: block; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: #25F4EE; position: relative; display: inline-block; }
.about-content h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #25F4EE, #FE2C55); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
#about:hover .about-content h2::after { transform: scaleX(1); }
.about-content p { margin-bottom: 20px; line-height: 1.6; opacity: 0.9; color: #e0e0ff; }

/* Products Section */
#products { padding: 100px 10%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 15px; color: #25F4EE; position: relative; display: inline-block; }
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #25F4EE, #FE2C55); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
#products:hover .section-header h2::after { transform: scaleX(1); }
.section-header p { font-size: 1.2rem; opacity: 0.8; max-width: 700px; margin: 0 auto; color: #e0e0ff; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Mặc định cho màn hình lớn */
  gap: 20px;
}
.filter-card { 
  background: #111; 
  border-radius: 15px; 
  overflow: hidden; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
  display: none; 
  width: 100%; 
  max-width: 240px; 
}
.filter-card.active { display: block; }
.filter-card:hover { transform: translateY(-15px) rotate(2deg); box-shadow: 0 15px 30px rgba(37, 244, 238, 0.3); border-color: rgba(37, 244, 238, 0.3); }
.filter-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.filter-card:hover img { transform: scale(1.05); }
.filter-info { padding: 20px; }
.filter-info h3 { color: #25F4EE; margin-bottom: 10px; font-size: 1.1rem; }
.filter-info p { margin-bottom: 15px; opacity: 0.8; font-size: 0.95rem; color: #e0e0ff; }
.tiktok-button { display: block; background: #25F4EE; color: black; padding: 10px; border-radius: 5px; text-align: center; font-weight: bold; text-decoration: none; transition: all 0.3s; position: relative; overflow: hidden; }
.tiktok-button:hover { background: #FE2C55; color: white; }
.tiktok-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: all 0.5s ease; }
.tiktok-button:hover::before { left: 100%; }
/* Container chính */
.product-section {
  position: relative; /* Quan trọng */
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 0px; /* Tạo khoảng trống cho nút */
}

/* Nút điều hướng 
.nav-btn {
  font-family: 'Bai Jamjuree', sans-serif;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s; */
}

/* Gradient giống logo PXT
.prev-btn {
  left: -25px;
  background: linear-gradient(135deg, #25F4EE, #FE2C55);
  color: white;
  box-shadow: 0 0 10px rgba(37, 244, 238, 0.5);
}

.next-btn {
  right: -25px;
  background: linear-gradient(135deg, #FE2C55, #25F4EE);
  color: white;
  box-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
} */

/* Hiệu ứng hover */
.nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Vô hiệu hóa nút */
.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) !important;
}

/* Ẩn pagination cũ 
.pagination {
  display: none;*/
}@media (max-width: 768px) {
  .product-section {
    padding: 0 5px;
  }
  
}
.pagination { text-align: center; margin-top: 40px; }
.pagination button { background: #25F4EE; color: #0a0a20; padding: 10px 20px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; margin: 0 10px; transition: all 0.3s; }
.pagination button:hover { background: #FE2C55; color: white; }
.pagination button:disabled { background: #555; cursor: not-allowed; }
@media (max-width: 1200px) {
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
  }
  .filter-card { max-width: 100%; }
}

/* Video Demo Section */
#video-demos { padding: 100px 10%; /*background: rgba(15, 15, 30, 0.7); */ }
.video-grid { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); 
  grid-template-rows: repeat(3, auto); 
  gap: 20px; 
  max-width: 1400px; 
  margin: 0 auto; 
}
.video-card { 
  background: #111; 
  border-radius: 15px; 
  overflow: hidden; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
  display: none; 
  width: 100%; 
  max-width: 240px; 
}
.video-card.active { display: block; }
.video-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(37, 244, 238, 0.3); border-color: rgba(37, 244, 238, 0.3); }
.video-wrapper { 
  position: relative; 
  padding-bottom: 177.78%; /* Tỷ lệ 9:16 cho Shorts */
  height: 0; 
  overflow: hidden; 
}
.video-wrapper iframe { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  border: none; 
}
.video-wrapper::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: #222
  z-index: 1; 
  transition: opacity 0.3s; 
}
.video-wrapper.loaded::before { opacity: 0; pointer-events: none; }
.video-info { padding: 15px; }
.video-info h3 { color: #25F4EE; margin-bottom: 10px; font-size: 1.1rem; }
.video-info p { opacity: 0.8; font-size: 0.9rem; color: #e0e0ff; }
@media (max-width: 1200px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card { max-width: 180px; }
}

/* Contact Section */
#contact { padding: 100px 10%; }
.contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { color: #25F4EE; margin-bottom: 20px; font-size: 1.5rem; }
.contact-info p { margin-bottom: 15px; opacity: 0.9; line-height: 1.6; color: #e0e0ff; }
.social-links { margin-top: 30px; }
.social-links a { color: #25F4EE; font-size: 1.5rem; margin-right: 15px; transition: all 0.3s; display: inline-block; }
.social-links a:hover { color: #FE2C55; transform: translateY(-3px); text-shadow: 0 0 10px rgba(254, 44, 85, 0.3); }
.contact-form { background: #111; padding: 30px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #25F4EE; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; background: #222; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: white; font-family: 'Poppins', sans-serif; transition: all 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #25F4EE; box-shadow: 0 0 10px rgba(37, 244, 238, 0.3); }
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn { background: linear-gradient(90deg, #25F4EE, #FE2C55); color: white; border: none; padding: 15px 30px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.3s; width: 100%; font-family: 'Bai Jamjuree', sans-serif; letter-spacing: 1px; position: relative; overflow: hidden; }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37, 244, 238, 0.3); }
.submit-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: all 0.5s ease; }
.submit-btn:hover::before { left: 100%; }

/* Footer */
footer { background: #000; padding: 50px 10% 30px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { font-family: 'Bai Jamjuree', sans-serif; font-size: 2rem; font-weight: 700; background: linear-gradient(90deg, #25F4EE, #FE2C55); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; display: inline-block; text-shadow: 0 0 10px rgba(37, 244, 238, 0.3); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links a { color: white; text-decoration: none; margin: 0 15px; transition: all 0.3s; }
.footer-links a:hover { color: #25F4EE; text-shadow: 0 0 10px rgba(37, 244, 238, 0.3); }
.copyright { opacity: 0.7; font-size: 0.9rem; color: #e0e0ff; }

/* Responsive */
@media (max-width: 1024px) {
  .about-container, .contact-container { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}
@media (max-width: 768px) {
  header { padding: 15px 5%; }
  .hamburger { display: block; }
  nav { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: rgba(10, 10, 30, 0.95); flex-direction: column; padding: 20px 0; }
  nav.active { display: flex; }
  nav a { margin: 10px 0; text-align: center; }
  .contact-btn { margin: 10px auto; width: 50%; }
  .hero-content h1 { font-size: 2.5rem; text-shadow: 0 0 15px rgba(37, 244, 238, 0.8), 0 0 25px rgba(254, 44, 85, 0.5); }
  .hero-content p { font-size: 1.1rem; text-shadow: 0 0 15px rgba(192, 192, 255, 0.5); }
  section { padding: 80px 5%; }
  .section-header h2 { font-size: 2.2rem; }
  .video-background video { opacity: 0.2; }
}

/* Animation on Scroll */
section, .filter-card, .cta-button { opacity: 0; transform: translateY(50px); transition: all 0.6s ease-out; }
.animate { opacity: 1; transform: translateY(0); }

/* Partners Section */
#partners { text-align: center; position: relative; }
.partners-carousel { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.partners-track { display: flex; gap: 30px; width: max-content; animation: scroll 30s ease-in-out infinite; will-change: transform;}
.partner-item { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; height: 120px; min-width: 110px; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); flex-shrink: 0; }
.partner-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(37, 244, 238, 0.2); border-color: rgba(37, 244, 238, 0.3); }
.partner-item img { max-width: 100%; max-height: 115px; width: auto; height: auto; filter: grayscale(30%) brightness(1.2); transition: all 0.3s ease; border-radius: 8px;}
.partner-item:hover img { filter: grayscale(0%) brightness(1.5); transform: scale(1.05); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
  .partners-track { gap: 15px; animation-duration: 15s; }
  .partner-item { height: 100px; padding: 5px; min-width: 120px; }
}