/* ===== KAURA DETAILING - GLOBAL ANIMATIONS ===== */

/* Floating particles canvas — subtle white/silver dots, no teal */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* Ambient orbs — warm gold glow instead of teal */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 70%);
  top: -80px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  bottom: 10%; right: -60px;
  animation-delay: -5s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(180,150,60,0.06) 0%, transparent 70%);
  top: 50%; left: 40%;
  animation-delay: -9s;
}

@media (min-width: 768px) {
  .orb-1 { width: 500px; height: 500px; top: -100px; left: -100px; }
  .orb-2 { width: 400px; height: 400px; right: -80px; }
  .orb-3 { width: 300px; height: 300px; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.04); }
  66%       { transform: translate(-15px, 20px) scale(0.96); }
}

/* Shimmer line — very subtle warm white */
.shimmer-line {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmerSweep 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmerSweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}

/* Hero text entrance */
.hero-title {
  animation: heroTitleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-subtitle {
  animation: heroTitleIn 1.2s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-cta {
  animation: heroTitleIn 1.2s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .reveal.left  { transform: translateX(-40px); }
  .reveal.right { transform: translateX(40px); }
  .reveal.scale { transform: scale(0.88); }
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }
.stagger.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.6s; }
.stagger.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.7s; }

/* Card hover lift */
.card-hover {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
@media (hover: hover) {
  .card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  }
}

/* Gold glow border on hover */
.glow-border {
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) {
  .glow-border:hover {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.12);
  }
}

/* Floating badge */
.float-badge {
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Section heading underline — gold gradient */
.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #e8c96a);
  border-radius: 2px;
  margin: 14px auto 0;
  animation: lineGrow 0.8s 0.3s ease both;
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

/* Background grid — very faint, no color tint */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Section divider — neutral silver */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 0;
}

/* Pulse ring on CTA — gold */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(201, 168, 76, 0.45);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* Scroll progress bar — gold */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #e8c96a);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.5);
}

/* Fix background images on iOS */
.hero-bg,
.services-bg,
.about-bg,
.pricing-bg,
.hero-parallax,
.about-hero-bg,
.services-hero-bg,
.pricing-hero-bg,
.contact-hero-bg {
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Prevent horizontal overflow */
body { overflow-x: hidden; }

/* Justified paragraph text */
p {
  text-align: justify;
  hyphens: auto;
}

/* ===== NAVBAR — always visible ===== */
header {
  transition: box-shadow 0.35s ease;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.85);
  right: auto;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c9a84c;
  color: #111;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top:hover {
  background: #b8943e;
  transform: translateX(-50%) translateY(-2px) scale(1.08);
}

/* ===== BRAND COLOR OVERRIDES — Gold replaces Teal ===== */
/* Tailwind teal utility overrides for brand consistency */

/* Text colors */
.text-teal-400, .text-teal-300 { color: #c9a84c !important; }
.text-teal-500 { color: #b8943e !important; }

/* Background colors */
.bg-teal-600  { background-color: #b8943e !important; }
.bg-teal-500  { background-color: #c9a84c !important; }
.hover\:bg-teal-500:hover { background-color: #c9a84c !important; }
.hover\:bg-teal-600:hover { background-color: #b8943e !important; }

/* Border colors */
.border-teal-500 { border-color: #c9a84c !important; }
.border-teal-400 { border-color: #c9a84c !important; }

/* Teal bg with opacity (badge backgrounds) */
.bg-teal-600\/20 { background-color: rgba(184,148,62,0.15) !important; }
.bg-teal-600\/10 { background-color: rgba(184,148,62,0.08) !important; }

/* Border with opacity */
.border-teal-500\/40 { border-color: rgba(201,168,76,0.4) !important; }
.border-teal-500\/30 { border-color: rgba(201,168,76,0.3) !important; }

/* Gradient overrides */
.from-teal-600 { --tw-gradient-from: #b8943e !important; }
.to-teal-500   { --tw-gradient-to: #c9a84c !important; }
.hover\:from-teal-500:hover { --tw-gradient-from: #c9a84c !important; }
.hover\:to-teal-400:hover   { --tw-gradient-to: #d4b45a !important; }

/* Shadow overrides */
.shadow-teal-900\/30 { --tw-shadow-color: rgba(100,80,20,0.3) !important; }

/* service-card hover glow */
.service-card:hover {
  box-shadow: 0 35px 80px -20px rgba(201,168,76,0.2) !important;
}
