/* ==========================================================================
   Alernni — Premium Clean Flat Design System
   ========================================================================== */

:root {
  --brand-primary: #1877F2;
  --brand-hover: #0d5dd6;
  --bg-dark: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #141c2e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(24, 119, 242, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Cyber Grid Background Pattern */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Service Card Hover Glow */
.service-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Simulator Checked State */
.simulator-option-label input[type="radio"]:checked + .option-card {
  border-color: #1877F2;
  background-color: rgba(24, 119, 242, 0.12);
  box-shadow: 0 0 0 1px #1877F2, 0 10px 25px -5px rgba(24, 119, 242, 0.2);
}

.simulator-option-label input[type="radio"]:checked + .option-card .text-white {
  color: #60a5fa;
}

/* Subtle Floating Animation */
@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-bounce-subtle {
  animation: bounceSubtle 4s ease-in-out infinite;
}

/* Smooth Focus Rings */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1877F2;
  outline-offset: 2px;
}

/* FAQ Accordion Transitions */
.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Glassmorphic Navbar Backdrop */
#mainHeader.scrolled {
  background-color: rgba(11, 15, 25, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
