:root {
  --primary: #2563eb;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

/* Gradient backgrounds */
.hero-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

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

/* Card hover effects */
.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

/* Button effects */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Image glow effect */
.img-glow {
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.2));
}

/* Mobile menu animation */
.mobile-menu {
  animation: slideIn 0.3s ease-out;
}

/* Loading animation */
.loading-bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  background-size: 200% 100%;
  animation: loading 2s linear infinite;
}

/* Keep gallery nav buttons aligned with the image box */
.gallery-swiper {
  position: relative;
}

.gallery-swiper .gallery-nav-btn {
  top: 50%;
  margin-top: 0;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-swiper .swiper-button-prev.gallery-nav-btn {
  left: 0.45rem;
  right: auto;
}

.gallery-swiper .swiper-button-next.gallery-nav-btn {
  right: 0.45rem;
  left: auto;
}

.gallery-swiper .gallery-nav-btn::after {
  content: "";
}

@media (min-width: 768px) {
  .gallery-swiper .gallery-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-swiper .swiper-button-prev.gallery-nav-btn {
    left: 0.6rem;
  }

  .gallery-swiper .swiper-button-next.gallery-nav-btn {
    right: 0.6rem;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
