/* ============================================
   Custom Visual Enhancements for link.yammbo.com
   Loads AFTER style.min.css - additive only
   ============================================ */

/* --- Global --- */
html {
  scroll-behavior: smooth;
}

/* --- Animations Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.4); }
  50% { box-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.7), 0 0 40px rgba(var(--bs-primary-rgb), 0.3); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(var(--bs-info-rgb), 0.5); box-shadow: 0 0 15px rgba(var(--bs-info-rgb), 0.2); }
  50% { border-color: rgba(var(--bs-info-rgb), 1); box-shadow: 0 0 30px rgba(var(--bs-info-rgb), 0.4), 0 0 60px rgba(var(--bs-info-rgb), 0.1); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes checkmarkPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Scroll-triggered animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* --- Hero gradient mesh background --- */
.hero-gradient-mesh {
  position: relative;
  overflow: hidden;
}
.hero-gradient-mesh::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--bs-primary-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--bs-info-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(var(--bs-primary-rgb), 0.08) 0%, transparent 50%);
  background-size: 100% 100%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
  pointer-events: none;
}
.hero-gradient-mesh > * {
  position: relative;
  z-index: 1;
}

/* --- Navbar glassmorphism on scroll --- */
header .navbar {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
header.navbar-scrolled .navbar {
  background: rgba(var(--bs-body-bg-rgb, 255,255,255), 0.82) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] header.navbar-scrolled .navbar {
  background: rgba(30, 30, 40, 0.85) !important;
}

/* --- Card hover effects --- */
.card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Apply to existing cards in feature sections */
#mainfeatures .card,
#features .card-carousel-item.card,
section .card.shadow-sm,
section .card.shadow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
#mainfeatures .col-md-4 > .card:hover,
section .card.shadow-sm:hover,
section .card.shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* --- Glassmorphism card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .glass-card {
  background: rgba(40, 40, 55, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Button glow effect --- */
.btn-glow {
  position: relative;
  animation: glowPulse 2.5s ease-in-out infinite;
}
.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 24px rgba(var(--bs-primary-rgb), 0.6);
}

/* --- Section enhanced spacing --- */
.section-enhanced {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-enhanced {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* --- Hero typography enhancements --- */
#hero h1.display-enhanced {
  font-size: 2.8rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  #hero h1.display-enhanced {
    font-size: 3.5rem;
  }
}
@media (min-width: 992px) {
  #hero h1.display-enhanced {
    font-size: 4rem;
  }
}

/* --- Shorten form enhancement --- */
#hero form[data-trigger="shorten-form"] {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-color: rgba(0,0,0,0.08) !important;
}
#hero form[data-trigger="shorten-form"]:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.5) !important;
  box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.12);
}

/* --- Pricing section --- */
/* Pricing card glassmorphism */
.pricing .card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  overflow: hidden;
}
.pricing .card:hover {
  transform: translateY(-6px);
}

/* Popular plan glow border */
.pricing .card.border-info {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Price display - bigger & bolder */
.pricing .card .h2 .price {
  font-size: 2.2rem;
}

/* Feature list styling */
.pricing .card-body ul li {
  padding: 4px 0;
  transition: background 0.2s ease;
  border-radius: 6px;
}
.pricing .card-body ul li:hover {
  background: rgba(var(--bs-primary-rgb), 0.04);
  padding-left: 4px;
  padding-right: 4px;
}

/* Check/cross icons animation */
.pricing .card-body ul li .fa-check {
  animation: checkmarkPop 0.4s ease-out;
}

/* Pricing toggle - modern pill */
.pricing-container [data-pricing].btn {
  transition: all 0.3s ease;
  border: none;
}
.pricing-container [data-pricing].btn-primary {
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

/* --- Bio page cards --- */
section .card.gradient-primary,
section .card.gradient-secondary,
section .card.bg-danger {
  transition: transform 0.4s ease;
}
section .card.gradient-primary:hover,
section .card.gradient-secondary:hover,
section .card.bg-danger:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Widget grid on bio page */
.widget-grid-enhanced .d-inline-block {
  transition: transform 0.3s ease;
}
.widget-grid-enhanced .d-inline-block:hover {
  transform: translateY(-4px);
}

/* --- QR page enhancements --- */
/* QR preview floating shadow */
.qr-preview-enhanced {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.qr-preview-enhanced:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* QR feature cards grid */
.qr-feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.qr-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

/* --- Footer enhancements --- */
#footer-main {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.8), rgba(var(--bs-info-rgb), 0.6), rgba(var(--bs-primary-rgb), 0.8)) 1;
}
#footer-main .nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
#footer-main .nav-link:hover {
  color: rgba(var(--bs-primary-rgb), 1) !important;
  transform: translateX(3px);
}
#footer-main ul.nav li a.nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
#footer-main ul.nav li a.nav-link:hover {
  transform: scale(1.15);
}

/* --- FAQ smooth transitions --- */
.card .collapse {
  transition: height 0.35s ease;
}
.card .card-header[role="button"] {
  cursor: pointer;
  transition: background 0.2s ease;
}
.card .card-header[role="button"]:hover {
  background: rgba(var(--bs-primary-rgb), 0.04) !important;
}

/* --- CTA sections --- */
.with-shapes {
  transition: box-shadow 0.3s ease;
}
.with-shapes:hover {
  box-shadow: 0 16px 48px rgba(var(--bs-primary-rgb), 0.2);
}

