/* Core Styling and Premium Minimalist/Advanced Visual Theme for AML/CTF/CPF Book Website */

:root {
  --color-primary: #1f4f7c;
  --color-primary-dark: #12304d;
  --color-orange: #f17f24;
  --color-orange-dark: #d4651a;
  --color-yellow: #f3cf29;
  --color-bg-light: #fafaf9;
  --color-bg-dark: #09090b; /* Slate-950 dark */
}

/* Base resets & custom modern scrollbar */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(31, 79, 124, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* Custom CSS Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}
.dark .page-loader {
  background: var(--color-bg-dark);
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(31, 79, 124, 0.1);
  border-left-color: var(--color-orange);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.1, 0.9) infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glassmorphism Styles */
.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glass {
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Minimalist Hero Background (Solid Deep Blue) */
.hero-animated-bg {
  background-color: var(--color-primary-dark);
  position: relative;
}

/* Scroll Animation Hooks */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Premium Floating WhatsApp Support Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  text-align: center;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  background-color: #128c7e;
  color: #fff;
  box-shadow: 0 15px 35px rgba(18, 140, 126, 0.45);
}
.whatsapp-float::before {
  content: 'Need Help? Chat with Support';
  position: absolute;
  right: 75px;
  background-color: #09090b;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
  right: 68px;
}

/* Custom Toast Alerts */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}
.toast-msg {
  padding: 14px 20px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.toast-success {
  background-color: #09090b;
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}
.toast-error {
  background-color: #09090b;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.toast-info {
  background-color: #09090b;
  color: #6296ce;
  border-color: rgba(98, 150, 206, 0.2);
}

/* Testimonial slider transitions */
.testimonial-slide {
  display: none;
}
.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step Indicator styling (Momo checkout) */
.step-bar-line {
  background: #e4e4e7;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1;
}
.dark .step-bar-line {
  background: rgba(255, 255, 255, 0.05);
}
.step-bar-line-active {
  background: var(--color-accent);
  height: 2px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-circle {
  z-index: 3;
  width: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
  background: #ffffff !important;
  color: #71717a !important;
  border: 1px solid #e4e4e7 !important;
}
.dark .step-circle {
  background: #12304d !important;
  color: #a1a1aa !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.step-circle.active {
  background: var(--color-accent) !important;
  color: #12304d !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 15px rgba(243, 207, 41, 0.4);
}
.step-circle.completed {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* Premium Card hover effects with solid yellow border */
.hover-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hover-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* Cover Float Animation with Solid Yellow Shadow Glows */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(243, 207, 41, 0.18));
  }
  50% {
    transform: translateY(-15px) rotate(0.8deg);
    filter: drop-shadow(0 40px 35px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(243, 207, 41, 0.35));
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(243, 207, 41, 0.18));
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Advanced Glow Behind cover (None/Removed) */
.mockup-glow {
  position: relative;
}
