/* ADG UI Enhancement v2.0 — Premium Touches */

/* ─── Smooth Page Load Animation ─── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-redesign {
  animation: fadeSlideUp 0.8s ease-out;
}
.capability-section {
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}
.stats-bar {
  animation: fadeSlideUp 0.6s ease-out 0.4s both;
}

/* ─── Glassmorphism Nav Enhancement ─── */
.site-nav {
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  background: rgba(10, 10, 20, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: background 0.3s, box-shadow 0.3s !important;
}
.site-nav.scrolled {
  background: rgba(10, 10, 20, 0.92) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ─── Hero Glow Effect ─── */
.hero-redesign::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Card Hover Glow ─── */
.capability-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s,
              box-shadow 0.35s !important;
}
.capability-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(255, 152, 0, 0.06) !important;
}

/* ─── Bento Grid Cards — Glassmorphism ─── */
#bento-grid .bento-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
#bento-grid .bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ─── App Card Enhancement ─── */
.app-card .card-inner {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s !important;
}
.app-card:hover .card-inner {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 152, 0, 0.12);
}

/* ─── Spotlight Card Shimmer ─── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%);
  background-size: 200% 100%;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.spotlight-card:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

/* ─── Stats Counter Pulse ─── */
.stat-number, .stat-number-text {
  transition: transform 0.3s;
}
.stat-item:hover .stat-number,
.stat-item:hover .stat-number-text {
  transform: scale(1.08);
}

/* ─── Footer CTA Gradient Animation ─── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.footer-cta-btn {
  background: linear-gradient(135deg, #ff9800, #e65100, #ff5722, #ff9800) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 4s ease infinite;
}

/* ─── Scroll Reveal Enhancement ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Better Search Modal ─── */
.search-overlay input {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ─── Smooth Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 10, 20, 0.9);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 152, 0, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 152, 0, 0.5);
}

/* ─── Mobile Touch Feedback ─── */
@media (hover: none) {
  .capability-card:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }
  .app-card:active .card-inner {
    transform: scale(0.97);
  }
  .hero-cta-primary:active,
  .hero-cta-secondary:active,
  .footer-cta-btn:active {
    transform: scale(0.95);
  }
}

/* ─── PWA Install Banner Hint ─── */
.pwa-install-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.pwa-install-hint.show {
  transform: translateX(-50%) translateY(0);
}
.pwa-install-hint button {
  padding: 8px 18px;
  background: linear-gradient(135deg, #ff9800, #e65100);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-hint .dismiss {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  font-size: 1.2rem;
}