/* --- Integration icons bounce --- */
.integrations {
  transition: transform 0.3s ease;
}
.integrations:hover {
  transform: translateY(-6px);
}
.integrations img,
.integrations span {
  transition: box-shadow 0.3s ease;
}
.integrations:hover img,
.integrations:hover span {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* --- Notification cards float --- */
#notifications-card .card {
  animation: floatSoft 4s ease-in-out infinite;
}
#notifications-card .card:nth-child(2) {
  animation-delay: 0.5s;
}
#notifications-card .card:nth-child(3) {
  animation-delay: 1s;
}

/* --- Stats counter section --- */
.counter {
  font-weight: 800;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 1), rgba(var(--bs-info-rgb), 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Testimonial cards --- */
section.bg-primary .card.shadow-sm {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section.bg-primary .card.shadow-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1) !important;
}

/* --- Mobile responsive adjustments --- */
@media (max-width: 767.98px) {
  #hero h1 {
    font-size: 2rem !important;
  }
  .section-enhanced {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .pricing .card .h2 .price {
    font-size: 1.8rem;
  }
  #notifications-card .card {
    animation: none;
  }
  header.navbar-scrolled .navbar {
    border-radius: 0;
  }
}

/* --- Scroll-to-top button enhancement --- */
#scroll-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#scroll-to-top:hover {
  transform: translateY(-3px) !important;
}

/* ============================================
   Dark Mode Overrides
   Selector: [data-theme="dark"] on <html>
   ============================================ */

/* --- Navbar glassmorphism (dark) --- */
[data-theme="dark"] header.navbar-scrolled .navbar {
  background: rgba(20, 20, 30, 0.88) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Card hover shadows (dark) - use lighter/colored instead of black --- */
[data-theme="dark"] .card-hover-lift:hover,
[data-theme="dark"] #mainfeatures .col-md-4 > .card:hover,
[data-theme="dark"] section .card.shadow-sm:hover,
[data-theme="dark"] section .card.shadow:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--bs-primary-rgb), 0.08) !important;
}

/* --- Glass card (dark) --- */
[data-theme="dark"] .glass-card {
  background: rgba(30, 30, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Shorten form border (dark) - visible on dark backgrounds --- */
[data-theme="dark"] #hero form[data-trigger="shorten-form"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] #hero form[data-trigger="shorten-form"]:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.6) !important;
  box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.2);
}

/* --- Pricing cards (dark) --- */
[data-theme="dark"] .pricing .card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .pricing .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--bs-primary-rgb), 0.1);
}
[data-theme="dark"] .pricing .card-body ul li:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* --- FAQ (dark) --- */
[data-theme="dark"] .card .card-header[role="button"]:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* --- QR preview shadow (dark) --- */
[data-theme="dark"] .qr-preview-enhanced:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--bs-primary-rgb), 0.1);
}

/* --- QR feature cards (dark) --- */
[data-theme="dark"] .qr-feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* --- Integration icons (dark) --- */
[data-theme="dark"] .integrations:hover img,
[data-theme="dark"] .integrations:hover span {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

/* --- Testimonial cards (dark) --- */
[data-theme="dark"] section.bg-primary .card.shadow-sm:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

/* --- Footer (dark) --- */
[data-theme="dark"] #footer-main {
  border-image: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.5), rgba(var(--bs-info-rgb), 0.3), rgba(var(--bs-primary-rgb), 0.5)) 1;
}
[data-theme="dark"] #footer-main .nav-link:hover {
  color: rgba(var(--bs-primary-rgb), 0.9) !important;
}

/* --- Hero gradient mesh (dark) - slightly brighter on dark bg --- */
[data-theme="dark"] .hero-gradient-mesh::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--bs-primary-rgb), 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(var(--bs-info-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(var(--bs-primary-rgb), 0.12) 0%, transparent 50%);
}

/* --- CTA with-shapes (dark) --- */
[data-theme="dark"] .with-shapes:hover {
  box-shadow: 0 16px 48px rgba(var(--bs-primary-rgb), 0.15);
}

/* --- Gradient text saturation (dark) - slightly less saturated --- */
[data-theme="dark"] .gradient-primary.clip-text {
  filter: saturate(1.1) brightness(1.15);
}

/* --- Bio page cards (dark) --- */
[data-theme="dark"] section .card.gradient-primary:hover,
[data-theme="dark"] section .card.gradient-secondary:hover,
[data-theme="dark"] section .card.bg-danger:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* --- Widget grid items (dark) --- */
[data-theme="dark"] .widget-grid-enhanced .d-inline-block:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Counter text (dark) - brighter gradient --- */
[data-theme="dark"] .counter {
  filter: brightness(1.2);
}

/* --- Scroll-to-top (dark) --- */
[data-theme="dark"] #scroll-to-top {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- Popular plan badge (dark) --- */
[data-theme="dark"] .pricing .badge.bg-info {
  box-shadow: 0 2px 12px rgba(0, 180, 216, 0.4);
}

/* --- Feature list items with stagger --- */
ul.list-unstyled li.animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
ul.list-unstyled li.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
ul.list-unstyled li.animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
ul.list-unstyled li.animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }

/* --- Gradient text vibrancy boost --- */
.gradient-primary.clip-text {
  filter: saturate(1.2);
}

/* --- Badge for popular plan --- */
.pricing .badge.bg-info {
  background: linear-gradient(135deg, #00b4d8, #0096c7) !important;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

/* --- Better button transitions globally --- */
.btn {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
