/* ==========================================================================
   FIRST CHOICE DENTAL CLINIC - LUXURY ANIMATIONS & PRELOADER
   GSAP Keyframe Classes, Custom Luxury Cursor, Particle Preloader
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PRELOADER CINEMATIC OVERLAY
   -------------------------------------------------------------------------- */
.preloader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  position: relative;
  max-width: 400px;
  padding: 2rem;
}

.crystal-tooth-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Particle Aura around Tooth */
.tooth-aura {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.35) 0%, rgba(197, 160, 89, 0) 70%);
  animation: auraPulse 2s infinite ease-in-out;
}

.crystal-tooth-svg {
  width: 70px;
  height: 70px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.6));
  animation: floatTooth 3s ease-in-out infinite;
}

/* Rotating Ring */
.preloader-ring {
  position: absolute;
  top: 0; left: 0;
  width: 120px; height: 120px;
  border: 2px solid transparent;
  border-top-color: var(--accent-gold);
  border-right-color: var(--accent-gold-light);
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}

@keyframes preloaderTextShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes preloaderTextGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(247, 219, 143, 0.9));
    transform: scale(1.04);
  }
}

.preloader-status {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(110deg, #FFFFFF 0%, #DFBE7B 30%, #FFF8E7 50%, #DFBE7B 70%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  min-height: 2.2rem;
  display: inline-block;
  animation: preloaderTextShimmer 2.2s linear infinite, preloaderTextGlow 2s ease-in-out infinite;
}

.preloader-bar-bg {
  width: 220px;
  height: 4px;
  background: var(--accent-beige);
  border-radius: 4px;
  margin: 1rem auto;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. CUSTOM LUXURY CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor-dot,
.custom-cursor-follower {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent-gold);
  background: rgba(197, 160, 89, 0.05);
}

body.cursor-hover .custom-cursor-follower {
  transform: translate(-50%, -50%) scale(1.6);
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--accent-gold);
}

@media (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-follower {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 0.9; }
}

@keyframes floatTooth {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes goldShine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.float-anim {
  animation: floatElement 4s ease-in-out infinite;
}

.float-anim-delayed {
  animation: floatElement 5s ease-in-out infinite 1.5s;
}

/* --------------------------------------------------------------------------
   4. HOVER REVEAL & GLASS CARDS
   -------------------------------------------------------------------------- */
.hover-gold-glow {
  transition: all var(--transition-normal);
}

.hover-gold-glow:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.22);
  border-color: var(--accent-gold);
}

/* Treatment Card Styling */
.treatment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.treatment-card:hover::before {
  opacity: 1;
}

.treatment-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. LOGO OUTLINE COLOR GLOW ANIMATION
   -------------------------------------------------------------------------- */
@keyframes logoOutlineGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.4)) drop-shadow(0 0 10px rgba(229, 195, 120, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(229, 195, 120, 0.95)) drop-shadow(0 0 28px rgba(197, 160, 89, 0.75));
  }
}

.logo-outline-glow-path,
.tooth-stroke-glow,
.nav-logo-icon,
.nav-logo-img,
.logo-outline-glow,
.crystal-tooth-svg {
  animation: none !important;
  filter: none !important;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF !important;
  border: 1px solid rgba(197, 160, 89, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-logo-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.45);
}

/* --------------------------------------------------------------------------
   6. GLOBAL IMAGE EXPAND & LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-container img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  margin: 0 auto;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px; right: 0;
  color: #FFF;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--accent-gold);
}

@keyframes statusPulseDot {
  0%, 100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
}

/* --------------------------------------------------------------------------
   7. HANORA STUDIO COLOR CHANGING CREDIT ANIMATION
   -------------------------------------------------------------------------- */
@keyframes hanoraColorCycle {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(224, 64, 251, 0.4));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(224, 64, 251, 0.4));
  }
}

.hanora-credit-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
  background: linear-gradient(90deg, #DFBE7B, #FF4081, #7C4DFF, #00E5FF, #FFD700);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hanoraColorCycle 3.5s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.hanora-credit-link:hover {
  transform: scale(1.08) translateY(-1px);
}

/* --------------------------------------------------------------------------
   8. ATTENTION-GRABBING LUXURY CAPSULE BLOCK ANIMATION
   -------------------------------------------------------------------------- */
@keyframes luxuryCapsulePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4), 0 4px 15px rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.5);
  }
  50% {
    box-shadow: 0 0 22px 6px rgba(197, 160, 89, 0.55), 0 6px 25px rgba(197, 160, 89, 0.35);
    border-color: rgba(247, 219, 143, 0.95);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4), 0 4px 15px rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.5);
  }
}

@keyframes goldShimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(110deg, rgba(197, 160, 89, 0.22) 0%, rgba(247, 219, 143, 0.55) 50%, rgba(197, 160, 89, 0.22) 100%) !important;
  background-size: 200% 100% !important;
  border: 1px solid rgba(197, 160, 89, 0.75);
  color: #2B2217 !important;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  animation: luxuryCapsulePulse 2.8s infinite ease-in-out, goldShimmerSweep 3.5s infinite linear;
}

.gold-badge i {
  color: #2B2217 !important;
  filter: drop-shadow(0 0 4px rgba(197, 160, 89, 0.6));
  animation: auraPulse 1.5s infinite ease-in-out;
}

/* Color changing animation for word ROURKELA in hero badge */
.animated-rourkela-text {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: rourkelaColorShift 3s ease-in-out infinite;
}

@keyframes rourkelaColorShift {
  0% {
    color: #2B2217;
    text-shadow: none;
  }
  25% {
    color: #8C6228;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.8);
  }
  50% {
    color: #B8860B;
    text-shadow: 0 0 12px rgba(184, 134, 11, 0.9);
  }
  75% {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  }
  100% {
    color: #2B2217;
    text-shadow: none;
  }
}

