@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
  /* Colors */
  --color-primary: #327c34;
  --color-primary-light: #3d9641;
  --color-primary-dark: #276329;
  --color-secondary: #243372;
  --color-secondary-hover: #2d3e94;
  --color-bg-light: #f8fafc;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Animation */
  --transition-speed: 0.3s;

  /* Typography */
  --font-alexandria: "Alexandria", sans-serif;
  --font-poppins: "Poppins", sans-serif;

  /* Border Radius */
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Gradient definitions */
  --gradient-primary: linear-gradient(135deg, #327c34 0%, #3d9641 100%);
  --gradient-secondary: linear-gradient(135deg, #243372 0%, #2d3e94 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #f0fdf4 0%,
    #dbeafe 50%,
    #fae8ff 100%
  );
  --gradient-accent: linear-gradient(135deg, #327c34 0%, #243372 100%);
  --gradient-glow: radial-gradient(
    circle at center,
    rgba(50, 124, 52, 0.3) 0%,
    transparent 70%
  );
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Alexandria", sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-secondary);
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

body.rtl {
  direction: rtl;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Glass Effect */
.glass-premium {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Custom Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(50, 124, 52, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(50, 124, 52, 0.8);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Gradient text */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Borders */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 1.5rem;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: var(--gradient-accent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.rtl .animate-marquee {
  animation: marquee-rtl 30s linear infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Plan Toggle Switch */
.toggle-dot {
  transition: transform 0.3s ease-in-out;
}

input:checked ~ .toggle-dot {
  transform: translateX(100%);
}

.rtl input:checked ~ .toggle-dot {
  transform: translateX(-100%);
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glow Effects */
.glow-primary {
  box-shadow: 0 0 30px rgba(50, 124, 52, 0.5);
}

.glow-secondary {
  box-shadow: 0 0 30px rgba(36, 51, 114, 0.5);
}

/* Floating Particles */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-5px, -20px) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    transform: translate(-15px, -10px) rotate(270deg);
    opacity: 0.5;
  }
}

.particle {
  animation: particle-float 20s infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .glass,
  .glass-premium {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Testimonials Infinite Scroll Animation */
@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-408px * 3)
    ); /* 400px width + 8px gap = 408px per card, 3 cards */
  }
}

.animate-scroll-testimonials {
  animation: scroll-testimonials 20s linear infinite;
}

.hover\:pause-animation:hover {
  animation-play-state: paused;
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 32px;
  border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-secondary);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: white;
}

button {
  cursor: pointer;
}
button:hover {
  transform: translateY(-2px);
}
