/* Premium motion layer — isolated from core site styling */
:root {
  --lux-glow: rgba(155, 100, 242, .22);
  --lux-gold: rgba(242, 166, 43, .22);
}

body { overflow-x: hidden; }
main { position: relative; isolation: isolate; }

#luxury-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .78;
}

.luxury-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(123,53,212,.09), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(242,166,43,.08), transparent 30%);
}
.luxury-ambient::before,
.luxury-ambient::after {
  content: "";
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .33;
  animation: luxuryFloat 16s ease-in-out infinite alternate;
}
.luxury-ambient::before {
  left: -18vw;
  top: 8vh;
  background: var(--lux-glow);
}
.luxury-ambient::after {
  right: -18vw;
  bottom: -10vh;
  background: var(--lux-gold);
  animation-delay: -7s;
}
@keyframes luxuryFloat {
  from { transform: translate3d(0, 0, 0) scale(.9); }
  to { transform: translate3d(8vw, 5vh, 0) scale(1.12); }
}

/* Cinematic hero treatment */
.hero-section { isolation: isolate; }
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(31,12,48,.25), transparent 42%, rgba(123,53,212,.10));
  mix-blend-mode: multiply;
}
.hero-bg { transform: scale(1.035); animation: luxuryHeroBreath 11s ease-in-out infinite alternate; }
@keyframes luxuryHeroBreath { to { transform: scale(1.095); } }

/* Premium shimmer on important buttons */
.brand-btn, .light-btn, .outline-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}
.brand-btn::after, .light-btn::after, .outline-btn::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 34%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  transition: left .7s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
.brand-btn:hover::after, .light-btn:hover::after, .outline-btn:hover::after { left: 125%; }

/* Cards get depth, border-light and subtle tilt */
.service-card,
.subservice-card,
.blog-card,
.gallery-item,
.why-grid > div,
.visual-card,
.visual-panel,
.cta-box {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::before,
.subservice-card::before,
.blog-card::before,
.why-grid > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(155,100,242,.28), rgba(242,166,43,.18));
  -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 .35s ease;
  pointer-events: none;
  z-index: 3;
}
.service-card:hover::before,
.subservice-card:hover::before,
.blog-card:hover::before,
.why-grid > div:hover::before { opacity: 1; }

.luxury-tilt {
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease;
}
.luxury-tilt:hover {
  box-shadow: 0 30px 80px rgba(48,19,79,.16);
}

/* Image reveal + magnetic media motion */
.service-card-image,
.gallery-item,
.blog-card-image,
.subservice-card-with-image { overflow: hidden; }
.service-card-image img,
.gallery-item img,
.blog-card-image img,
.subservice-card-bg {
  transition: transform .9s cubic-bezier(.16,1,.3,1), filter .55s ease;
}
.service-card:hover img,
.gallery-item:hover img,
.blog-card:hover img,
.subservice-card:hover .subservice-card-bg {
  transform: scale(1.07);
  filter: saturate(1.05) contrast(1.03);
}

/* Main section headings: visible brand colour */
.section-title,
.section-title.luxury-title-ready {
  position: relative;
  background: none !important;
  color: #4b216c !important;
  -webkit-text-fill-color: #4b216c !important;
  text-shadow: 0 10px 28px rgba(75, 33, 108, .08);
}

/* Dark sections keep a coloured (non-white) heading, except the homepage Why section below */
.why-section:not(.growthweb-why-section) .section-title,
.why-section:not(.growthweb-why-section) .section-title.luxury-title-ready {
  color: #f4c978 !important;
  -webkit-text-fill-color: #f4c978 !important;
}

