/* =============================================================
   OLA HAIR BRAIDING — Animations & Reveal Effects
   ============================================================= */

/* ---- SCROLL REVEAL ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- HERO ENTRANCE ---- */
.hero-badge {
  animation: none;
  opacity: 0;
}

.hero-title .title-line {
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle,
.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll-hint {
  opacity: 0;
}

/* Apply when loaded */
.page-loaded .hero-badge {
  animation: fadeSlideUp 0.6s ease 0.2s forwards;
}

.page-loaded .hero-title .title-line:nth-child(1) {
  animation: fadeSlideUp 0.7s ease 0.3s forwards;
}

.page-loaded .hero-title .title-line:nth-child(2) {
  animation: fadeSlideUp 0.7s ease 0.45s forwards;
}

.page-loaded .hero-title .title-line:nth-child(3) {
  animation: fadeSlideUp 0.7s ease 0.6s forwards;
}

.page-loaded .hero-subtitle {
  animation: fadeSlideUp 0.6s ease 0.75s forwards;
}

.page-loaded .hero-buttons {
  animation: fadeSlideUp 0.6s ease 0.9s forwards;
}

.page-loaded .hero-scroll-hint {
  animation: fadeIn 0.8s ease 1.4s forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ---- GLIMMER SHINE on Cards ---- */
.service-card::after,
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 60%);
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}

.service-card:hover::after,
.gallery-item:hover::after {
  animation: glimmer 0.5s ease;
}

@keyframes glimmer {
  to {
    transform: translateX(100%);
  }
}

/* ---- FLOATING PARTICLE DOTS (pure CSS background effect) ---- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(233, 30, 99, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px, 200px 200px, 150px 150px;
  animation: particleDrift 20s linear infinite;
}

@keyframes particleDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 120px 120px, -80px -80px, 200px 50px, -150px 150px;
  }
}

/* ---- PINK NEON GLOW TEXT ANIMATION ---- */
@keyframes neonPulse {

  0%,
  100% {
    text-shadow:
      0 0 8px rgba(233, 30, 99, 0.6),
      0 0 20px rgba(233, 30, 99, 0.3);
  }

  50% {
    text-shadow:
      0 0 12px rgba(233, 30, 99, 0.9),
      0 0 35px rgba(233, 30, 99, 0.5),
      0 0 70px rgba(233, 30, 99, 0.2);
  }
}

.logo-ola {
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(233, 30, 99, 0.5));
  }
}

/* ---- STATS COUNTER ANIMATION ---- */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- BUTTON RIPPLE ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---- STAGGER ANIMATION for gallery items ---- */
.gallery-item:nth-child(1) {
  transition-delay: 0.05s;
}

.gallery-item:nth-child(2) {
  transition-delay: 0.1s;
}

.gallery-item:nth-child(3) {
  transition-delay: 0.15s;
}

.gallery-item:nth-child(4) {
  transition-delay: 0.2s;
}

.gallery-item:nth-child(5) {
  transition-delay: 0.25s;
}

.gallery-item:nth-child(6) {
  transition-delay: 0.3s;
}

.gallery-item:nth-child(7) {
  transition-delay: 0.35s;
}

.gallery-item:nth-child(8) {
  transition-delay: 0.4s;
}

/* ---- PINK BORDER GLOW PULSE on dashed boxes ---- */
@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(233, 30, 99, 0.35);
  }

  50% {
    border-color: rgba(233, 30, 99, 0.7);
  }
}

.style-card {
  animation: borderGlow 3s ease-in-out infinite;
}

.style-card:hover {
  animation: none;
}

/* ---- SLIDE IN for nav links ---- */
.nav-links.open .nav-link {
  animation: slideInRight 0.35s ease both;
}

.nav-links.open li:nth-child(1) .nav-link {
  animation-delay: 0.05s;
}

.nav-links.open li:nth-child(2) .nav-link {
  animation-delay: 0.1s;
}

.nav-links.open li:nth-child(3) .nav-link {
  animation-delay: 0.15s;
}

.nav-links.open li:nth-child(4) .nav-link {
  animation-delay: 0.2s;
}

.nav-links.open li:nth-child(5) .nav-link {
  animation-delay: 0.25s;
}

.nav-links.open li:nth-child(6) .nav-link {
  animation-delay: 0.3s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---- ABOUT IMAGE reveal ---- */
.about-img-badge {
  animation: none;
}

/* ---- SECTION background texture overlays ---- */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e91e63' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section-dark {
  position: relative;
}

.section-dark>* {
  position: relative;
  z-index: 1;
}

/* ---- PRELOADER ANIMATION ---- */
@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ---- HAIR STRAND DECORATION ---- */
.about-section::after {
  content: 'BRAIDING';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(233, 30, 99, 0.03);
  letter-spacing: 0.5em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* ====================================================
   Lightbox for gallery
   ==================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(233, 30, 99, 0.3);
}