/* ============================================
   CUSTOM STYLES – APEX ELITE
   Used for elements beyond Tailwind utility scope
   ============================================ */

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #E50914;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff1f2a;
}

/* Selection color */
::selection {
  background: rgba(229, 9, 20, 0.4);
  color: white;
}
::-moz-selection {
  background: rgba(229, 9, 20, 0.4);
  color: white;
}

/* Loader styles */
#loader {
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
body.loaded #loader {
  opacity: 0;
  visibility: hidden;
}

/* Glass effect extras */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Animated gradient background for some sections */
.bg-shimmer {
  background: linear-gradient(135deg, rgba(229,9,20,0.03) 0%, rgba(229,9,20,0.06) 50%, rgba(229,9,20,0.03) 100%);
  background-size: 200% 200%;
  animation: shimmerBg 8s ease infinite;
}
@keyframes shimmerBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar link active state */
.nav-link.active {
  color: white !important;
  background: rgba(255,255,255,0.08);
}

/* Counter animation smooth */
.counter-target {
  transition: all 0.1s ease-out;
}

/* Image reveal effect */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Fade in up animation for custom use */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth hover transitions globally */
a, button {
  transition: all 0.25s ease;
}

/* FAQ accordion styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px; /* enough for content */
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(229,9,20,0.3);
}

/* Video placeholder play button */
.play-btn {
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-thumb:hover .play-btn {
  transform: scale(1.1);
  background: #E50914;
}

/* Additional AOS fallback */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
}