/* ===================================
   ANIMATIONS CSS - Lens & Life
=================================== */

/* 3D Tilt effect for cards */
.service-card, .video-card {
  transform-style: preserve-3d;
  will-change: transform;
}

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

/* Gold shimmer */
.gold-text {
  background: linear-gradient(90deg, #C9A84C, #E8C97A, #C9A84C, #9A7A2E, #C9A84C);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 300% center; }
}

/* Nav logo camera icon spin on hover */
.nav-logo:hover .logo-icon {
  animation: cameraSpin 0.5s ease;
}
@keyframes cameraSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-20deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Stats bar number glow */
.stat-num {
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* 3D hover for portfolio items */
.portfolio-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Section divider particles */
.services-section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-bottom: 0;
}

/* 3D depth for about section */
.about-img-stack {
  perspective: 1000px;
}
.ab-main {
  transition: transform 0.5s ease;
}
.about-img-stack:hover .ab-main {
  transform: rotateY(-5deg) rotateX(3deg);
}
.ab-sm1 {
  transition: transform 0.5s ease 0.1s;
}
.about-img-stack:hover .ab-sm1 {
  transform: rotateY(-8deg) rotateX(5deg) translateZ(20px);
}

/* Particle dots bg for hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201,168,76,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
  animation: particlesDrift 20s linear infinite;
}
@keyframes particlesDrift {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* Form field focus glow */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2), 0 0 20px rgba(201,168,76,0.1);
}

/* Button press effect */
.btn:active {
  transform: scale(0.97) !important;
}

/* Video card shimmer on hover */
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.05) 50%, transparent 60%);
  transition: transform 0.6s ease;
  transform: translateX(-100%);
  pointer-events: none;
}
.video-card:hover::after {
  transform: translateX(100%);
}

/* Scroll reveal for stat numbers */
.stat-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Testimonial card hover lift */
.testi-card {
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; right: 16px;
  font-size: 6rem;
  font-family: 'Playfair Display', serif;
  color: rgba(201, 168, 76, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* WhatsApp button ring animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-ring 2.5s ease-in-out infinite;
}
@keyframes wa-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
}

/* Popup entrance */
.popup-box {
  animation: popupIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupIn {
  from { transform: scale(0.7) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Loader ring gradient */
.loader-inner {
  animation: fadeInLoader 0.5s ease;
}
@keyframes fadeInLoader {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* BTS image reveal */
.bts-strip img {
  position: relative;
  overflow: hidden;
}

/* Gold border glow on active nav */
.nav-links a.active {
  color: var(--gold);
}

/* 3D perspective for contact form */
.contact-form-card {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.contact-form-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.08);
}

/* Smooth section entrance */
section {
  position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}