/* ═══════════════════════════════════════════
   ANIMATIONS — LEO INTERIOR SERVICES
   ═══════════════════════════════════════════ */

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.6s ease;
  will-change: transform, opacity;
}

.splash-screen.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.splash-logo {
  height: 80px;
  margin-bottom: 24px;
  animation: logo-in 0.8s ease-out forwards;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.3));
}

.splash-title {
  color: var(--gold);
  font-family: var(--font-primary);
  font-size: 26px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1s steps(22, end) 0.5s forwards;
  width: 0;
  text-transform: uppercase;
}

.splash-tagline {
  color: rgba(255,255,255,0.6);
  opacity: 0;
  animation: fade-in 0.8s ease forwards 1.5s;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes logo-in {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.05) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 340px; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Slide from left */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.animate-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  font-family: var(--font-primary);
  transition: var(--transition);
  position: relative;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu a:hover::after {
  width: 100%;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-menu:hover {
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════
   HERO PARTICLES (subtle gold dots)
   ═══════════════════════════════════════════ */

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particles span:nth-child(5) { left: 85%; top: 40%; animation-delay: 3s; animation-duration: 10s; }
.hero-particles span:nth-child(6) { left: 40%; top: 80%; animation-delay: 1.5s; animation-duration: 7.5s; }
.hero-particles span:nth-child(7) { left: 60%; top: 15%; animation-delay: 4s; animation-duration: 8.5s; }
.hero-particles span:nth-child(8) { left: 15%; top: 45%; animation-delay: 2.5s; animation-duration: 9.5s; }

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; transform: translateY(-80px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* ═══════════════════════════════════════════
   SMOOTH PAGE TRANSITIONS
   ═══════════════════════════════════════════ */

body {
  transition: opacity 0.3s ease;
}

body.fade-out {
  opacity: 0;
}
