/* ===== Custom Styles for The Strand Salon ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050d1a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #c9a84c, #5eead4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #dfc078, #99f6e4);
}

/* ===== Hero Animations ===== */
.hero-reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 0.8s ease forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.2s; }
.hero-reveal:nth-child(2) { animation-delay: 0.4s; }
.hero-reveal:nth-child(3) { animation-delay: 0.6s; }
.hero-reveal:nth-child(4) { animation-delay: 0.8s; }
.hero-reveal:nth-child(5) { animation-delay: 1.0s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before {
  opacity: 1;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 26, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  transition: all 0.4s ease;
}

/* ===== Navbar ===== */
#navbar.scrolled {
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  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.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Hamburger Animation ===== */
#menu-toggle.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active #bar2 {
  opacity: 0;
}
#menu-toggle.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* ===== Gold shimmer effect on CTA ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

/* ===== Selection color ===== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* ===== Focus styles ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .hero-reveal {
    transform: translateY(20px);
  }
}

/* ===== Subtle grain texture overlay ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
