/* ==========================================================================
   THE INCARNATION FIRMS — 3D ANIMATION LAYER  (incarnation-3d.css)
   Loaded AFTER incarnation-theme.css and after each page's inline <style>.
   Works together with incarnation-3d.js (mouse-tracked tilt + glare) and the
   GSAP reveals already in incarnation-app.js. Without the JS, hover tilt
   still works using the default angles below.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --c-blue: 226, 163, 62;
  --c-cyan: 184, 116, 20;
  --c-navy: 59, 34, 8;
}

/* --------------------------------------------------------------------------
   0. SHARED: every card-like element gets a 3D stage
   -------------------------------------------------------------------------- */
.category-card-img, .blog-card, .team-card,
.testimonial-card, .principle-card, .pillar-box, .award-card,
.svc-detail-card, .benefit-card, .process-card, .job-card,
.service-features-card, .application-card, .info-card, .service-card, .stat-card {
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.categories-grid, .testimonials-grid,
.blogs-grid, .team-grid, .principles-grid, .pillars-six-grid, .awards-grid,
.benefits-grid, .jobs-grid, .service-grid, .info-grid, .stats-grid {
  perspective: 1100px;
}

/* Tilt on hover. --rx / --ry are set live by incarnation-3d.js from the
   pointer position; these fallbacks apply when JS is off. */
.category-card-img:hover,
.blog-card:hover, .team-card:hover, .testimonial-card:hover,
.principle-card:hover, .pillar-box:hover, .award-card:hover,
.svc-detail-card:hover, .benefit-card:hover, .process-card:hover,
.job-card:hover, .service-features-card:hover, .info-card:hover,
.service-card:hover, .stat-card:hover {
  transform: perspective(1000px)
             translateY(-10px) translateZ(26px)
             rotateX(var(--rx, 4deg)) rotateY(var(--ry, -6deg)) !important;
  box-shadow:
    calc(var(--ry, -6deg) * -3) calc(var(--rx, 4deg) * 6 + 24px) 50px rgba(var(--c-navy), 0.24),
    0 0 0 1px rgba(var(--c-blue), 0.28) !important;
  transition: transform 0.12s linear, box-shadow 0.3s ease !important;
}

/* Smooth return when the pointer leaves */
.category-card-img, .blog-card, .team-card,
.testimonial-card, .principle-card, .pillar-box, .award-card,
.svc-detail-card, .benefit-card, .process-card, .job-card {
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s ease !important;
}

/* Glare that follows the pointer (uses ::after, which these cards leave free) */
.category-card-img::after,
.blog-card::after, .team-card::after, .testimonial-card::after,
.principle-card::after, .pillar-box::after, .svc-detail-card::after,
.benefit-card::after, .process-card::after, .job-card::after,
.service-features-card::after, .application-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.38),
    rgba(var(--c-cyan), 0.10) 40%,
    transparent 65%
  );
  transition: opacity 0.35s ease;
}
.category-card-img:hover::after,
.blog-card:hover::after, .team-card:hover::after, .testimonial-card:hover::after,
.principle-card:hover::after, .pillar-box:hover::after, .svc-detail-card:hover::after,
.benefit-card:hover::after, .process-card:hover::after, .job-card:hover::after,
.service-features-card:hover::after, .application-card:hover::after {
  opacity: 1;
}

/* Inner elements lift off the card surface where overflow allows it */
.benefit-card:hover .benefit-number,
.process-card:hover .process-number,
.job-card:hover .job-icon,
.testimonial-card:hover .test-avatar {
  transform: translateZ(50px) scale(1.12);
}
.benefit-number, .process-number, .job-icon, .test-avatar {
  transition: transform 0.5s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   1. HOME HERO — MULTI-LAYERED 3D DEPTH & ANIMATIONS
   -------------------------------------------------------------------------- */
.hero-section {
  perspective: 1200px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

/* 3D Glass Prism Cube (Top-Right Floating Artifact) */
.hero-section::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 7%;
  width: 150px;
  height: 150px;
  pointer-events: none;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(var(--c-cyan), 0.45) 0%, rgba(var(--c-blue), 0.15) 100%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  border: 2px solid rgba(var(--c-blue), 0.7);
  box-shadow:
    0 0 50px rgba(var(--c-blue), 0.45),
    inset 0 0 35px rgba(var(--c-cyan), 0.35),
    0 24px 45px rgba(var(--c-navy), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  animation: heroPrism3D 16s ease-in-out infinite;
  transform: translate3d(var(--hero-tx, 0px), var(--hero-ty, 0px), 60px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Celestial Orbit Ring (Bottom-Left Floating Gyroscope) */
.hero-section::after {
  content: '';
  position: absolute;
  z-index: 3;
  bottom: 10%;
  left: 6%;
  width: 190px;
  height: 190px;
  pointer-events: none;
  border-radius: 50%;
  border: 3px solid rgba(var(--c-cyan), 0.65);
  border-top: 3px solid rgba(var(--c-blue), 0.95);
  border-bottom: 3px dashed rgba(255, 243, 220, 0.55);
  box-shadow:
    0 0 50px rgba(var(--c-blue), 0.5),
    inset 0 0 45px rgba(var(--c-blue), 0.3),
    0 16px 36px rgba(var(--c-navy), 0.4);
  transform-style: preserve-3d;
  animation: heroGyroRing3D 14s linear infinite;
  transform: translate3d(calc(var(--hero-tx, 0px) * -1.2), calc(var(--hero-ty, 0px) * -1.2), 40px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient 3D Depth Aura Glows behind Hero Text */
.hero-content-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  z-index: 4;
}

.hero-content-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 15%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-blue), 0.28) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  transform: translateZ(-80px);
  animation: heroAuraPulse1 12s ease-in-out infinite alternate;
}

.hero-content-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 15%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-cyan), 0.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  transform: translateZ(-60px);
  animation: heroAuraPulse2 14s ease-in-out infinite alternate;
}

