/* Floating Particles - more wow, more variety */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(239, 191, 0, 0.7);
  border-radius: 50%;
  animation: floatUp 13s infinite linear;
  filter: blur(0.5px);
  box-shadow: 0 0 8px 2px rgba(239,191,0,0.18);
}

.particle:nth-child(2n) {
  background: rgba(255, 215, 0, 0.5);
  animation-delay: -5s;
  width: 7px;
  height: 7px;
  filter: blur(1px);
}

.particle:nth-child(3n) {
  background: rgba(239, 191, 0, 0.3);
  animation-delay: -10s;
  width: 10px;
  height: 10px;
  filter: blur(2px);
}

.particle:nth-child(4n) {
  background: rgba(255,255,255,0.18);
  animation-delay: -7s;
  width: 5px;
  height: 5px;
  filter: blur(1.5px);
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    filter: blur(0.5px);
  }
  100% {
    transform: translateY(-120px) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* 3D Product Cards */
.product-card-3d {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.product-card-3d:hover {
  transform: translateY(-20px) rotateX(5deg) rotateY(5deg) scale(1.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(239, 191, 0, 0.22);
}

.product-card-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(239, 191, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.07) 100%
  );
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card-3d:hover::before {
  opacity: 1;
}

.product-card-3d .card-img-top {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
}

.product-card-3d:hover .card-img-top {
  transform: scale(1.12) rotateZ(2deg);
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98) rotateX(3deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.98) rotateY(-3deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0) scale(1) rotateY(0deg);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px) scale(0.98) rotateY(3deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0) scale(1) rotateY(0deg);
}

/* Welcome Section */
.welcome-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fffbe6 100%);
}

.welcome-text {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #efbf00, #d6aa00, #f1c40f, #fffbe6 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(239,191,0,0.10);
}

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

/* Category Cards 3D */
.category-card-3d {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.category-card-3d:hover {
  transform: translateY(-15px) rotateX(10deg) scale(1.04);
  box-shadow: 0 20px 40px rgba(239,191,0,0.18), 0 0 0 1px rgba(239,191,0,0.04);
}

.category-card-3d::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.5s;
}

.category-card-3d:hover::after {
  left: 100%;
}

/* Navbar 3D Effect */
.navbar-3d {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.93) !important;
  box-shadow: 0 8px 32px rgba(239,191,0,0.08);
  transition: all 0.3s ease;
}

.navbar-3d.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 40px rgba(239,191,0,0.13);
  transform: translateY(-2px);
}

/* Button 3D Effects */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(239,191,0,0.10);
}

.btn-3d::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;
}

.btn-3d:hover::before {
  left: 100%;
}

.btn-3d:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 10px 25px rgba(239, 191, 0, 0.4);
}

/* Loading Animation */
.loading-3d {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  transform-style: preserve-3d;
}

.loading-3d::before,
.loading-3d::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #efbf00;
  border-radius: 50%;
  animation: spin3D 1s linear infinite;
}

.loading-3d::after {
  border-top: 3px solid #d6aa00;
  animation-delay: -0.5s;
  animation-direction: reverse;
}

@keyframes spin3D {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: rotateY(90deg) rotateX(15deg);
  }
  50% {
    transform: rotateY(180deg) rotateX(0deg);
  }
  75% {
    transform: rotateY(270deg) rotateX(-15deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(0deg);
  }
}

/* Responsive 3D Effects */
@media (max-width: 768px) {
  .perfume-bottle-3d::before {
    width: 120px;
    height: 160px;
  }

  .welcome-text {
    font-size: 2.5rem;
  }

  .product-card-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg) scale(1.01);
  }

  .category-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.01);
  }
  .hero-3d {
    min-height: 350px;
  }
}

/* Performance Optimization */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
