/* ===== CUSTOM ANIMATIONS & EFFECTS ===== */

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

/* Fade-in on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.4s; }

/* Glassmorphism header */
.glass-header {
  background: rgba(248, 247, 246, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}
.dark .glass-header {
  background: rgba(33, 25, 17, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(230, 128, 25, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(230, 128, 25, 0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Floating particles */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Hero text glow */
.hero-title {
  text-shadow: 0 0 60px rgba(230, 128, 25, 0.3), 0 2px 10px rgba(0,0,0,0.3);
}

/* Shimmer button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}
.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 128, 25, 0.4);
}

/* Product card glow */
.product-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(230,128,25,0), rgba(230,128,25,0));
  z-index: -1;
  transition: background 0.4s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(230, 128, 25, 0.2);
}
.product-card:hover::before {
  background: linear-gradient(135deg, rgba(230,128,25,0.15), rgba(230,128,25,0.05));
}

/* Category card 3D tilt */
.category-card {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.category-card:hover {
  transform: translateY(-6px);
}

/* Section divider gradient */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #e68019, transparent);
  border: none;
  margin: 0 auto;
  width: 120px;
  border-radius: 2px;
  opacity: 0.7;
}

/* Value card hover */
.value-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.value-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.value-card .icon-wrap {
  transition: transform 0.4s ease, background 0.4s ease;
}
.value-card:hover .icon-wrap {
  transform: scale(1.15) rotate(5deg);
  background: rgba(230, 128, 25, 0.2);
}

/* Feature icon pulse */
.feature-icon {
  transition: transform 0.4s ease;
  animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.feature-icon:hover {
  animation: none;
  transform: scale(1.15) rotate(10deg);
}

/* CTA section gradient */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(230, 128, 25, 0.08) 0%, rgba(230, 128, 25, 0.15) 50%, rgba(230, 128, 25, 0.05) 100%) !important;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 128, 25, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 128, 25, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

/* Footer link hover */
footer a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}
footer a:hover {
  padding-left: 4px;
}

/* Badge pulse */
.badge-new {
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 128, 25, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(230, 128, 25, 0); }
}

/* Marquee for top announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, #e68019, #d4710f, #e68019);
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* Image overlay gradient for product cards */
.img-overlay {
  position: relative;
}
.img-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.img-overlay:hover::after {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #e68019;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4710f;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e68019;
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Counter animation */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* About section image overlay */
.about-image {
  position: relative;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(230, 128, 25, 0.2);
  transition: box-shadow 0.4s ease;
}
.about-image:hover::after {
  box-shadow: inset 0 0 0 3px rgba(230, 128, 25, 0.5);
}