/* Hero Text Stage with 3D Depth Layering */
.hero-text {
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1000px)
             rotateX(var(--hero-rx, 0deg))
             rotateY(var(--hero-ry, 0deg))
             translateZ(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating 3D Brand Mark Badge */
.hero-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: rgba(226, 163, 62, 0.2) !important;
  color: #FFFDF8 !important;
  border: 1.5px solid rgba(226, 163, 62, 0.75) !important;
  border-radius: 999px !important;
  padding: 8px 24px !important;
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-bottom: 22px !important;
  transform-style: preserve-3d;
  transform: translateZ(50px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 30px rgba(226, 163, 62, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
  animation: heroBadgeFloat3D 6s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-brand-mark * {
  color: #FFFDF8 !important;
}

.hero-brand-mark i {
  color: #E2A33E !important;
}

/* 3D Elevated Hero Headline */
.hero-title {
  transform-style: preserve-3d;
  transform: translateZ(60px);
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 14px 35px rgba(var(--c-blue), 0.25),
    0 24px 50px rgba(var(--c-navy), 0.4);
  animation: heroTitleFloat3D 8s ease-in-out infinite alternate;
  will-change: transform;
}

/* 3D Elevated Subtitle */
.hero-subtitle {
  transform-style: preserve-3d;
  transform: translateZ(40px);
  animation: heroSubFloat3D 7s ease-in-out infinite alternate;
  animation-delay: 0.4s;
  will-change: transform;
}

/* 3D Elevated CTA Buttons Container */
.hero-cta {
  transform-style: preserve-3d;
  transform: translateZ(65px);
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta a:first-child {
  transform-style: preserve-3d;
  transform: translateZ(30px);
  box-shadow:
    0 12px 28px rgba(var(--c-blue), 0.45),
    0 0 25px rgba(var(--c-blue), 0.3) !important;
  animation: heroBtnFloatPrimary 5s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-cta a:first-child:hover {
  transform: perspective(600px) translateY(-6px) translateZ(45px) rotateX(10deg) !important;
  box-shadow:
    0 18px 36px rgba(var(--c-blue), 0.6),
    0 0 35px rgba(var(--c-blue), 0.45) !important;
}

.hero-cta a:last-child {
  transform-style: preserve-3d;
  transform: translateZ(20px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: heroBtnFloatSecondary 6s ease-in-out infinite alternate;
  animation-delay: 0.6s;
  will-change: transform;
}

.hero-cta a:last-child:hover {
  transform: perspective(600px) translateY(-5px) translateZ(35px) rotateX(8deg) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Camera drift on the background photo */
.hero-slide {
  animation: heroDrift 22s ease-in-out infinite alternate !important;
  transform-origin: center center;
}

/* ==========================================================================
   3D HERO KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes heroPrism3D {
  0% {
    transform: translateY(0) translateZ(50px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  33% {
    transform: translateY(-24px) translateZ(85px) rotateX(120deg) rotateY(140deg) rotateZ(45deg);
  }
  66% {
    transform: translateY(16px) translateZ(35px) rotateX(240deg) rotateY(260deg) rotateZ(90deg);
  }
  100% {
    transform: translateY(0) translateZ(50px) rotateX(360deg) rotateY(360deg) rotateZ(180deg);
  }
}

@keyframes heroGyroRing3D {
  0% {
    transform: translateY(0) rotateX(72deg) rotateY(18deg) rotateZ(0deg);
  }
  50% {
    transform: translateY(28px) rotateX(75deg) rotateY(-22deg) rotateZ(180deg);
  }
  100% {
    transform: translateY(0) rotateX(72deg) rotateY(18deg) rotateZ(360deg);
  }
}

@keyframes heroDrift {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0) rotateY(0deg);
  }
  50% {
    transform: scale(1.12) translate3d(-1%, -1.2%, 0) rotateY(1.4deg);
  }
  100% {
    transform: scale(1.16) translate3d(1%, -0.5%, 0) rotateY(-1.2deg);
  }
}

@keyframes heroBadgeFloat3D {
  0% {
    transform: translateZ(50px) translateY(0) rotateX(0deg);
  }
  100% {
    transform: translateZ(65px) translateY(-8px) rotateX(6deg);
  }
}

@keyframes heroTitleFloat3D {
  0% {
    transform: translateZ(60px) translateY(0);
  }
  100% {
    transform: translateZ(75px) translateY(-6px);
  }
}

@keyframes heroSubFloat3D {
  0% {
    transform: translateZ(40px) translateY(0);
  }
  100% {
    transform: translateZ(50px) translateY(-5px);
  }
}

@keyframes heroBtnFloatPrimary {
  0% {
    transform: translateZ(30px) translateY(0);
  }
  100% {
    transform: translateZ(45px) translateY(-7px);
  }
}

@keyframes heroBtnFloatSecondary {
  0% {
    transform: translateZ(20px) translateY(0);
  }
  100% {
    transform: translateZ(35px) translateY(-5px);
  }
}

@keyframes heroAuraPulse1 {
  0% {
    transform: translateZ(-80px) scale(0.9) translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: translateZ(-80px) scale(1.2) translate(-25px, -20px);
    opacity: 0.9;
  }
}

@keyframes heroAuraPulse2 {
  0% {
    transform: translateZ(-60px) scale(1) translate(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: translateZ(-60px) scale(1.3) translate(25px, 20px);
    opacity: 0.85;
  }
}

/* --------------------------------------------------------------------------
   2. SERVICE PAGES (.da-*)  /  SERVICES  /  CAREERS
   -------------------------------------------------------------------------- */
.da-hero { perspective: 1200px; }
.da-hero .da-hero-h1,
.da-hero .da-hero-sub,
.da-hero .da-btn { transform-style: preserve-3d; }
.da-hero .da-btn { animation: float3d 6s ease-in-out infinite; }

.da-cta { perspective: 1200px; }
.da-cta .da-btn { animation: float3d 5s ease-in-out infinite; }

.da-eyebrow { display: inline-block; animation: float3d 7s ease-in-out infinite; }

/* Benefit / process grids read as a tilted shelf of cards */
.benefits-grid > :nth-child(3n+1),
.process-grid > :nth-child(3n+1) { transform-origin: right center; }
.benefits-grid > :nth-child(3n),
.process-grid > :nth-child(3n)   { transform-origin: left center; }

/* FAQ accordions fold open */
.faq-item { perspective: 900px; }
.faq-item[open] .faq-body {
  transform-origin: top center;
  animation: foldOpen 0.55s var(--ease-out) both;
}
@keyframes foldOpen {
  from { opacity: 0; transform: rotateX(-40deg); }
  to   { opacity: 1; transform: rotateX(0deg); }
}

/* Services overview: rows and their feature cards */
.service-row { perspective: 1200px; }
.service-features-card {
  transform: rotateY(-6deg) rotateX(2deg);
  box-shadow: 24px 30px 50px rgba(var(--c-navy), 0.18);
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s ease;
}
.service-row:hover .service-features-card {
  transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
}
.step-num { display: inline-block; animation: spinY 9s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }

/* Careers: culture photo and floating badge */
.culture-split-layout { perspective: 1300px; }
.culture-image-wrapper {
  transform-style: preserve-3d;
  transform: rotateY(8deg);
  transition: transform 0.8s var(--ease-out);
}
.culture-split-layout:hover .culture-image-wrapper { transform: rotateY(0deg); }
.floating-badge { animation: badgeFloat 5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: perspective(500px) translateY(0)    rotateY(-10deg) rotateX(4deg); }
  50%      { transform: perspective(500px) translateY(-10px) rotateY(10deg)  rotateX(-4deg); }
}

/* --------------------------------------------------------------------------
   3. ICONS: coin flip on hover, idle bob
   -------------------------------------------------------------------------- */
.category-icon-box, .principle-icon, .pillar-icon, .landmark-icon,
.feat-icon, .c-icon, .icon-box, .job-icon {
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-spring), background 0.3s ease;
}
.category-card:hover .category-icon-box,
.principle-card:hover .principle-icon,
.pillar-box:hover .pillar-icon,
.landmark-item:hover .landmark-icon,
.why-feature-item:hover .feat-icon,
.contact-detail-item:hover .c-icon,
.job-card:hover .job-icon {
  transform: rotateY(360deg) scale(1.12);
}
.why-feature-item .feat-icon { animation: iconBob 4.5s ease-in-out infinite; }
.why-feature-item:nth-child(2) .feat-icon { animation-delay: 0.6s; }
.why-feature-item:nth-child(3) .feat-icon { animation-delay: 1.2s; }
.why-feature-item:nth-child(4) .feat-icon { animation-delay: 1.8s; }
@keyframes iconBob {
  0%, 100% { transform: translateY(0)    rotateX(0deg); }
  50%      { transform: translateY(-6px) rotateX(12deg); }
}

/* --------------------------------------------------------------------------
   4. BUTTONS: tactile 3D press
   -------------------------------------------------------------------------- */
.btn-gold-nav, .btn-search-submit, .btn-gold-solid, .btn-wa-solid,
.btn-card-details,
.btn-outline-gold, .btn-light-outline, .btn-gold-outline, .da-btn, .btn, .button {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.3s ease !important;
}
.btn-gold-nav:hover, .btn-search-submit:hover, .btn-gold-solid:hover,
.btn-wa-solid:hover, .btn-card-details:hover, .btn-outline-gold:hover, .btn-light-outline:hover,
.btn-gold-outline:hover, .da-btn:hover, .btn:hover, .button:hover {
  transform: perspective(500px) translateY(-4px) translateZ(14px) rotateX(10deg) !important;
  box-shadow: 0 14px 26px rgba(var(--c-blue), 0.45), 0 4px 0 rgba(var(--c-cyan), 0.9) !important;
}
.btn-gold-nav:active, .btn-search-submit:active, .btn-gold-solid:active,
.btn-wa-solid:active, .da-btn:active, .btn:active, .button:active {
  transform: perspective(500px) translateY(2px) rotateX(-4deg) scale(0.97) !important;
  box-shadow: 0 2px 6px rgba(var(--c-blue), 0.4) !important;
}
.btn-gold-nav { animation: ctaPulse 3.2s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(var(--c-blue), 0.4), 0 0 0 0 rgba(var(--c-blue), 0.45); }
  60%      { box-shadow: 0 4px 15px rgba(var(--c-blue), 0.4), 0 0 0 14px rgba(var(--c-blue), 0); }
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.dropdown-menu {
  transform-origin: top center;
  animation: dropHinge 0.55s var(--ease-out) both !important;
}
@keyframes dropHinge {
  from { opacity: 0; transform: perspective(700px) rotateX(-60deg) translateY(-8px); }
  to   { opacity: 1; transform: perspective(700px) rotateX(0deg)   translateY(0); }
}

/* Logo is an <img>; give it a gentle 3D sway and a spin on hover */
.main-header .brand-logo img {
  transform-style: preserve-3d;
  animation: logoSway 9s ease-in-out infinite;
  transition: filter 0.3s ease;
}
.main-header .brand-logo:hover img {
  animation: logoSpin 1.1s var(--ease-out) 1;
  filter: drop-shadow(0 8px 14px rgba(var(--c-blue), 0.35));
}
@keyframes logoSway {
  0%, 100% { transform: perspective(500px) rotateY(-10deg); }
  50%      { transform: perspective(500px) rotateY(10deg); }
}
@keyframes logoSpin { to { transform: perspective(500px) rotateY(360deg); } }

.mobile-drawer { transform-origin: right center; }
.mobile-drawer.active { animation: drawerSwing 0.6s var(--ease-out) both; }
@keyframes drawerSwing {
  from { transform: perspective(1200px) rotateY(35deg); opacity: 0.4; }
  to   { transform: perspective(1200px) rotateY(0deg);  opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. DARK SECTIONS, STATS, BANNERS
   -------------------------------------------------------------------------- */
.why-us-wrapper { perspective: 1400px; }
.why-us-stats-card {
  transform-style: preserve-3d;
  box-shadow: 30px 40px 70px rgba(0, 0, 0, 0.35);
  animation: statsFloat 9s ease-in-out infinite;
}
.why-us-stats-card:hover { animation-play-state: paused; }
@keyframes statsFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(3deg)  translateY(0); }
  50%      { transform: rotateY(-4deg) rotateX(-2deg) translateY(-12px); }
}
.stat-box { transform: translateZ(30px); }
.stat-number { text-shadow: 0 6px 18px rgba(var(--c-blue), 0.55); }

.banner-crown { animation: spinY 8s linear infinite; transform-style: preserve-3d; }

.social-banner-btn { animation: iconBob 5s ease-in-out infinite; }
.social-banner-btn:nth-child(2n) { animation-delay: 0.7s; }
.social-banner-btn:nth-child(3n) { animation-delay: 1.4s; }

/* --------------------------------------------------------------------------
   7. ABOUT PAGE
   -------------------------------------------------------------------------- */
.founder-card-wrap { perspective: 1200px; }
.founder-photo-box {
  transform-style: preserve-3d;
  transform: rotateY(8deg);
  transition: transform 0.8s var(--ease-out);
  box-shadow: -24px 30px 50px rgba(var(--c-navy), 0.28);
}
.founder-card-wrap:hover .founder-photo-box { transform: rotateY(0deg) translateZ(20px); }
.founder-badge { transform: translateZ(40px); }
.story-image-wrap { perspective: 1200px; }
.story-img { transform: rotateY(-8deg) rotateX(2deg); transition: transform 0.8s var(--ease-out); }
.story-image-wrap:hover .story-img { transform: none; }
.experience-badge { animation: badgeFloat 5s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   8. FLOATING BUTTONS + TOASTS
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn { animation: waFloat 4s ease-in-out infinite; }
.floating-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waFloat {
  0%, 100% { transform: perspective(500px) translateY(0)    rotateX(0deg); }
  50%      { transform: perspective(500px) translateY(-9px) rotateX(10deg); }
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.back-to-top-btn:hover { transform: perspective(300px) translateZ(16px) rotateX(-18deg); }

.incarnation-toast { transform-origin: right center; animation: toastIn 0.6s var(--ease-spring) both; }
@keyframes toastIn {
  from { opacity: 0; transform: perspective(700px) translateX(100%) rotateY(-50deg); }
  to   { opacity: 1; transform: perspective(700px) translateX(0)    rotateY(0deg); }
}

/* --------------------------------------------------------------------------
   9. SCROLL REVEAL (CSS) for elements GSAP does NOT already animate
   Chrome / Edge / Safari 18+. Elsewhere content simply shows normally.
   -------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .blog-card, .team-card,
  .benefit-card, .process-card, .svc-detail-card, .job-card,
  .service-row, .detail-card, .contact-info-card, .contact-form-card {
    animation: scrollReveal3d linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .benefits-grid > :nth-child(3n+2),
  .jobs-grid > :nth-child(3n+2), .blogs-grid > :nth-child(3n+2) {
    animation-range: entry 8% entry 63%;
  }
  .benefits-grid > :nth-child(3n+3),
  .jobs-grid > :nth-child(3n+3), .blogs-grid > :nth-child(3n+3) {
    animation-range: entry 16% entry 71%;
  }
}
@keyframes scrollReveal3d {
  from { opacity: 0; transform: perspective(1000px) translateY(70px) translateZ(-120px) rotateX(22deg); }
  to   { opacity: 1; transform: perspective(1000px) translateY(0)    translateZ(0)      rotateX(0deg); }
}

/* --------------------------------------------------------------------------
   10. UTILITIES you can drop into any template
   -------------------------------------------------------------------------- */
.scene-3d { perspective: 1200px; transform-style: preserve-3d; }
.float-3d { animation: float3d 6s ease-in-out infinite; transform-style: preserve-3d; }
.spin-3d  { animation: spinY 12s linear infinite; transform-style: preserve-3d; }
@keyframes float3d {
  0%, 100% { transform: translateY(0)     rotateX(0deg) rotateY(0deg); }
  50%      { transform: translateY(-12px) rotateX(5deg) rotateY(-5deg); }
}

.flip-card { perspective: 1000px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s var(--ease-out); }
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }

.cube-scene { --size: 120px; width: var(--size); height: var(--size); perspective: 700px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cubeSpin 14s linear infinite; }
.cube .face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: rgba(var(--c-blue), 0.75); border: 1px solid rgba(255,255,255,0.5); }
.cube .front  { transform: translateZ(calc(var(--size) / 2)); }
.cube .back   { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.cube .right  { transform: rotateY(90deg)  translateZ(calc(var(--size) / 2)); }
.cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.cube .top    { transform: rotateX(90deg)  translateZ(calc(var(--size) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
@keyframes cubeSpin { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }

/* --------------------------------------------------------------------------
   11. TOUCH / SMALL SCREENS
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .category-card-img:hover,
  .blog-card:hover, .team-card:hover, .testimonial-card:hover,
  .principle-card:hover, .pillar-box:hover, .award-card:hover,
  .svc-detail-card:hover, .benefit-card:hover, .process-card:hover,
  .job-card:hover, .service-features-card:hover { transform: none !important; }
}
@media (max-width: 992px) {
  .hero-section::before { width: 80px; height: 80px; right: 4%; top: 8%; }
  .hero-section::after  { width: 100px; height: 100px; left: 2%; bottom: 6%; }
  .why-us-stats-card, .founder-photo-box, .story-img,
  .service-features-card, .culture-image-wrapper { transform: none; animation: none; }
}

/* --------------------------------------------------------------------------
   12. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .category-card-img:hover,
  .blog-card:hover, .team-card:hover, .testimonial-card:hover,
  .svc-detail-card:hover, .benefit-card:hover, .process-card:hover,
  .job-card:hover { transform: none !important; }
}

/* ==========================================================================
   13. 3D STYLISH "HOW WE WORK" PROCESS PIPELINE
   ========================================================================== */
.section-process-strip {
  position: relative;
  perspective: 1400px;
  overflow: hidden;
  padding: 85px 0;
  background: radial-gradient(circle at 15% 20%, rgba(226, 163, 62, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(184, 116, 20, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, var(--surface, #FFFDF8) 0%, var(--bg, #FFF8EA) 100%) !important;
}

.process-strip-stage {
  position: relative;
  transform-style: preserve-3d;
  margin-top: 50px;
}

/* Connecting 3D pipeline flow line across cards on desktop */
.process-flow-line {
  display: none;
}
@media (min-width: 992px) {
  .process-flow-line {
    display: block;
    position: absolute;
    top: 56px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg,
      rgba(226, 163, 62, 0.1) 0%,
      rgba(226, 163, 62, 0.6) 20%,
      rgba(184, 116, 20, 0.6) 80%,
      rgba(226, 163, 62, 0.1) 100%
    );
    border-radius: 999px;
    z-index: 1;
    transform: translateZ(10px);
    box-shadow: 0 0 15px rgba(226, 163, 62, 0.4);
  }
  .process-flow-line::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 30px;
    height: 9px;
    background: #E2A33E;
    border-radius: 999px;
    box-shadow: 0 0 16px #E2A33E, 0 0 30px #E2A33E;
    animation: processEnergyPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

@keyframes processEnergyPulse {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 30px); opacity: 0; }
}

/* 4-column 3D responsive grid */
.process-strip-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
  position: relative !important;
  z-index: 2 !important;
  transform-style: preserve-3d !important;
}

@media (max-width: 1100px) {
  .process-strip-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .process-flow-line { display: none; }
}

@media (max-width: 640px) {
  .process-strip-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* 3D Process Step Card */
.process-step-card {
  position: relative !important;
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 100% !important;
  transform: perspective(1000px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg))
             translateZ(0px) !important;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  will-change: transform !important;
}

.process-step-card:hover {
  transform: perspective(1000px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg))
             translateY(-12px)
             translateZ(30px) !important;
}

/* Inner Glass Slab with Multi-Axis 3D Depth */
.process-card-glass {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transform-style: preserve-3d !important;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 248, 234, 0.88) 100%) !important;
  border: 1px solid rgba(226, 163, 62, 0.3) !important;
  border-top: 3.5px solid var(--hot, #E2A33E) !important;
  border-radius: 24px !important;
  padding: 32px 26px 26px !important;
  box-shadow: 0 12px 32px -6px rgba(59, 34, 8, 0.08), 0 0 20px rgba(226, 163, 62, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  transition: box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.process-step-card:hover .process-card-glass {
  box-shadow: 0 28px 56px -12px rgba(59, 34, 8, 0.18),
              0 0 35px rgba(226, 163, 62, 0.28) !important;
  border-color: rgba(226, 163, 62, 0.6) !important;
  border-top-color: #B87414 !important;
}

/* Dynamic Specular Glare Reflection on Mouse Move */
.process-card-glass::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 24px !important;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.8) 0%,
              rgba(226, 163, 62, 0.15) 35%,
              transparent 70%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease !important;
  z-index: 8 !important;
}

.process-step-card:hover .process-card-glass::before {
  opacity: 1 !important;
}

/* 3D Header: Number Emblem + Icon */
.process-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  transform-style: preserve-3d !important;
  transform: translateZ(40px) !important;
}

/* Floating 3D Gold Number Badge */
.process-step-card .process-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF3DC 100%) !important;
  border: 1.5px solid var(--hot, #E2A33E) !important;
  color: var(--wave, #B87414) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(226, 163, 62, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.95) !important;
  transform-style: preserve-3d !important;
  transform: translateZ(45px) !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

.process-step-card:hover .process-number {
  background: linear-gradient(135deg, #E2A33E 0%, #B87414 100%) !important;
  color: #3B2208 !important;
  transform: translateZ(60px) scale(1.1) !important;
  box-shadow: 0 10px 24px rgba(226, 163, 62, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

/* Floating 3D Action Icon */
.process-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(226, 163, 62, 0.12) !important;
  border: 1px solid rgba(226, 163, 62, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--wave, #B87414) !important;
  font-size: 1.15rem !important;
  transform-style: preserve-3d !important;
  transform: translateZ(35px) !important;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

.process-step-card:hover .process-icon-wrap {
  background: var(--hot, #E2A33E) !important;
  color: #3B2208 !important;
  transform: translateZ(50px) rotate(12deg) scale(1.08) !important;
  box-shadow: 0 8px 20px rgba(226, 163, 62, 0.4) !important;
}

/* 3D Body: Phase Tag, Title, Description */
.process-card-body {
  transform-style: preserve-3d !important;
  flex: 1 !important;
}

.process-phase-tag {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--wave, #B87414) !important;
  margin-bottom: 8px !important;
  transform: translateZ(25px) !important;
}

.process-step-title {
  font-family: var(--font-heading) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: var(--ink, #4A2B0E) !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.015em !important;
  transform: translateZ(35px) !important;
  transition: color 0.3s ease !important;
}

.process-step-card:hover .process-step-title {
  color: var(--deep, #3B2208) !important;
}

.process-step-desc {
  color: var(--muted, #7A5835) !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
  margin-bottom: 26px !important;
  transform: translateZ(25px) !important;
}

/* 3D Footer Pill */
.process-card-footer {
  transform-style: preserve-3d !important;
  transform: translateZ(30px) !important;
}

.process-metric-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: rgba(184, 116, 20, 0.08) !important;
  border: 1px solid rgba(226, 163, 62, 0.25) !important;
  color: var(--wave, #B87414) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transform: translateZ(30px) !important;
  transition: all 0.3s ease !important;
}

.process-step-card:hover .process-metric-pill {
  background: rgba(226, 163, 62, 0.22) !important;
  border-color: var(--hot, #E2A33E) !important;
  color: #3B2208 !important;
  transform: translateZ(40px) !important;
}

/* ==========================================================================
   14. MOBILE VIEWPORT 3D CONTAINMENT & STABILITY (< 992px)
   ========================================================================== */
@media (max-width: 992px) {
  /* Hide heavy 3D background artifacts that block mobile reading or cause horizontal overflow */
  .hero-section::before,
  .hero-section::after,
  .hero-content-wrapper::before,
  .hero-content-wrapper::after,
  .process-flow-line {
    display: none !important;
  }

  /* Reset all 3D rotations, tilts, and float keyframes on mobile touch devices */
  .hero-text,
  .hero-brand-mark,
  .hero-title,
  .hero-subtitle,
  .hero-cta,
  .hero-cta a,
  .hero-cta a:first-child,
  .hero-cta a:last-child,
  .hero-cta a:first-child:hover,
  .hero-cta a:last-child:hover,
  .why-us-stats-card,
  .why-us-stats-card:hover,
  .stat-box,
  .process-step-card,
  .process-step-card:hover,
  .process-card-glass,
  .process-step-card:hover .process-card-glass,
  .process-number,
  .process-step-card:hover .process-number,
  .process-icon-wrap,
  .process-step-card:hover .process-icon-wrap,
  .process-step-title,
  .process-step-desc,
  .process-metric-pill,
  .process-step-card:hover .process-metric-pill,
  .category-card-img,
  .category-card-img:hover,
  .testimonial-card,
  .testimonial-card:hover,
  .benefit-card,
  .benefit-card:hover,
  .blog-card,
  .blog-card:hover,
  .team-card,
  .team-card:hover,
  .founder-photo-box,
  .story-img,
  .service-features-card,
  .culture-image-wrapper {
    transform: none !important;
    animation: none !important;
    perspective: none !important;
    transform-style: flat !important;
    will-change: auto !important;
  }

  /* Mobile HOW WE WORK process cards: full width, clean padding, solid stability */
  .process-strip-stage {
    margin-top: 25px !important;
  }
  .process-strip-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .process-step-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .process-card-glass {
    padding: 24px 20px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 18px rgba(59, 34, 8, 0.06) !important;
  }
  .process-card-header {
    margin-bottom: 16px !important;
  }
  .process-step-card .process-number {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
  }
  .process-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  .process-step-title {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
  }
  .process-step-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }

  /* Why Us card: flat clean card on mobile without 3D rotation overflow */
  .why-us-stats-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    margin-top: 24px !important;
    padding: 24px 18px !important;
  }
  .stat-box {
    padding: 14px 10px !important;
  }
  .stat-number {
    font-size: 1.85rem !important;
  }
}

/* ==========================================================================
   3D ANIMATED CLIENT REVIEW FORM & STAGE (ABOUT US)
   ========================================================================== */
.section-review-submission {
  perspective: 1400px;
  position: relative;
  overflow: hidden;
}

/* Floating 3D Ambient Orbs */
.ambient-3d-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.45;
  will-change: transform;
}

.orb-gold-1 {
  width: 340px;
  height: 340px;
  top: -60px;
  left: 3%;
  background: radial-gradient(circle, rgba(201, 160, 80, 0.35) 0%, rgba(201, 160, 80, 0.05) 70%, transparent 100%);
  animation: orbFloat1 12s ease-in-out infinite alternate;
}

.orb-gold-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  right: 3%;
  background: radial-gradient(circle, rgba(11, 29, 58, 0.18) 0%, rgba(201, 160, 80, 0.20) 60%, transparent 100%);
  animation: orbFloat2 15s ease-in-out infinite alternate;
}

.floating-3d-badge {
  position: absolute;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 160, 80, 0.35);
  box-shadow: 0 15px 35px rgba(11, 29, 58, 0.08);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy, #0B1D3A);
  z-index: 1;
  pointer-events: none;
}

.badge-float-left {
  top: 18%;
  left: 2%;
  animation: badgeFloatLeft 8s ease-in-out infinite alternate;
}

.badge-float-right {
  bottom: 18%;
  right: 2%;
  animation: badgeFloatRight 9s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 40px, 0) scale(1.1); }
  100% { transform: translate3d(-20px, 20px, 0) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, -30px, 0) scale(1.15); }
  100% { transform: translate3d(20px, -50px, 0) scale(0.9); }
}

@keyframes badgeFloatLeft {
  0% { transform: translateY(0) rotate(-3deg) translateZ(20px); }
  100% { transform: translateY(-18px) rotate(2deg) translateZ(40px); }
}

@keyframes badgeFloatRight {
  0% { transform: translateY(0) rotate(3deg) translateZ(20px); }
  100% { transform: translateY(-22px) rotate(-2deg) translateZ(40px); }
}

/* 3D Glass Form Card */
.review-form-card.card-3d-interactive {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 251, 247, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 160, 80, 0.35);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 
    0 25px 60px -15px rgba(11, 29, 58, 0.12),
    0 10px 25px -5px rgba(201, 160, 80, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  z-index: 2;
}

.review-form-card.card-3d-interactive:hover {
  transform: perspective(1200px) rotateX(var(--form-rx, 0deg)) rotateY(var(--form-ry, 0deg)) translateZ(12px);
  box-shadow: 
    0 35px 80px -10px rgba(11, 29, 58, 0.16),
    0 15px 35px -5px rgba(201, 160, 80, 0.22),
    0 0 0 1px rgba(201, 160, 80, 0.5);
}

/* 3D Specular Light Glare */
.review-form-card.card-3d-interactive::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--form-mx, 50%) var(--form-my, 20%),
    rgba(255, 255, 255, 0.55),
    rgba(201, 160, 80, 0.12) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.review-form-card.card-3d-interactive:hover::after {
  opacity: 1;
}

/* 3D Header & Bubble */
.card-header-styled {
  transform-style: preserve-3d;
}

.card-header-styled .icon-bubble {
  transform: translateZ(32px);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(201, 160, 80, 0.25);
  position: relative;
}

.card-header-styled .icon-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid rgba(201, 160, 80, 0.35);
  animation: pulseBubble3d 3s infinite ease-out;
}

@keyframes pulseBubble3d {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.card-header-styled h3 {
  transform: translateZ(24px);
}

.card-header-styled p {
  transform: translateZ(16px);
}

/* 3D Interactive Form Inputs */
.card-3d-interactive .form-group input,
.card-3d-interactive .form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.85);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.card-3d-interactive .form-group input:focus,
.card-3d-interactive .form-group textarea:focus {
  transform: translateZ(20px) translateY(-2px);
  border-color: var(--color-gold, #c9a050) !important;
  box-shadow: 
    0 12px 28px -6px rgba(11, 29, 58, 0.10),
    0 0 0 3px rgba(201, 160, 80, 0.22) !important;
  background: #ffffff;
  outline: none;
}

/* 3D Interactive Star Rating Selector */
.card-3d-interactive .star-rating-picker {
  transform: translateZ(22px);
  background: rgba(250, 248, 245, 0.92);
  border: 1px solid rgba(201, 160, 80, 0.3);
  padding: 8px 18px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.card-3d-interactive .star-btn {
  font-size: 24px;
  transform: translateZ(10px);
  transition: transform 0.2s var(--ease-spring), color 0.2s ease, filter 0.2s ease;
  outline: none;
}

.card-3d-interactive .star-btn:hover {
  transform: translateZ(26px) scale(1.35) rotateY(15deg);
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.6));
}

.card-3d-interactive .star-btn.pop-animate {
  animation: star3dPop 0.45s var(--ease-spring);
}

@keyframes star3dPop {
  0% { transform: scale(1) translateZ(10px); }
  50% { transform: scale(1.5) rotate(15deg) translateZ(35px); }
  100% { transform: scale(1) translateZ(10px); }
}

/* 3D Extruded Submit Button */
.btn-3d-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d8ad5a 0%, #b88628 100%);
  color: #0B1D3A !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 6px 0 #8f6517,
    0 14px 28px rgba(184, 134, 40, 0.35);
  transform: translateZ(28px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.btn-3d-gold:hover {
  transform: translateZ(36px) translateY(-3px);
  box-shadow: 
    0 9px 0 #8f6517,
    0 20px 38px rgba(184, 134, 40, 0.45);
  background: linear-gradient(135deg, #e3ba69 0%, #c49232 100%);
}

.btn-3d-gold:active {
  transform: translateZ(14px) translateY(5px);
  box-shadow: 
    0 2px 0 #8f6517,
    0 6px 14px rgba(184, 134, 40, 0.3);
}

/* 3D Shimmer Line across button */
.btn-3d-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s ease;
}

.btn-3d-gold:hover::before {
  left: 140%;
}

/* 3D Sidebar Box */
.review-sidebar-box.card-3d-interactive {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 251, 247, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 160, 80, 0.35);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 
    0 25px 60px -15px rgba(11, 29, 58, 0.08),
    0 10px 25px -5px rgba(201, 160, 80, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.review-sidebar-box.card-3d-interactive:hover {
  transform: perspective(1200px) rotateX(var(--side-rx, 0deg)) rotateY(var(--side-ry, 0deg)) translateZ(12px);
  box-shadow: 
    0 35px 75px -10px rgba(11, 29, 58, 0.14),
    0 15px 35px -5px rgba(201, 160, 80, 0.2);
}

/* Mini Cards 3D Lift */
.mini-testimonial-card {
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.mini-testimonial-card:hover {
  transform: translateZ(25px) translateY(-4px) scale(1.02) !important;
  border-color: rgba(201, 160, 80, 0.6) !important;
  box-shadow: 0 15px 35px rgba(11, 29, 58, 0.10) !important;
}

.mini-testimonial-card.card-just-added {
  animation: cardFlipIn3d 0.7s var(--ease-spring) forwards;
}

@keyframes cardFlipIn3d {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(-35deg) translateZ(-60px) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateZ(0) translateY(0);
  }
}

/* ==========================================================================
   HORIZONTAL MOVING VOICES CAROUSEL (LEFT TO RIGHT WITH BOTH SIDE ARROWS)
   ========================================================================== */
.voices-carousel-section {
  position: relative;
  width: 100%;
  margin-top: 30px;
}

.voices-section-title {
  text-align: center;
  margin-bottom: 28px;
}

.voices-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #0B1D3A;
  margin: 10px 0 6px 0;
}

.voices-subheading {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Carousel Stage with Side Arrows on Both Sides */
.voices-carousel-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.carousel-side-arrow {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c9a050;
  color: #0B1D3A;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(11, 29, 58, 0.12);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  outline: none;
}

.carousel-side-arrow:hover {
  background: #c9a050;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(201, 160, 80, 0.45);
}

.carousel-side-arrow:active {
  transform: scale(0.94);
}

@media (max-width: 640px) {
  .carousel-side-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 15px;
  }
  .voices-carousel-stage {
    gap: 8px;
  }
}

/* Viewport with left & right gradient fade */
.voices-track-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 16px 2px 26px;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.voices-track-viewport:active {
  cursor: grabbing;
}

.voices-moving-track {
  display: flex;
  gap: 26px;
  width: max-content;
  will-change: transform;
}

.track-group {
  display: flex;
  gap: 26px;
  flex-shrink: 0;
}

/* Distinct Individual Card Frame */
.voice-card-frame {
  width: 370px;
  min-width: 370px;
  max-width: 370px;
  background: #ffffff;
  border: 2px solid #e8dfd1;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 12px 32px rgba(11, 29, 58, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  user-select: none;
  box-sizing: border-box;
}

.voice-card-frame:hover {
  transform: translateY(-8px);
  border-color: #c9a050;
  box-shadow: 0 22px 50px rgba(11, 29, 58, 0.14), 0 0 0 1px #c9a050;
}

.voice-card-frame.card-just-added {
  border-color: #c9a050;
  animation: cardPulseGold 2s ease infinite alternate;
}

@keyframes cardPulseGold {
  0% { box-shadow: 0 12px 32px rgba(11, 29, 58, 0.07), 0 0 0 1px #c9a050; }
  100% { box-shadow: 0 20px 45px rgba(201, 160, 80, 0.35), 0 0 0 2px #c9a050; }
}

.card-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rating-stars {
  color: #f59e0b;
  font-size: 14px;
  display: flex;
  gap: 3px;
}

.verified-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8f6517;
  background: rgba(201, 160, 80, 0.16);
  border: 1px solid rgba(201, 160, 80, 0.32);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.voice-quote {
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 68px;
}

.voice-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f3f7;
}

.voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9a050;
  flex-shrink: 0;
}

.voice-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0B1D3A;
  color: #c9a050;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid #c9a050;
}

.voice-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0B1D3A;
  line-height: 1.3;
}

.voice-meta span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.voices-pause-hint {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .voice-card-frame {
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    padding: 20px 20px;
  }
}



