/* ===== АНИМАЦИИ ===== */

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bgZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.18); }
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.5), 0 0 80px rgba(201,168,76,0.15); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes navAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

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

/* ===== PAGE TRANSITIONS ===== */
#app {
  min-height: 100vh;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

#app.page-leave {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

#app.page-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../panorams/p1.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.9);
  z-index: 0;
  animation: bgZoom 25s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(201,168,76,0.12) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 30%, rgba(10,12,20,0.7) 100%);
}

/* Декоративные кольца */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.12);
  animation: spin-slow linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-ring-1 { width: 600px; height: 600px; animation-duration: 40s; top: 50%; left: 50%; margin-top: -300px; margin-left: -300px; }
.hero-ring-2 { width: 900px; height: 900px; animation-duration: 60s; animation-direction: reverse; top: 50%; left: 50%; margin-top: -450px; margin-left: -450px; }
.hero-ring-3 { width: 1200px; height: 1200px; animation-duration: 80s; top: 50%; left: 50%; margin-top: -600px; margin-left: -600px; }

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  animation: titleReveal 1.2s cubic-bezier(0.4,0,0.2,1) 0.2s both;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 5rem;
  }
}

.hero p {
  font-size: 1.2rem;
  color: rgba(240,237,230,0.8);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.55s both;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.4rem;
  }
}

.hero .btn-primary {
  animation: fadeInUp 1s ease 0.75s both;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.wave-divider svg {
  display: block;
  width: 200%;
  animation: waveMove 12s linear infinite;
}