/* Homepage Why Growthweb Digital — CSS design only, no image asset */
.growthweb-why-section {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-bottom: 46px;
  background: #7b35d4;
  color: rgba(255, 255, 255, .80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 28px 80px rgba(62, 20, 107, .18);
}

/* Subtle premium pattern inside the purple section */
.growthweb-why-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, .14) 0 2px, transparent 2.5px) 0 0 / 30px 30px,
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .16), transparent 24%),
    radial-gradient(circle at 12% 90%, rgba(47, 15, 83, .30), transparent 29%),
    linear-gradient(135deg, rgba(49, 14, 91, .24), transparent 48%, rgba(255, 255, 255, .04));
  pointer-events: none;
}

/* Exact hanging scallop edge like the supplied reference */
.growthweb-why-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -45px;
  height: 46px;
  background: radial-gradient(circle at 44px 0, #7b35d4 0 43px, transparent 44px) 0 0 / 88px 46px repeat-x;
  pointer-events: none;
}

.growthweb-why-section > .container {
  position: relative;
  z-index: 2;
}

.growthweb-why-section > .container::before,
.growthweb-why-section > .container::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.growthweb-why-section > .container::before {
  width: 170px;
  height: 170px;
  right: 4%;
  top: -42px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .035), 0 0 0 72px rgba(255, 255, 255, .02);
}

.growthweb-why-section > .container::after {
  width: 92px;
  height: 92px;
  left: 43%;
  bottom: -18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  transform: rotate(24deg);
}

.growthweb-why-section .eyebrow {
  color: #ffe0a3;
}

.growthweb-why-section .eyebrow::before {
  background: #ffe0a3;
  box-shadow: 0 0 18px rgba(255, 224, 163, .36);
}

/* Only this main heading remains white */
.growthweb-why-section .growthweb-why-title,
.growthweb-why-section .growthweb-why-title.luxury-title-ready {
  background: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 14px 42px rgba(31, 8, 54, .26);
}

.growthweb-why-section > .container > .row > .col-lg-5 > p {
  color: rgba(255, 255, 255, .80);
}

.growthweb-why-section .brand-btn {
  background: #fff;
  color: #6426ad;
  box-shadow: 0 14px 34px rgba(41, 10, 72, .22);
}

.growthweb-why-section .brand-btn:hover {
  color: #4b1889;
  background: #fff8e9;
}

.growthweb-why-section .why-grid > div {
  overflow: hidden;
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .065));
  box-shadow: 0 18px 44px rgba(36, 8, 63, .17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.growthweb-why-section .why-grid > div::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 140, .25), transparent 68%);
  pointer-events: none;
}

.growthweb-why-section .why-grid span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #3a145d;
  background: linear-gradient(135deg, #ffe0a3, #f2a62b);
  box-shadow: 0 10px 28px rgba(70, 20, 113, .22);
}

.growthweb-why-section .why-grid h3 {
  color: #fff;
}

.growthweb-why-section .why-grid p {
  color: rgba(255, 255, 255, .74);
}

