/* ═══════════════════════════════════════════════ */
/* Tabblu Landing Page – Custom Styles            */
/* ═══════════════════════════════════════════════ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-200 {
  transition-delay: 0.2s;
}

/* ── Feature cards hover glow ── */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.08);
}

/* ── Pricing toggle ── */
.pricing-toggle {
  color: #9CA3AF;
}

.pricing-toggle.active {
  background: #1E3A5F;
  color: white;
}

/* ── FAQ accordion ── */
.faq-toggle {
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.open .faq-content {
  max-height: 200px;
}

/* ── Form focus ring ── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* ── Active nav link ── */
.nav-link.active {
  color: white;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #4A90E2;
  border-radius: 1px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0F0F0F;
}

::-webkit-scrollbar-thumb {
  background: #2D2D2D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3D3D3D;
}

/* ── Form submit states ── */
#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

#submit-btn.loading {
  position: relative;
  color: transparent;
}

#submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .pricing-card {
    scale: 1 !important;
  }
}
