/* ===========================
   GrowLED PRO - Global Styles
   =========================== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f1117;
  color: #cbd5e1;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Scroll Reveal Animations
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===========================
   Card Hover Effects
   =========================== */

.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: #7e1e57;
}

/* ===========================
   Floating Button Pulse
   =========================== */

.pulse-ring {
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(126, 30, 87, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(126, 30, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 30, 87, 0); }
}

/* ===========================
   Modal
   =========================== */

.modal-backdrop {
  background-color: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===========================
   Custom Range Slider
   =========================== */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #252838;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7e1e57;
  border: 2px solid #b84890;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(126, 30, 87, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7e1e57;
  border: 2px solid #b84890;
  cursor: pointer;
}

/* ===========================
   Counter Animation
   =========================== */

.counter-value {
  transition: color 0.3s ease;
}

/* ===========================
   Carousel
   =========================== */

.carousel-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar {
  display: none;
}

/* ===========================
   FAQ Accordion
   =========================== */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem !important;
}

.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ===========================
   Timeline Connector
   =========================== */

.timeline-line {
  background: linear-gradient(to bottom, #7e1e57, #5c1640);
}

@media (min-width: 1024px) {
  .timeline-line-h {
    background: linear-gradient(to right, #7e1e57, #5c1640);
  }
}

/* ===========================
   Form Steps Indicator
   =========================== */

.step-dot {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.step-dot.active {
  background-color: #7e1e57;
  transform: scale(1.2);
}
.step-dot.completed {
  background-color: #22c55e;
}
.step-connector {
  transition: background-color 0.5s ease;
}
.step-connector.active {
  background-color: #7e1e57;
}

/* ===========================
   Spectrum Configurator
   =========================== */

.spectrum-svg {
  width: 100%;
  height: auto;
}

/* ===========================
   Header transition
   =========================== */

.header-scrolled {
  background-color: rgba(21, 23, 32, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #252838;
}

/* ===========================
   Logos scroll animation
   =========================== */

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logos-scroll {
  animation: scroll-logos 25s linear infinite;
}
.logos-scroll:hover {
  animation-play-state: paused;
}

/* ===========================
   Selection color
   =========================== */

::selection {
  background-color: rgba(126, 30, 87, 0.35);
  color: #f1f5f9;
}

/* ===========================
   Accessibility: Focus States
   =========================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b84890;
  outline-offset: 2px;
}

input[type="range"]:focus-visible {
  outline: none;
}
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(184, 72, 144, 0.4);
}

/* ===========================
   Accessibility: Skip Link
   =========================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: #7e1e57;
  color: white;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ===========================
   Accessibility: Reduced Motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pulse-ring {
    animation: none !important;
  }
  .logos-scroll {
    animation: none !important;
  }
  .card-hover {
    transition: none !important;
  }
  .faq-answer {
    transition: none !important;
  }
  .faq-chevron {
    transition: none !important;
  }
  .step-dot {
    transition: none !important;
  }
  .step-connector {
    transition: none !important;
  }
}

/* ===========================
   Breadcrumb
   =========================== */

.breadcrumb {
  font-size: 0.8125rem;
  color: #6b7280;
}
.breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #d66cb3;
}
.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #4b5563;
}
