/* ================================================
   ART BY JADA — Animations & Transitions
   ================================================ */

/* --- Scroll Reveal --- */
.reveal {
  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: transform, opacity;
}

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

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

.hero-title-line:nth-child(1) {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-title-line:nth-child(2) {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

.hero-cta {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

/* --- Hero Background Ken Burns --- */
@keyframes kenBurns {
  0% { transform: scale(1.05); }
  50% { transform: scale(1.12) translate(-1%, -1%); }
  100% { transform: scale(1.05); }
}

.hero-bg-img {
  animation: kenBurns 25s ease-in-out infinite;
}

/* --- Gallery Item Reveal --- */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease,
              transform 0.5s ease,
              box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gallery Filter Transitions --- */
.gallery-item.filtering-out {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.filtering-in {
  animation: filterIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes filterIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Featured Item Hover Grow --- */
.featured-item {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
}

.featured-item:hover {
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.15);
}

.featured-item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* --- Image Lazy Load Fade-In --- */
.gallery-item img,
.featured-item img {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item img.loaded,
.featured-item img.loaded {
  opacity: 1;
}

/* --- Lightbox Transitions --- */
.lightbox {
  opacity: 0;
  animation: lightboxIn 0.3s ease forwards;
}

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

.lightbox .lightbox-content {
  animation: lightboxContentIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}

@keyframes lightboxContentIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox.closing {
  animation: lightboxOut 0.25s ease forwards;
}

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

/* --- Lightbox Image Navigation Transition --- */
.lightbox-img-wrapper img {
  transition: opacity 0.25s ease;
}

.lightbox-img-wrapper img.transitioning {
  opacity: 0.3;
}

/* --- Navigation Scroll Effect --- */
.main-nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* --- Back to Top Button --- */
.back-to-top {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tier Card Hover --- */
.tier-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
}

/* --- Filter Button Active Transition --- */
.filter-btn:active {
  transform: scale(0.95);
}

/* --- Contact Form Focus Glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* --- Social Link Icons --- */
.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.15);
}

/* --- Section Separator Gradient Line --- */
.section + .section::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent-gradient);
  margin: 0 auto var(--space-2xl);
  border-radius: 1px;
  opacity: 0.5;
}

.hero + .section::before {
  display: none;
}

/* --- Shimmer Loading Placeholder --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Commission Status Glow --- */
.status-badge.status-open .status-dot {
  box-shadow: 0 0 8px currentColor;
}

/* --- Link underline animation --- */
.footer-nav a {
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* --- Mobile Performance --- */
@media (max-width: 768px) {
  .hero-bg-img {
    animation: none;
  }
}
