/* ===================================
   SoundMaster MY – Main Stylesheet
   Design: Premium Malaysian Audio Brand
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --navy: #0a0f1e;
  --navy-light: #111827;
  --navy-card: #161d30;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-glow: rgba(212, 160, 23, 0.25);
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --green-wa: #25d366;
  --green-wa-dark: #128c4a;
  --red: #e74c3c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 24px rgba(212,160,23,0.2);
  --transition: 0.3s ease;
  --font: 'Poppins', sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,160,23,0.4); }
.btn-wa {
  background: linear-gradient(135deg, var(--green-wa), #20bd5a);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-large { padding: 16px 32px; font-size: 1rem; width: 100%; justify-content: center; }

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}
.logo i { color: var(--gold); font-size: 1.5rem; }
.logo .accent { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-wa { font-size: 0.85rem !important; padding: 10px 20px !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(212,160,23,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(37,211,102,0.05) 0%, transparent 60%),
    url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=1600&q=80') center/cover no-repeat;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 20px 80px;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===================================
   BRANDS BAR
   =================================== */
.brands-bar {
  background: var(--navy-light);
  padding: 18px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,160,23,0.1);
}
.brands-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-brands 25s linear infinite;
  white-space: nowrap;
}
.brands-track span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brands-track span:nth-child(even) { color: rgba(212,160,23,0.4); font-size: 0.6rem; }
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================
   SECTION BASE
   =================================== */
.section { padding: 90px 0; }
.section-dark {
  background: var(--navy);
  color: white;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-dark .section-header h2 { color: white; }
.section-header p {
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }
.accent { color: var(--gold); }

/* ===================================
   FILTER TABS
   =================================== */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.filter-btn.active { background: linear-gradient(135deg, var(--navy), #1e2d4d); }

/* ===================================
   PRODUCTS GRID
   =================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.product-card.hidden { display: none; }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.badge-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: #3498db; color: white; }
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }
.product-info { padding: 20px; }
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
  color: var(--navy);
  line-height: 1.3;
}
.product-info p {
  font-size: 0.83rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}
.old-price {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 400;
}
.rating {
  font-size: 0.82rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rating i { color: var(--gold); }
.view-more-wrap { text-align: center; margin-top: 48px; }
.view-more-wrap .btn-outline { border-color: var(--gray-200); color: var(--navy); }
.view-more-wrap .btn-outline:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ===================================
   SERVICES
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(212,160,23,0.3); }
.service-featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, #1a2235, #0f1a2e);
  box-shadow: var(--shadow-gold);
}
.service-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.service-icon {
  width: 60px; height: 60px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.service-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-list { margin-bottom: 20px; }
.service-list li {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list i { color: var(--green-wa); font-size: 0.75rem; }
.service-price {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.service-price strong { color: var(--gold); font-size: 1.2rem; }

/* ===================================
   WHY US
   =================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(212,160,23,0.1), rgba(240,192,64,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 auto 16px;
}
.why-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.why-card p { font-size: 0.84rem; color: var(--gray-600); line-height: 1.5; }

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(212,160,23,0.3); transform: translateY(-4px); }
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: white; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ===================================
   CTA / CONTACT
   =================================== */
.cta-box {
  background: linear-gradient(135deg, var(--navy), #0d1630);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  border: 1px solid rgba(212,160,23,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.cta-text p { color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.8);
}
.contact-item i {
  width: 40px; height: 40px;
  background: rgba(212,160,23,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; color: white; font-size: 0.88rem; }
.contact-item span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.cta-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  min-width: 280px;
}
.cta-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cta-card > p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 20px; }
.separator {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  margin: 14px 0;
  position: relative;
}
.separator::before, .separator::after {
  content: '';
  position: absolute;
  top: 50%; width: 35%;
  height: 1px;
  background: var(--gray-200);
}
.separator::before { left: 0; }
.separator::after { right: 0; }
.cta-note {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cta-note i { color: var(--green-wa); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer-links h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ===================================
   WHATSAPP FLOAT
   =================================== */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--green-wa), #20bd5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-box { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { min-width: unset; }
}

@media (max-width: 768px) {
  .nav-links, .nav-wa { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open a { color: rgba(255,255,255,0.8); font-size: 1rem; }
  .hamburger { display: flex; }
  .hero-content { padding: 120px 20px 60px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .section { padding: 60px 0; }
  .cta-box { padding: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 20px; right: 20px; }
}
