/* Custom style sheet for Skins75 Unisex Salon & Academy */

/* Smooth scroll only if the user hasn't requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF8F5; /* Matches Cream background */
}
::-webkit-scrollbar-thumb {
  background: #C5A880; /* Gold/Champagne accent */
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A3835B;
}

/* Base style for Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Lightbox Specific Styles */
.lightbox-open {
  overflow: hidden;
}

#lightbox-overlay {
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

#lightbox-img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Premium Button Hover Overlay */
.btn-premium-hover {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: height 0.3s ease;
  z-index: -1;
}

.btn-premium-hover:hover::after {
  height: 100%;
}

/* Custom focus ring styling for keyboard accessibility */
button:focus-visible, 
a:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
  outline: 2px solid #C5A880;
  outline-offset: 4px;
}

/* ============================================
   CINEMATIC VIDEO HERO
   ============================================ */

/* Hero container */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #1a1a1a;
}

@media (max-width: 767px) {
  .hero-video-section {
    min-height: 85vh;
  }
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

/* Subtle slow zoom on video for cinematic feel */
@media (prefers-reduced-motion: no-preference) {
  .hero-video {
    animation: heroVideoZoom 20s ease-in-out infinite alternate;
  }
}

@keyframes heroVideoZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Multi-layer overlay — subtle, preserves video colors */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 20, 20, 0.30) 0%,
      rgba(20, 20, 20, 0.05) 30%,
      rgba(20, 20, 20, 0.03) 55%,
      rgba(20, 20, 20, 0.25) 80%,
      rgba(20, 20, 20, 0.55) 100%
    );
  pointer-events: none;
}

/* Slightly stronger overlay on mobile for readability */
@media (max-width: 767px) {
  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.40) 0%,
        rgba(20, 20, 20, 0.10) 30%,
        rgba(20, 20, 20, 0.08) 55%,
        rgba(20, 20, 20, 0.35) 80%,
        rgba(20, 20, 20, 0.65) 100%
      );
  }
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

@media (max-width: 767px) {
  .hero-content {
    min-height: 85vh;
    padding: 5rem 1rem 3rem;
  }
}

/* Hero content staggered entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-fade-in-1 { animation-delay: 0.3s; }
  .hero-fade-in-2 { animation-delay: 0.6s; }
  .hero-fade-in-3 { animation-delay: 0.9s; }
  .hero-fade-in-4 { animation-delay: 1.2s; }
  .hero-fade-in-5 { animation-delay: 1.5s; }
  .hero-fade-in-6 { animation-delay: 1.8s; }
}

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

/* Reduced motion: show everything instantly */
@media (prefers-reduced-motion: reduce) {
  .hero-fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-video {
    animation: none !important;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: scrollIndicatorFade 1s ease 2.5s forwards;
}

@keyframes scrollIndicatorFade {
  to { opacity: 1; }
}

.scroll-indicator span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.scroll-indicator-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* Hide scroll indicator on very small screens */
@media (max-height: 600px) {
  .scroll-indicator {
    display: none;
  }
}

/* Hero parallax scroll effect */
.hero-parallax-wrap {
  will-change: transform, opacity;
  transition: none;
}

/* Poster fallback when video fails */
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Sound toggle button */
.hero-sound-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* Hero CTA buttons – light theme for dark background */
.hero-cta-primary {
  background: #C5A880;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid #C5A880;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta-primary:hover {
  background: #fff;
  color: #1a1a1a;
  border-color: #fff;
  box-shadow: 0 8px 30px rgba(197, 168, 128, 0.3);
}

.hero-cta-secondary {
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.hero-cta-call:hover {
  color: #C5A880;
}
