/* Custom styles for Model Beauty Supply */

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

/* Header scroll state */
#site-header.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .font-display {
  color: #961c3e !important;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu .mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* Marquee */
.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 142, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 206, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float2 10s ease-in-out infinite;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255, 126, 142, 0.2);
  top: 30%;
  right: 15%;
  animation: float3 6s ease-in-out infinite;
}

.geo-rect-1 {
  width: 100px;
  height: 100px;
  background: rgba(255, 194, 206, 0.1);
  border: 1px solid rgba(255, 194, 206, 0.2);
  bottom: 20%;
  left: 10%;
  transform: rotate(45deg);
  animation: float4 12s ease-in-out infinite;
}

.geo-dot-grid {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(255, 126, 142, 0.3) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 60%;
  right: 5%;
  animation: float1 9s ease-in-out infinite reverse;
}

.geo-circle-4 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 142, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: float2 11s ease-in-out infinite;
}

.geo-rect-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 194, 206, 0.08);
  border: 1px solid rgba(255, 194, 206, 0.15);
  top: 20%;
  left: 5%;
  transform: rotate(30deg);
  animation: float3 8s ease-in-out infinite;
}

.geo-circle-5 {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 206, 0.1) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  animation: float1 10s ease-in-out infinite;
}

.geo-rect-3 {
  width: 60px;
  height: 60px;
  background: rgba(255, 126, 142, 0.08);
  border: 1px solid rgba(255, 126, 142, 0.15);
  bottom: 10%;
  right: 10%;
  transform: rotate(60deg);
  animation: float4 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -20px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(50deg) translate(10px, -10px); }
}

@keyframes float4 {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.1); }
}

/* Product card hover */
.product-card {
  will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .geo-shape {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .product-card {
    transition: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf8;
}
::-webkit-scrollbar-thumb {
  background: #d4456e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8284d;
}
