/* Custom styles for Yeya Beauty Private Studio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff7a35;
}

/* Selection color */
::selection {
  background: #ff7a35;
  color: #141414;
}

/* Service card stagger animation */
.service-card {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.revealed {
  animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1).revealed { animation-delay: 0.05s; }
.service-card:nth-child(2).revealed { animation-delay: 0.1s; }
.service-card:nth-child(3).revealed { animation-delay: 0.15s; }
.service-card:nth-child(4).revealed { animation-delay: 0.2s; }
.service-card:nth-child(5).revealed { animation-delay: 0.25s; }
.service-card:nth-child(6).revealed { animation-delay: 0.3s; }

/* Gallery item animation */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
}

.gallery-item.revealed {
  animation: scaleIn 0.5s ease forwards;
}

.gallery-item:nth-child(1).revealed { animation-delay: 0.03s; }
.gallery-item:nth-child(2).revealed { animation-delay: 0.06s; }
.gallery-item:nth-child(3).revealed { animation-delay: 0.09s; }
.gallery-item:nth-child(4).revealed { animation-delay: 0.12s; }
.gallery-item:nth-child(5).revealed { animation-delay: 0.15s; }
.gallery-item:nth-child(6).revealed { animation-delay: 0.18s; }
.gallery-item:nth-child(7).revealed { animation-delay: 0.21s; }
.gallery-item:nth-child(8).revealed { animation-delay: 0.24s; }

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating cards animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float 5s ease-in-out infinite 0.5s;
}

.floating-card-3 {
  animation: float 4.5s ease-in-out infinite 1s;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 122, 53, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .gallery-item {
    opacity: 1;
    transform: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
