/* ============================================
   Visual Enhancements - Colors, Animations & Effects
   ============================================ */

/* Animated Gradient Background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating Particles Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(5deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-40px) translateX(-10px) rotate(-5deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-20px) translateX(5px) rotate(3deg);
    opacity: 0.8;
  }
}

/* Light Beam Animation */
@keyframes lightBeam {
  0% {
    transform: translateX(-100%) translateY(-50%) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(200vw) translateY(-50%) rotate(45deg);
    opacity: 0;
  }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(63, 122, 224, 0.3),
                0 0 40px rgba(63, 122, 224, 0.2),
                0 0 60px rgba(63, 122, 224, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(63, 122, 224, 0.5),
                0 0 60px rgba(63, 122, 224, 0.3),
                0 0 90px rgba(63, 122, 224, 0.2);
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Color Accent Animation */
@keyframes colorShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* ============================================
   Body Enhancements
   ============================================ */

/* Body background - keep it simple/white */
body {
  position: relative;
  overflow-x: hidden;
}

/* Floating Particles Container - Removed */

/* Light Beam Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(63, 122, 224, 0.6),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: lightBeam 8s linear infinite;
  pointer-events: none;
  z-index: 2;
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(63, 122, 224, 0.5);
}

/* ============================================
   Header Enhancements
   ============================================ */

.header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 122, 224, 0.1);
  box-shadow: 0 4px 30px rgba(63, 122, 224, 0.1);
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: 0 6px 40px rgba(63, 122, 224, 0.15);
}

.logo-text {
  background: linear-gradient(135deg, #3f7ae0 0%, #9333ea 50%, #ec4899 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  transition: transform 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
}

/* ============================================
   Navigation Enhancements
   ============================================ */

.menu-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63, 122, 224, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.menu-link:hover::before {
  left: 100%;
}

.menu-link:hover {
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(147, 51, 234, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(63, 122, 224, 0.2);
}

/* ============================================
   Product Card Enhancements
   ============================================ */

.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #f0f4ff 100%);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 16px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(63, 122, 224, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
  animation: pulseGlow 2s ease-in-out infinite;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(63, 122, 224, 0.25),
              0 0 40px rgba(147, 51, 234, 0.15),
              0 0 0 3px rgba(63, 122, 224, 0.4),
              inset 0 0 0 1px rgba(147, 51, 234, 0.2);
  border-color: rgba(63, 122, 224, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #f8faff 100%);
}

.product-img {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.product-card:hover .product-img::after {
  left: 100%;
  animation: shimmer 1.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.1) saturate(1.2);
}

/* ============================================
   Button Enhancements
   ============================================ */

.btn-primary,
.hero-main-btn,
.add-to-cart {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3f7ae0 0%, #9333ea 100%);
  background-size: 200% 200%;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(63, 122, 224, 0.3);
}

.btn-primary::before,
.hero-main-btn::before,
.add-to-cart::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 ease, height 0.6s ease;
}

.btn-primary:hover::before,
.hero-main-btn:hover::before,
.add-to-cart:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover,
.hero-main-btn:hover,
.add-to-cart:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(63, 122, 224, 0.4),
              0 0 30px rgba(147, 51, 234, 0.3);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.btn-primary:active,
.hero-main-btn:active,
.add-to-cart:active {
  transform: translateY(0px);
}

/* ============================================
   Section Enhancements
   ============================================ */

.section-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(63, 122, 224, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #1f2933 0%, #3f7ae0 50%, #9333ea 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

/* ============================================
   Floating Decorative Elements
   ============================================ */

.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.1;
  animation: float 15s ease-in-out infinite;
}

.floating-shape-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #3f7ae0, transparent);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-shape-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #9333ea, transparent);
  top: 60%;
  right: 10%;
  animation-delay: 3s;
}

.floating-shape-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

/* ============================================
   Scroll Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Price Badge Enhancements
   ============================================ */

.new-price {
  position: relative;
  color: #3f7ae0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(63, 122, 224, 0.3);
}

.old-price {
  position: relative;
}

.old-price::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ec4899, #9333ea);
  transform: translateY(-50%);
  opacity: 0.6;
}

/* ============================================
   Input Field Enhancements
   ============================================ */

.form-control:focus {
  border-color: #3f7ae0;
  box-shadow: 0 0 0 0.2rem rgba(63, 122, 224, 0.25),
              0 0 20px rgba(63, 122, 224, 0.1);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* ============================================
   Badge Enhancements
   ============================================ */

.badge {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(63, 122, 224, 0.3);
}

/* ============================================
   Loading Spinner Enhancement
   ============================================ */

.spinner-border {
  border-color: #3f7ae0;
  border-right-color: transparent;
  animation: spinner-border 0.75s linear infinite,
             pulseGlow 2s ease-in-out infinite;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  body::after {
    animation-duration: 12s;
  }
  
  .floating-shape {
    opacity: 0.05;
  }
  
  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* ============================================
   Performance Optimizations
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