@media (max-width: 991.98px) {
  .growthweb-why-section {
    margin-bottom: 35px;
  }

  .growthweb-why-section::after {
    bottom: -34px;
    height: 35px;
    background: radial-gradient(circle at 32px 0, #7b35d4 0 31px, transparent 32px) 0 0 / 64px 35px repeat-x;
  }

  .growthweb-why-section > .container::before,
  .growthweb-why-section > .container::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .growthweb-why-section {
    margin-bottom: 27px;
  }

  .growthweb-why-section::after {
    bottom: -26px;
    height: 27px;
    background: radial-gradient(circle at 24px 0, #7b35d4 0 23px, transparent 24px) 0 0 / 48px 27px repeat-x;
  }
}

/* Cursor-follow spotlight only on fine pointers */
@media (hover:hover) and (pointer:fine) {
  .luxury-spotlight {
    position: fixed;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, rgba(155,100,242,.10), rgba(155,100,242,.035) 34%, transparent 70%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity .35s ease;
  }
  body:hover .luxury-spotlight { opacity: 1; }
}

/* AOS tuning */
[data-aos] { backface-visibility: hidden; }
[data-aos="luxury-rise"] {
  transform: translate3d(0, 42px, 0) scale(.975);
  opacity: 0;
  filter: blur(6px);
  transition-property: transform, opacity, filter;
}
[data-aos="luxury-rise"].aos-animate {
  transform: translate3d(0,0,0) scale(1);
  opacity: 1;
  filter: blur(0);
}

@media (max-width: 991.98px) {
  #luxury-scene { opacity: .48; }
  .luxury-ambient::before, .luxury-ambient::after { filter: blur(50px); }
  .hero-bg { animation-duration: 14s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  #luxury-scene, .luxury-spotlight { display: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Reusable full-width decorative top design inspired by the Why Growthweb Digital scallop */
.home-decor-section {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.home-decor-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 46px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 44px 0, #7b35d4 0 43px, transparent 44px) 0 0 / 88px 46px repeat-x,
    /*linear-gradient(90deg, #7b35d4 0%, #9162ed 34%, #f2a62b 67%, #7b35d4 100%);*/
  opacity: 1;
  filter: none;
  pointer-events: none;
}
.home-decor-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7b35d4 0%, #9162ed 34%, #f2a62b 67%, #7b35d4 100%);
  opacity: 1;
  filter: none;
  pointer-events: none;
}
.home-decor-section > .container {
  position: relative;
  z-index: 1;
}
.cta-section.home-decor-section::before {
  top: 18px;
  background:
    radial-gradient(circle at 44px 0, #f2a62b 0 43px, transparent 44px) 0 0 / 88px 46px repeat-x,
    /*linear-gradient(90deg, #f2a62b 0%, #ffe0a3 34%, #ffffff 67%, #f2a62b 100%);*/
  opacity: 1;
  filter: none;
}
.cta-section.home-decor-section::after {
  top: 18px;
  height: 3px;
  background: linear-gradient(90deg, #f2a62b 0%, #ffe0a3 44%, #ffffff 70%, #f2a62b 100%);
  opacity: 1;
  filter: none;
}

/* Scroll progress and extra premium micro-motion */
.luxury-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, #f2a62b, #9b64f2, #7b35d4);
  box-shadow: 0 0 18px rgba(155, 100, 242, .45);
}
.nav-service-pill {
  animation: marqueePulse 5s ease-in-out infinite;
}
.nav-service-pill:nth-child(2n) {
  animation-delay: -1.2s;
}
.nav-service-pill:nth-child(3n) {
  animation-delay: -2.3s;
}
@keyframes marqueePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.nav-service-pill:hover {
  animation-play-state: paused;
}
.count-up {
  display: inline-block;
  min-width: 1.4ch;
}
.premium-process-grid > div {
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.premium-process-grid > div:hover {
  transform: translateY(-8px);
  border-color: rgba(155,100,242,.34);
  box-shadow: 0 24px 68px rgba(48,19,79,.13);
}

@media (max-width: 767px) {
  .home-decor-section::before {
    width: 100vw;
    height: 30px;
    background:
      radial-gradient(circle at 28px 0, #7b35d4 0 27px, transparent 28px) 0 0 / 56px 30px repeat-x,
      /*linear-gradient(90deg, #7b35d4 0%, #9162ed 36%, #f2a62b 68%, #7b35d4 100%);*/
    opacity: 1;
    filter: none;
  }
  .home-decor-section::after {
    width: 100vw;
    height: 3px;
    opacity: 1;
    filter: none;
  }
  .cta-section.home-decor-section::before {
    height: 30px;
    background:
      radial-gradient(circle at 28px 0, #f2a62b 0 27px, transparent 28px) 0 0 / 56px 30px repeat-x,
      /*linear-gradient(90deg, #f2a62b 0%, #ffe0a3 45%, #ffffff 72%, #f2a62b 100%);*/
    opacity: 1;
    filter: none;
  }
}
