:root {
  --gradient-primary: linear-gradient(135deg, #7367f0 0%, #9b8cf7 50%, #b4a7f8 100%);
  --gradient-secondary: linear-gradient(135deg, #808390 0%, #a0a3b0 50%, #c0c2cc 100%);
  --gradient-success: linear-gradient(135deg, #28c76f 0%, #48e08b 50%, #6ef8a5 100%);
  --gradient-info: linear-gradient(135deg, #00bad1 0%, #20d4e8 50%, #4ee8f8 100%);
  --gradient-warning: linear-gradient(135deg, #ff9f43 0%, #ffb976 50%, #ffce99 100%);
  --gradient-danger: linear-gradient(135deg, #ff4c51 0%, #ff7074 50%, #ff9497 100%);
  --gradient-dark: linear-gradient(135deg, #2f3349 0%, #4a4f6a 50%, #656b86 100%);
  --gradient-hero: linear-gradient(135deg, #7367f0 0%, #4a3fcf 50%, #2d1f8e 100%);
  --gradient-glow: linear-gradient(135deg, rgba(115, 103, 240, 0.3) 0%, rgba(40, 199, 111, 0.3) 100%);
  --gradient-card-border: linear-gradient(135deg, #7367f0, #28c76f, #ff9f43);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --animation-speed: 0.6s;
  --animation-delay: 0.1s;
}

[data-bs-theme="dark"] {
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --glass-bg: rgba(30, 30, 50, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(115, 103, 240, 0.3); }
  50% { box-shadow: 0 0 25px rgba(115, 103, 240, 0.6), 0 0 50px rgba(115, 103, 240, 0.3); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(-20px); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes progressBar {
  from { width: 0; }
}
@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.animate-fade-in { animation: fadeIn var(--animation-speed) ease forwards; }
.animate-fade-in-up { animation: fadeInUp var(--animation-speed) ease forwards; }
.animate-fade-in-down { animation: fadeInDown var(--animation-speed) ease forwards; }
.animate-fade-in-left { animation: fadeInLeft var(--animation-speed) ease forwards; }
.animate-fade-in-right { animation: fadeInRight var(--animation-speed) ease forwards; }
.animate-scale-in { animation: scaleIn var(--animation-speed) ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float3 { animation: float3 6s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) 0 0 / 200% 100%; animation: shimmer 2s infinite; }
.animate-rotate { animation: rotate 2s linear infinite; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-slide-down { animation: slideDown 0.5s ease forwards; overflow: hidden; }
.animate-typing-dot { animation: typing 1.4s ease-in-out infinite; }
.animate-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.animate-typing-dot:nth-child(3) { animation-delay: 0.4s; }
.animate-gradient-shift { background-size: 200% 200%; animation: gradientShift 4s ease infinite; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
.animate-delay-7 { animation-delay: 0.7s; }
.animate-delay-8 { animation-delay: 0.8s; }
.animate-delay-9 { animation-delay: 0.9s; }
.animate-delay-10 { animation-delay: 1s; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-success { background: var(--gradient-success); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-warning { background: var(--gradient-warning); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-info { background: var(--gradient-info); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-danger { background: var(--gradient-danger); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.gradient-bg { background: var(--gradient-primary) !important; }
.gradient-bg-success { background: var(--gradient-success) !important; }
.gradient-bg-warning { background: var(--gradient-warning) !important; }
.gradient-bg-info { background: var(--gradient-info) !important; }
.gradient-bg-danger { background: var(--gradient-danger) !important; }
.gradient-bg-dark { background: var(--gradient-dark) !important; }
.gradient-bg-hero { background: var(--gradient-hero) !important; }

.glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}
.glass-strong {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="dark"] .glass-strong {
  background: rgba(30, 30, 60, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card-hover-effect:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 60px rgba(115, 103, 240, 0.2) !important;
}

.btn-gradient {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease !important;
  background-size: 200% auto !important;
}
.btn-gradient:hover {
  background-position: right center !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(115, 103, 240, 0.4) !important;
}
.btn-gradient:active {
  transform: translateY(0);
}
.btn-gradient-success {
  background: var(--gradient-success) !important;
  border: none !important;
  color: #fff !important;
  background-size: 200% auto !important;
}
.btn-gradient-success:hover {
  background-position: right center !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(40, 199, 111, 0.4) !important;
}
.btn-gradient-warning {
  background: var(--gradient-warning) !important;
  border: none !important;
  color: #fff !important;
  background-size: 200% auto !important;
}
.btn-gradient-warning:hover {
  background-position: right center !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 159, 67, 0.4) !important;
}
.btn-gradient-danger {
  background: var(--gradient-danger) !important;
  border: none !important;
  color: #fff !important;
  background-size: 200% auto !important;
}
.btn-gradient-danger:hover {
  background-position: right center !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 76, 81, 0.4) !important;
}

.glow-effect {
  position: relative;
}
.glow-effect::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-effect:hover::after {
  opacity: 0.6;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-bs-theme="dark"] .hero-title,
[data-bs-theme="dark"] .hero-sub-title {
  color: #e0e0f0 !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(115, 103, 240, 0.08) 0%, transparent 70%);
  animation: gradientShift 10s ease infinite;
  background-size: 200% 200%;
  pointer-events: none;
}

.features-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.features-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(115, 103, 240, 0.06), transparent);
  transition: left 0.6s ease;
}
.features-card:hover::before {
  left: 100%;
}
.features-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(115, 103, 240, 0.15);
}

.pricing-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pricing-card:hover::after {
  opacity: 1;
}
.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(115, 103, 240, 0.2);
}

.contact-form-card {
  transition: all 0.4s ease;
}
.contact-form-card:hover {
  box-shadow: 0 15px 50px rgba(115, 103, 240, 0.12);
}

.navbar-blur {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(115, 103, 240, 0.08) !important;
  transition: all 0.4s ease !important;
}
[data-bs-theme="dark"] .navbar-blur {
  background: rgba(20, 20, 40, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.list-item-hover {
  transition: all 0.3s ease;
}
.list-item-hover:hover {
  transform: translateX(6px);
  background: rgba(115, 103, 240, 0.04);
}

.badge-gradient {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border: none !important;
}

.input-gradient:focus {
  border-color: #7367f0 !important;
  box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.15) !important;
}

.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}
@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

.page-transition {
  animation: pageIn 0.6s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7367f0, #9b8cf7);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #5e50e0, #7367f0); background-clip: content-box; }

::selection {
  background: rgba(115, 103, 240, 0.3);
  color: #2f2b3d;
}
[data-bs-theme="dark"] ::selection {
  background: rgba(115, 103, 240, 0.4);
  color: #e0e0f0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #7367f0 transparent;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}
.ripple-effect::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(115, 103, 240, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 0;
}
.ripple-effect:active::after {
  animation: ripple 0.6s ease-out;
}

.counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
