/* ============================================================
   FOTOGRAF SZCZECIN – ANIMATION.CSS
   Scroll reveals, micro-interactions, transitions
   ============================================================ */

/* ---- SCROLL REVEAL CLASSES ---- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-fade  { transform: none; }

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-fade.in-view {
  opacity: 1;
  transform: none;
}

/* ---- IMAGE HOVER PARALLAX ---- */
.gallery-img-wrap,
.about-img-frame,
.blog-img-wrap,
.workshops-img-frame {
  transform-style: preserve-3d;
}

/* ---- SERVICE CARD SHINE ---- */
.service-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -60%;
  width: 40%;
  height: 300%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(201, 169, 110, 0.06) 40%,
    rgba(201, 169, 110, 0.1) 50%,
    rgba(201, 169, 110, 0.06) 60%,
    transparent 80%
  );
  transform: skewX(-10deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before { left: 140%; }

/* ---- PACKAGE CARD GLOW ---- */
.package-card--featured {
  animation: featuredPulse 4s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
  50% { box-shadow: 0 0 30px 8px rgba(201, 169, 110, 0.12); }
}

/* ---- BADGE DOT PING ---- */
.badge-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--clr-gold, #C9A96E);
  animation: ping 2s ease-out infinite;
}
.badge-dot { position: relative; }
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(3); opacity: 0; }
}

/* ---- COUNTER ODOMETER ---- */
.stat-num {
  display: inline-block;
  transition: none;
}

/* ---- STICKY HEADER TRANSITION ---- */
.site-header {
  transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s ease;
}
.site-header.hidden { transform: translateY(-100%); }

/* ---- HERO ENTRANCE ---- */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SCROLL LINE GROW ---- */
@keyframes scrollLineGrow {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
  40%  { transform: scaleY(1); opacity: 1; transform-origin: top; }
  60%  { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ---- TESTIMONIAL HOVER ---- */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- FAQ OPEN ANIMATION ---- */
.faq-answer {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  opacity: 0;
}
.faq-answer.open {
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease 0.1s;
}

/* ---- SOCIAL CARD ICON POP ---- */
.social-card i {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-card:hover i {
  transform: scale(1.2) translateY(-3px);
}

/* ---- CONTACT FORM FOCUS RING ---- */
.form-control {
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

/* ---- BTN RIPPLE ---- */
.btn {
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

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

/* ---- WORKSHOPS INFO CARD FLOAT ---- */
.workshops-info-card {
  animation: floatCard 5s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- LOADING SKELETON (for lazy images) ---- */
.gallery-img-wrap img,
.blog-img-wrap img,
.about-img-frame img {
  background: var(--clr-surface, #F4F0E8);
}

/* ---- MOBILE MENU ITEMS STAGGER ---- */
.mobile-menu.open .mobile-nav-link {
  animation: menuItemIn 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.mobile-nav-links li:nth-child(1) .mobile-nav-link { animation-delay: 0.05s; }
.mobile-nav-links li:nth-child(2) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(3) .mobile-nav-link { animation-delay: 0.15s; }
.mobile-nav-links li:nth-child(4) .mobile-nav-link { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(5) .mobile-nav-link { animation-delay: 0.25s; }
.mobile-nav-links li:nth-child(6) .mobile-nav-link { animation-delay: 0.3s; }
.mobile-nav-links li:nth-child(7) .mobile-nav-link { animation-delay: 0.35s; }
.mobile-nav-links li:nth-child(8) .mobile-nav-link { animation-delay: 0.4s; }

@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- GUIDE ITEM HOVER BAR ---- */
.guide-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-gold, #C9A96E);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-item:hover::after { transform: scaleX(1); }

/* ---- STICKY CTA ENTRANCE ---- */
@keyframes stickyCTAIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- GOLD LINE DIVIDER ANIMATION ---- */
.section-tag {
  position: relative;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
