/* ============================================================
   AATS - UX Effects & Animations Layer
   Layered on top of style.css — do not edit style.css for these
   ============================================================ */

/* ── Scroll Progress Bar ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--gold-light));
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(251,190,29,0.6);
}

/* ── Button Shimmer Sweep ───────────────────────────────────── */
.btn-gold,
.btn-outline-gold,
.btn-primary-custom {
  position: relative;
  overflow: hidden;
}
.btn-gold::after,
.btn-primary-custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.btn-gold:hover::after,
.btn-primary-custom:hover::after {
  animation: btn-shimmer 0.6s ease;
}
@keyframes btn-shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}

/* Button Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-grow 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-grow {
  to { transform: scale(4); opacity: 0; }
}

/* ── Hero Animated Gradient Mesh ───────────────────────────── */
.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-gradient-mesh::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,190,29,0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: mesh-drift1 12s ease-in-out infinite alternate;
}
.hero-gradient-mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,63,143,0.4) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: mesh-drift2 15s ease-in-out infinite alternate;
}
@keyframes mesh-drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(1.2); }
}
@keyframes mesh-drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

/* ── Hero Floating Grid Lines ───────────────────────────────── */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251,190,29,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,190,29,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ── Hero Orbs ──────────────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(251,190,29,0.07);
  top: -100px; right: 10%;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(26,63,143,0.25);
  bottom: 5%; left: 5%;
  animation: orb-float 11s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(251,190,29,0.05);
  top: 40%; left: 40%;
  animation: orb-float 6s ease-in-out infinite alternate;
}
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

/* ── Enhanced Particles ─────────────────────────────────────── */
.hero-particles .particle {
  background: none !important;
}
.hero-particles .particle.circle {
  border-radius: 50%;
  border: 1px solid rgba(251,190,29,0.3);
  background: rgba(251,190,29,0.06) !important;
}
.hero-particles .particle.square {
  border-radius: 3px;
  border: 1px solid rgba(251,190,29,0.2);
  transform-origin: center;
}
.hero-particles .particle.dot {
  border-radius: 50%;
  background: rgba(251,190,29,0.5) !important;
}
.hero-particles .particle.ring {
  border-radius: 50%;
  border: 2px solid rgba(251,190,29,0.15);
  background: transparent !important;
}

/* ── Service Card — Enhanced Hover ─────────────────────────── */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* Glow border sweep on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), var(--primary-light), var(--gold));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-rotate 3s linear infinite paused;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes border-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Image overlay reveal on hover */
.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,110,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.service-card:hover .service-card-image::after {
  opacity: 1;
}

/* View More text that appears on image hover */
.service-card-image .hover-cta {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}
.service-card:hover .service-card-image .hover-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Why Cards — Icon Glow Pulse ────────────────────────────── */
.why-card .why-icon {
  position: relative;
}
.why-card .why-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}
.why-card:hover .why-icon::after {
  opacity: 0.5;
}
.why-card:hover .why-icon {
  animation: icon-bounce 0.4s ease;
}
@keyframes icon-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2) rotate(-5deg); }
  70%  { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1.1) rotate(0); }
}

/* ── Section Heading — Underline Animate ───────────────────── */
.section-heading h2::after {
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.section-heading.in-view h2::after {
  width: 80px;
}

/* ── Counter Numbers — Gold Glow ────────────────────────────── */
.hero-stats .stat-number {
  text-shadow: 0 0 20px rgba(251,190,29,0.4);
}

/* ── Offer Card — Pulse Badge ───────────────────────────────── */
.offer-discount-badge {
  position: relative;
}
.offer-discount-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(231,76,60,0.3);
  animation: badge-ring 2s ease-in-out infinite;
}
@keyframes badge-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.3); opacity: 0; }
}

/* ── Testimonial Card — Quote Glow ─────────────────────────── */
.testimonial-card:hover::before {
  color: rgba(251,190,29,0.25);
  transition: color 0.4s ease;
}

