/* ============================================================
   GöcekAlize Otel – Animations
   ============================================================ */

/* ---- Scroll Fade-In (IntersectionObserver triggered) ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.from-left {
  transform: translateX(-36px);
}
.reveal.from-right {
  transform: translateX(36px);
}
.reveal.scale-in {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.25s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.35s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.45s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ---- Counter Animation ---- */
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.stat-number.counting { animation: countUp 0.3s ease forwards; }

/* ---- Shimmer Skeleton (loading placeholder) ---- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* ---- Image hover zoom ---- */
.zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}
.zoom-wrap img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.zoom-wrap:hover img {
  transform: scale(1.06);
}

/* ---- Gold line draw ---- */
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 56px; }
}
.divider.animated { width: 0; }
.divider.animated.visible { animation: lineGrow 0.6s ease 0.2s forwards; }

/* ---- Pulse (WhatsApp icon) ---- */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25d366;
  animation: pulse-ring 2.5s ease-out infinite;
  z-index: -1;
}
.whatsapp-float { position: fixed; }

/* ---- Page load fade ---- */
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFade 0.4s ease forwards; }

/* ---- Card hover lift (supplement style.css transitions) ---- */
.card-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(10,22,40,0.16);
}

/* ---- Floating badge animation ---- */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float-badge { animation: floatBadge 4s ease-in-out infinite; }

/* ---- Spinner (form submit) ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ---- Tagline progress bar ---- */
.tagline-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  transition: width linear;
}
