/* ==========================================================================
   MOZAIK MOTOR - Racing & Daily Motorcycle Workshop
   Custom Stylesheet - Modern Racing Aesthetic
   Font: Poppins (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Primary Racing Palette */
  --color-race-red: #E5252A;
  --color-race-red-dark: #b91519;
  --color-race-red-glow: rgba(229, 37, 42, 0.45);
  
  --color-race-blue: #0A66C2;
  --color-race-blue-dark: #07478a;
  --color-race-cyan: #00D2FF;
  --color-race-cyan-glow: rgba(0, 210, 255, 0.35);

  /* Dark Theme Surfaces */
  --bg-dark-900: #0B0E14;
  --bg-dark-800: #10151F;
  --bg-dark-700: #171E2C;
  --bg-dark-600: #20293C;
  
  /* Metallic & Accents */
  --color-carbon: #131720;
  --color-chrome: #E2E8F0;
  --color-silver: #94A3B8;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(229, 37, 42, 0.3);
}

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

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  background-color: var(--bg-dark-900);
  color: #F1F5F9;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark-900);
  color: #E2E8F0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Carbon Pattern Background */
.bg-carbon {
  background-color: var(--bg-dark-900);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(10, 102, 194, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(229, 37, 42, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, #0e121a 25%, transparent 25%),
    linear-gradient(-45deg, #0e121a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #0e121a 75%),
    linear-gradient(-45deg, transparent 75%, #0e121a 75%);
  background-size: 100% 100%, 100% 100%, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
  background-position: 0 0, 0 0, 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Racing Stripe Element */
.racing-stripe {
  position: relative;
  overflow: hidden;
}

.racing-stripe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E5252A 0%, #E5252A 40%, #00D2FF 40%, #00D2FF 70%, #0A66C2 70%, #0A66C2 100%);
  z-index: 10;
}

.racing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(229, 37, 42, 0.12);
  border: 1px solid rgba(229, 37, 42, 0.35);
  color: #ff6b6e;
  box-shadow: 0 0 15px rgba(229, 37, 42, 0.15);
}

.racing-badge.blue {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #38BDF8;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

/* Racing Glass Card */
.glass-card {
  background: rgba(23, 30, 44, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 37, 42, 0.4);
  box-shadow: 0 12px 30px -10px rgba(229, 37, 42, 0.2), 0 0 20px rgba(0, 210, 255, 0.08);
}

.glass-card-blue:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 12px 30px -10px rgba(0, 210, 255, 0.25);
}

/* Glowing Neon Elements */
.glow-red {
  box-shadow: 0 0 25px var(--color-race-red-glow);
}

.glow-blue {
  box-shadow: 0 0 25px var(--color-race-cyan-glow);
}

.text-gradient-red {
  background: linear-gradient(135deg, #FFF 0%, #FFA8A8 40%, #E5252A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-race {
  background: linear-gradient(135deg, #FFFFFF 15%, #E5252A 60%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 10%, #38BDF8 60%, #0A66C2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button Styling */
.btn-race-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #E5252A 0%, #C31419 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px -4px rgba(229, 37, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-race-primary:hover {
  background: linear-gradient(135deg, #FF3338 0%, #D41A20 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(229, 37, 42, 0.7), 0 0 15px rgba(229, 37, 42, 0.4);
  color: #FFFFFF;
}

.btn-race-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(23, 30, 44, 0.85);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-race-secondary:hover {
  background: rgba(32, 41, 60, 0.95);
  border-color: rgba(0, 210, 255, 0.5);
  color: #38BDF8;
  transform: translateY(-2px);
}

.btn-race-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.45);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-race-wa:hover {
  background: linear-gradient(135deg, #2ae771 0%, #149c8d 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(37, 211, 102, 0.65);
  color: #FFFFFF;
}

/* Pulse animation for live online indicators */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: #25D366;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
  display: inline-block;
}

/* Speedometer Needle / Gauge Touch */
.gauge-accent {
  position: relative;
  display: inline-block;
}

.gauge-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #E5252A, transparent);
  border-radius: 2px;
}

/* Interactive Symptom Card */
.symptom-item {
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 21, 31, 0.6);
  border-radius: 0.75rem;
}

.symptom-item:hover, .symptom-item.active {
  border-color: #E5252A;
  background: rgba(229, 37, 42, 0.08);
  transform: translateX(4px);
}

.symptom-item.active {
  box-shadow: inset 4px 0 0 #E5252A;
}

/* Banner Frame 3D Effect */
.banner-frame {
  position: relative;
  border-radius: 1.25rem;
  padding: 8px;
  background: linear-gradient(135deg, rgba(229, 37, 42, 0.5) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(10, 102, 194, 0.5) 100%);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(229, 37, 42, 0.2);
}

.banner-frame img {
  border-radius: 0.9rem;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.banner-frame:hover img {
  transform: scale(1.015);
}

/* Floating WhatsApp Widget */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  animation: pulseGlow 2.5s infinite;
}

.wa-fab-btn:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
  color: white;
}

.wa-tooltip-bubble {
  background: #171E2C;
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #F8FAFC;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  white-space: nowrap;
  animation: bounceHorizontal 2.5s infinite;
}

@keyframes bounceHorizontal {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
}

/* Fade-in animation for filtered service cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out both;
}

/* FAQ Accordion Styling */
.faq-question {
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #E5252A;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #0B0E14;
}

::-webkit-scrollbar-thumb {
  background: #20293C;
  border-radius: 6px;
  border: 2px solid #0B0E14;
}

::-webkit-scrollbar-thumb:hover {
  background: #E5252A;
}

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Highlight badge for Torang Bekeng Bae */
.motto-banner {
  background: linear-gradient(90deg, rgba(229, 37, 42, 0.15) 0%, rgba(10, 102, 194, 0.15) 100%);
  border-left: 4px solid #E5252A;
  border-right: 4px solid #0A66C2;
}

/* Interactive & Navigation Helpers */
.desktop-nav-link {
  transition: color 0.25s ease;
}

.mobile-nav-link {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-filter-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.counter-val {
  font-variant-numeric: tabular-nums;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-wa {
    bottom: 18px;
    right: 18px;
  }
  .wa-tooltip-bubble {
    display: none;
  }
  .wa-fab-btn {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
}
