/* ============================================================
   AGENCY ANIMATIONS LAYER — overlay on existing styles
   ============================================================ */

/* --- Page loader overlay (disabled) --- */
#anim-loader { display: none !important; }
.curtain-left, .curtain-right { display: none !important; }

/* --- Scroll reveal base --- */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* stagger children */
.stagger-children > * { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger-children.in-view > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.stagger-children.in-view > *:nth-child(2) { opacity:1; transform:none; transition-delay: .12s; }
.stagger-children.in-view > *:nth-child(3) { opacity:1; transform:none; transition-delay: .24s; }
.stagger-children.in-view > *:nth-child(4) { opacity:1; transform:none; transition-delay: .36s; }
.stagger-children.in-view > *:nth-child(5) { opacity:1; transform:none; transition-delay: .48s; }
.stagger-children.in-view > *:nth-child(6) { opacity:1; transform:none; transition-delay: .60s; }

/* --- Magnetic hover effect for buttons --- */
.mag-btn { display: inline-block; transition: transform 0.3s cubic-bezier(.4,0,.2,1); }
.mag-btn:hover { transform: scale(1.04); }

/* --- Floating ambient orbs --- */
#anim-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbDrift linear infinite;
}
.orb-1 { width: 500px; height: 500px; background: #b94332; top: -100px; left: -150px; animation-duration: 22s; }
.orb-2 { width: 400px; height: 400px; background: #e85d47; top: 40%; right: -120px; animation-duration: 28s; animation-delay: -8s; }
.orb-3 { width: 300px; height: 300px; background: #d4796a; bottom: 10%; left: 20%; animation-duration: 18s; animation-delay: -4s; }
@keyframes orbDrift {
  0%   { transform: translate(0,0) rotate(0deg); }
  33%  { transform: translate(30px, -40px) rotate(120deg); }
  66%  { transform: translate(-20px, 30px) rotate(240deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}

/* --- Hero typewriter cursor --- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #b94332;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* --- Marquee ticker --- */
.anim-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  background: linear-gradient(90deg, #b94332 0%, #e85d47 50%, #b94332 100%);
  position: relative;
  z-index: 2;
}
.anim-ticker {
  display: inline-flex;
  gap: 60px;
  animation: ticker 55s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.anim-ticker span { opacity: 0.8; }
.anim-ticker span:before { content: '✦'; margin-right: 18px; opacity: 0.5; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section number counter animation --- */
.count-up { display: inline-block; }

/* --- Card hover lift --- */
.hover-lift {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(185, 67, 50, 0.25);
}

/* --- Gradient text shimmer --- */
.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #b94332 30%, #e85d47 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Horizontal scroll section --- */
.anim-hscroll-section {
  overflow: hidden;
  position: relative;
}

/* --- Rotating ring decoration --- */
.spin-ring {
  position: absolute;
  border: 2px solid rgba(185,67,50,0.3);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.spin-ring-2 {
  border-color: rgba(232,93,71,0.2);
  animation-duration: 18s;
  animation-direction: reverse;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Particle dots canvas --- */
#anim-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* --- Slide-in sections (full-screen slider feel) --- */
.section-panel {
  opacity: 0;
  transform: translateY(80px) scale(0.97);
  transition: opacity 1s cubic-bezier(.4,0,.2,1),
              transform 1s cubic-bezier(.4,0,.2,1);
}
.section-panel.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Horizontal rule animated --- */
.anim-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b94332, #e85d47);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  margin: 16px auto;
}
.anim-line.in-view { width: 80px; }

/* --- Progress indicator (side dots) --- */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100000;
  background: linear-gradient(90deg, #b94332, #e85d47, #b94332);
  transition: width 0.1s linear;
}

/* --- Noise overlay --- */
#anim-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- Custom cursor glow --- */
#anim-cursor-glow {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,67,50,0.15) 0%, transparent 70%);
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* ── OFFCANVAS: match site background color ─────────────── */
.tp-offcanvas-wrapper {
  background: #f5ece7 !important;
}
.tp-offcanvas-wrapper .tp-offcanvas-close-btn,
.tp-offcanvas-wrapper .tp-offcanvas-title,
.tp-offcanvas-wrapper .tp-offcanvas-menu ul li > a,
.tp-offcanvas-wrapper .tp-offcanvas-contact ul li a,
.tp-offcanvas-wrapper .tp-offcanvas-social ul li a,
.tp-offcanvas-wrapper p {
  color: #21212D !important;
}
.tp-offcanvas-wrapper .tp-offcanvas-social ul li a {
  border-color: rgba(33,33,45,0.2) !important;
}

/* ── BENEFITS GRID: invert on scroll-in ─────────────────── */
.app-benefits-area {
  transition: background-color 0.7s ease;
}
.app-benefits-area.benefits-inverted {
  background-color: #b94332 !important;
}
.app-benefits-area.benefits-inverted .tp-gsap-bg {
  background-color: #b94332 !important;
}
.app-benefits-area.benefits-inverted .app-benefits-item,
.app-benefits-area.benefits-inverted .app-benefits-item-3 {
  background-color: #f5ece7 !important;
  border-color: rgba(245,236,231,0.3) !important;
}
.app-benefits-area.benefits-inverted .app-benefits-item-title,
.app-benefits-area.benefits-inverted .app-benefits-item-2-title,
.app-benefits-area.benefits-inverted .app-benefits-item-3-content span,
.app-benefits-area.benefits-inverted .app-benefits-item-3-content h4,
.app-benefits-area.benefits-inverted .app-benefits-item-3-content p,
.app-benefits-area.benefits-inverted .app-benefits-item-2-content p {
  color: #21212D !important;
}
.app-benefits-area.benefits-inverted .app-benefits-item img,
.app-benefits-area.benefits-inverted .app-benefits-item-3 img {
  filter: sepia(30%) saturate(0.6) brightness(0.9);
}

/* ── INQUIRY FORM styles ─────────────────────────────────── */
.tianlu-inquiry-form {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(185,67,50,0.15);
  border-radius: 24px;
  padding: 50px 50px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(185,67,50,0.08);
}
@media (max-width: 767px) {
  .tianlu-inquiry-form { padding: 30px 24px; }
}
.tianlu-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tianlu-form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #21212D;
  text-transform: uppercase;
}
.tianlu-form-group label span { color: #b94332; }
.tianlu-form-group input,
.tianlu-form-group select,
.tianlu-form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid rgba(185,67,50,0.2);
  border-radius: 12px;
  font-size: 15px;
  color: #21212D;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.tianlu-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23b94332' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.tianlu-form-group input:focus,
.tianlu-form-group select:focus,
.tianlu-form-group textarea:focus {
  border-color: #b94332;
  box-shadow: 0 0 0 3px rgba(185,67,50,0.1);
}
.tianlu-form-group input::placeholder,
.tianlu-form-group textarea::placeholder {
  color: rgba(33,33,45,0.35);
}
.tianlu-form-group textarea { resize: vertical; min-height: 110px; }
.tianlu-form-note {
  font-size: 13px;
  color: rgba(33,33,45,0.5);
  margin-top: 12px;
}
.tianlu-form-success {
  padding: 60px 20px;
}
.tianlu-form-success h4 {
  font-size: 24px;
  color: #21212D;
  font-weight: 600;
}
.tianlu-form-success p {
  color: rgba(33,33,45,0.6);
  margin-top: 8px;
}
