/* ═══════════════════════════════════════════════════════════
   ALLIN HUBS LTD  ·  Custom CSS (animations & states only)
   Layout and spacing handled entirely by Tailwind CSS.
   ═══════════════════════════════════════════════════════════ */

/* ─── Fonts ────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ─── Loader ─────────────────────────────────────────────── */
#loader {
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-arc {
  animation: spin 1.6s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-progress-fill {
  animation: loadprogress 1.7s ease forwards;
}

@keyframes loadprogress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Ticker ─────────────────────────────────────────────── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  animation: ticker 28s linear infinite;
  display: inline-flex;
  white-space: nowrap;
}

/* ─── Hero Canvas ────────────────────────────────────────── */
#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ─── Navbar Scrolled State ──────────────────────────────── */
.nav-scrolled {
  background: rgba(2, 6, 23, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ─── Service Card Bottom Line ───────────────────────────── */
.svc-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00B868, #00F5A0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.group:hover .svc-card-line {
  transform: scaleX(1);
}

/* ─── Why Card Bottom Line ───────────────────────────────── */
.why-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00B868, #00F5A0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.group:hover .why-card-line {
  transform: scaleX(1);
}

/* ─── Impact Progress Bars ───────────────────────────────── */
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #00B868, #00F5A0);
  border-radius: 2px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ─── Mobile Menu ────────────────────────────────────────── */
#navMenu {
  transition: opacity 0.3s ease, visibility 0.3s;
}
#navMenu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#navMenu:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* ─── Pulse Dot (Hero pill badge) ────────────────────────── */
@keyframes pulse-dot {
  0%,  100% { box-shadow: 0 0 0 0   rgba(0, 212, 124, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 212, 124, 0);   }
}
.pulse-dot {
  animation: pulse-dot 2.5s ease infinite;
}

/* ─── Gradient Text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #00D47C, #00F5A0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Custom Select Arrow ────────────────────────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='rgba(255,255,255,0.4)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* ─── Back to Top Visible State ──────────────────────────── */
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Form Success show ──────────────────────────────────── */
#formSuccess:not(.hidden) {
  display: flex;
}