/* ── Scroll-Triggered Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ── Glowing CTA Section ────────────────────────────────────── */
.cta-section {
  position: relative;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--gold-light), var(--gold), var(--primary));
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;
}
@keyframes shimmer-line {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Nav Link Hover Pill ────────────────────────────────────── */
#mainNav .nav-link {
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
#mainNav .nav-link:hover {
  background: rgba(251,190,29,0.1);
  border-radius: 8px;
}

/* ── Stats Divider Lines Glow ───────────────────────────────── */
.hero-stats {
  position: relative;
}
.hero-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(251,190,29,0.08), transparent, rgba(251,190,29,0.05));
  pointer-events: none;
}

/* ── Section Wave Dividers ──────────────────────────────────── */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
}
.wave-top    { top: -1px; }
.wave-bottom { bottom: -1px; }
.wave-top svg,
.wave-bottom svg { width: 100%; height: 100%; }

/* ── Tilt Card Effect (applied via JS) ──────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.tilt-card .tilt-inner {
  transform: translateZ(20px);
}

/* ── Glowing Input Focus ────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(13,43,110,0.12), 0 0 12px rgba(251,190,29,0.1) !important;
}

/* ── Floating WhatsApp Pulse Ring ───────────────────────────── */
.float-whatsapp {
  animation: wa-pulse 3s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ── FAQ Accordion — Animated Icon ─────────────────────────── */
.faq-accordion .accordion-button i.bi-question-circle-fill {
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-accordion .accordion-button:not(.collapsed) i.bi-question-circle-fill {
  transform: rotate(180deg) scale(1.2);
  color: var(--gold) !important;
}

/* ── Page Load Text Reveal ──────────────────────────────────── */
@keyframes text-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
.text-reveal {
  animation: text-reveal 0.8s cubic-bezier(0.77,0,0.18,1) both;
}

/* ── Gold Shimmer Text ──────────────────────────────────────── */
.gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 30%, var(--gold) 60%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 3s linear infinite;
}
@keyframes text-shimmer {
  to { background-position: -200% center; }
}

/* ── Service Category Filter — Active Glow ──────────────────── */
.category-filter .filter-btn.active {
  box-shadow: 0 4px 16px rgba(13,43,110,0.25);
  transform: translateY(-1px);
}

/* ── Image Zoom Wrapper ─────────────────────────────────────── */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.img-zoom-wrap img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.img-zoom-wrap:hover img {
  transform: scale(1.06);
}

/* ── Magnetic Zone (applied via JS) ────────────────────────── */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Page Transition Overlay ────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 999998;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
#page-transition.enter {
  animation: page-enter 0.4s cubic-bezier(0.7,0,0.3,1) forwards;
}
#page-transition.leave {
  transform-origin: top;
  animation: page-leave 0.4s cubic-bezier(0.7,0,0.3,1) forwards;
}
@keyframes page-enter {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes page-leave {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0); }
}

/* ── Contact Info Card Hover Lines ──────────────────────────── */
.contact-info-item .ci-icon {
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-item:hover .ci-icon {
  background: rgba(251,190,29,0.3);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 16px rgba(251,190,29,0.3);
}

/* ── Why Section — Animated Border Top ──────────────────────── */
.why-card {
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}
.why-card:hover::after {
  width: 100%;
}

/* ── Loader Pulse Dots ──────────────────────────────────────── */
.loader-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.loader-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-bounce 1.4s ease-in-out infinite both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40%           { transform: scale(1); }
}

/* ── Stat Cards Hover (Services page / why section) ─────────── */
.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
  transition: transform 0.3s ease;
}

/* ── Footer Link Hover Arrow ────────────────────────────────── */
.footer-links a {
  transition: padding-left 0.25s ease, color 0.25s ease;
}

/* ── Mobile Touch Feedback ──────────────────────────────────── */
@media (hover: none) {
  .service-card:active { transform: scale(0.98); }
  .btn-gold:active      { transform: scale(0.96); }
}
