@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-charcoal-dark: #08080a;
  --color-charcoal-card: #121216;
  --color-charcoal-border: #24242d;
  --color-fire-orange: #ff5500;
  --color-fire-red: #e62e00;
  --color-fire-amber: #ffaa00;
}

html {
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-charcoal-dark);
  color: #f1f1f3;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #08080a;
}
::-webkit-scrollbar-thumb {
  background: #281812;
  border-radius: 5px;
  border: 2px solid #08080a;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff5500;
}

/* Fire Background Canvas - Hardware Layer */
#fire-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

/* Flame Text Gradient */
.text-flame-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ffa477 40%, #ff5500 70%, #e62e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-top: 0.2em;
  padding-bottom: 0.1em;
  line-height: 1.2;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fff5d6 0%, #ffc83b 50%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Ember Borders */
.glow-card {
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 85, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

.glow-card:hover {
  border-color: rgba(255, 85, 0, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px -5px rgba(255, 85, 0, 0.2), 0 0 15px rgba(255, 85, 0, 0.1);
}

/* Pulsing Flame Glow Button */
.btn-fire {
  background: linear-gradient(135deg, #ff4500 0%, #e62e00 50%, #cc1100 100%);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(255, 69, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-fire::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: 0.6s;
}

.btn-fire:hover::before {
  left: 100%;
}

.btn-fire:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(255, 69, 0, 0.6), 0 0 20px rgba(255, 170, 0, 0.4);
}

/* Secondary Dark Button */
.btn-charcoal {
  background: rgba(30, 30, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-charcoal:hover {
  background: rgba(45, 45, 58, 0.9);
  border-color: rgba(255, 170, 0, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Ambient Radial Heat Background Highlights - GPU isolated */
.heat-ambient-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.12) 0%, rgba(255, 120, 0, 0.05) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  transform: translateZ(0);
  will-change: transform;
}

.heat-ambient-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 46, 0, 0.15) 0%, rgba(255, 170, 0, 0.04) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  transform: translateZ(0);
  will-change: transform;
}

/* Flame animation pulse */
@keyframes flamePulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 85, 0, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 170, 0, 0.7));
  }
}

.animate-flame-pulse {
  animation: flamePulse 3s infinite ease-in-out;
}

/* ==========================================
   MARQUEE ANNOUNCEMENT TICKER (GPU Hardware Accelerated 120Hz/144Hz Smooth Flow)
   ========================================== */
.marquee-track {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2.5rem;
  width: 100%;
  contain: layout paint;
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2.5rem;
  min-width: 100%;
  animation: marqueeSeamless 30s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
  contain: layout paint;
}

.marquee-track:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes marqueeSeamless {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - 2.5rem), 0, 0);
  }
}

/* ==========================================
   PRODUCT TREE (BOM) & SIDEBAR
   ========================================== */
.tree-node-active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.25) 0%, rgba(194, 65, 12, 0.15) 100%) !important;
  border-color: rgba(249, 115, 22, 0.6) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
}

.tree-subnode-active {
  background: rgba(249, 115, 22, 0.2) !important;
  border-color: rgba(249, 115, 22, 0.7) !important;
  color: #fb923c !important;
  font-weight: 700 !important;
}

.tree-item-active {
  background: rgba(249, 115, 22, 0.25) !important;
  color: #ffedd5 !important;
  font-weight: 600 !important;
  padding-left: 1.25rem !important;
  border-left: 3px solid #f97316 !important;
}

/* Tree Branch Connector Lines */
.tree-branch {
  position: relative;
}

.tree-branch::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Custom Tree Scrollbar */
.custom-tree-scroll::-webkit-scrollbar {
  width: 5px;
}
.custom-tree-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.custom-tree-scroll::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.3);
  border-radius: 8px;
}
.custom-tree-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.6);
}

/* ==========================================
   BREADCRUMB STYLING
   ========================================== */
.breadcrumb-item:hover {
  color: #fb923c;
  text-decoration: underline;
}

/* ==========================================
   GOOGLE REVIEWS BADGE & RATING
   ========================================== */
.google-star {
  color: #fbbc04;
  fill: #fbbc04;
}

/* FAQ Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
  opacity: 0;
}
.faq-answer.open {
  max-height: 500px;
  opacity: 1;
}

