@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color-brand-gold: #471b94;
  --color-brand-gold-light: #6b3fbf;
  --color-brand-gold-dark: #351470;
  --color-brand-charcoal: #111111;
  --color-brand-charcoal-light: #1c1c1c;
  --color-brand-charcoal-lighter: #282828;
  --color-brand-charcoal-dark: #0a0a0a;
  --color-brand-cream: #faf8f5;
  --color-brand-cream-light: #fdfdfd;
  --color-brand-cream-dark: #f3eee6;
  --color-brand-cream-darker: #e8dec9;
  --color-brand-secondary-light: #d4c5f9;

  --font-playfair: "Roboto Condensed", sans-serif;
  --font-jost: "Albert Sans", sans-serif;
  --font-roboto: "Roboto Condensed", sans-serif;
  --font-albert: "Albert Sans", sans-serif;

  --text-xs: 1rem;
  --text-sm: 1.125rem;
  --text-base: 1.25rem;
  --text-lg: 1.375rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.0625rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4.125rem;

  --animate-fade-in-up: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  --animate-fade-in-down: fadeInDown 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  --animate-fade-in: fadeIn 1.6s ease-out forwards;
  --animate-scale-up: scaleUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  --animate-spin-slow: spinSlow 12s linear infinite;
}

.animate-fade-in-down {
  animation: fadeInDown 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in-up {
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
  animation: fadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-anim-1 {
  animation-delay: 0.1s;
}

.header-anim-2 {
  animation-delay: 0.16s;
}

.header-anim-3 {
  animation-delay: 0.22s;
}

.header-anim-4 {
  animation-delay: 0.28s;
}

.header-anim-5 {
  animation-delay: 0.34s;
}

.header-anim-6 {
  animation-delay: 0.4s;
}

.header-anim-7 {
  animation-delay: 0.46s;
}

.header-anim-8 {
  animation-delay: 0.52s;
}

.header-anim-9 {
  animation-delay: 0.58s;
}

.header-anim-10 {
  animation-delay: 0.64s;
}

.header-anim-11 {
  animation-delay: 0.7s;
}

.header-anim-12 {
  animation-delay: 0.76s;
}

.header-anim-13 {
  animation-delay: 0.82s;
}

.header-anim-14 {
  animation-delay: 0.88s;
}

.header-anim-15 {
  animation-delay: 0.94s;
}

.header-anim-16 {
  animation-delay: 1.0s;
}

.header-anim-17 {
  animation-delay: 1.06s;
}

.header-anim-18 {
  animation-delay: 1.12s;
}

.header-anim-19 {
  animation-delay: 1.18s;
}

.header-anim-20 {
  animation-delay: 1.24s;
}

/* Logo whole text hover slide transition */
a.group.animate-header-bounce {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

a.group.animate-header-bounce:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Writing / Typewriter text animation */
.write-char {
  display: inline;
  opacity: 0;
  animation: writeCharReveal 0.08s ease-out forwards;
}

@keyframes writeCharReveal {
  from {
    opacity: 0;
    filter: blur(1.5px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Search results scrollbar styling */
#search-results::-webkit-scrollbar {
  width: 6px;
}

#search-results::-webkit-scrollbar-track {
  background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
  background: var(--color-brand-gold-dark);
  border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-gold);
}

/* Live Search Highlights */
mark.search-highlight {
  background-color: rgba(71, 27, 148, 0.35);
  /* Brand gold with opacity */
  color: inherit;
  border-bottom: 2px solid var(--color-brand-gold);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: inherit;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Golden drawing border animations for header */
.header-border-line {
  position: absolute;
  background-color: var(--color-brand-gold);
  z-index: 20;
}

.hb-top {
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  animation: drawTop 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.3s;
}

.hb-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  animation: drawRight 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.9s;
}

.hb-bottom {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  animation: drawBottom 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 1.5s;
}

.hb-left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
  animation: drawLeft 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 2.1s;
}

@keyframes drawTop {
  to {
    width: 100%;
  }
}

@keyframes drawRight {
  to {
    height: 100%;
  }
}

@keyframes drawBottom {
  to {
    width: 100%;
  }
}

@keyframes drawLeft {
  to {
    height: 100%;
  }
}

/* Golden drawing border animations for footer */
.footer-border-line {
  position: absolute;
  background-color: var(--color-brand-gold);
  z-index: 20;
}

.fb-top {
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fb-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fb-bottom {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fb-left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
  transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

footer.revealed .fb-top {
  width: 100%;
  transition-delay: 0.1s;
}

footer.revealed .fb-right {
  height: 100%;
  transition-delay: 0.7s;
}

footer.revealed .fb-bottom {
  width: 100%;
  transition-delay: 1.3s;
}

footer.revealed .fb-left {
  height: 100%;
  transition-delay: 1.9s;
}

/* Mobile menu links premium entry transition */
.mobile-nav-link {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#mobile-menu.translate-x-0 .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(2) {
  transition-delay: 0.16s;
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(3) {
  transition-delay: 0.22s;
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(4) {
  transition-delay: 0.28s;
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(5) {
  transition-delay: 0.34s;
}

#mobile-menu.translate-x-0 .mobile-nav-link:nth-child(6) {
  transition-delay: 0.4s;
}

@keyframes headerBounceBack {
  0% {
    transform: translateY(-70px);
    opacity: 0;
  }

  60% {
    transform: translateY(15px);
    opacity: 1;
  }

  85% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

.animate-header-bounce {
  animation: headerBounceBack 0.9s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Custom premium animations for header components */
@keyframes headerBorderExpand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes logoReveal {
  from {
    letter-spacing: 0.5em;
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    letter-spacing: 0.25em;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes linkRevealUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonScaleReveal {
  from {
    transform: scale(0.92) translateY(6px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-header-border {
  transform-origin: center;
  animation: headerBorderExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-logo-reveal {
  animation: logoReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-link-reveal {
  animation: linkRevealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.animate-button-reveal {
  animation: buttonScaleReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1.05);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body {
  font-family: var(--font-jost);
  font-size: 20px;
  line-height: 34px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-playfair);
}

h1 {
  font-size: 64px;
  line-height: 70px;
  font-weight: 700;
}

h2 {
  font-size: 38px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -1px;
}

h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

h4 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

p {
  font-size: 20px;
  line-height: 34px;
}

.btn-gold,
.btn-gold-solid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: #471b94 !important;
  color: #F5F5F5 !important;
  font-family: var(--font-jost), sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px !important;
  overflow: hidden;
  border: 1px solid #471b94 !important;
  cursor: pointer;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none !important;
}

.btn-gold:hover,
.btn-gold-solid:hover {
  color: #ffffff !important;
  border-color: #6b3fbf !important;
}

.btn-gold span,
.btn-gold-solid span {
  background-color: #6b3fbf !important;
  border-radius: 50%;
  display: block;
  height: 0;
  width: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn-gold:hover span,
.btn-gold-solid:hover span {
  height: 562.5px;
  width: 562.5px;
}

.nav-link {
  position: relative;
  font-family: var(--font-jost), sans-serif;
  font-size: 16px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-brand-charcoal);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
  padding: 0.5rem 0.9rem;

  &:hover {
    color: var(--color-brand-gold);
    transform: translateY(-2px);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-brand-gold);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  &:hover::after {
    width: 70%;
    left: 15%;
  }
}

.glass-panel {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71, 27, 148, 0.15);
}

.header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #471b94 !important;
  color: #F5F5F5 !important;
  font-family: var(--font-jost), sans-serif;
  font-size: 15px;
  font-weight: 600;
  height: 46px;
  padding: 0 28px;
  letter-spacing: 0;
  border-radius: 2px !important;
  overflow: hidden;
  border: 1px solid #471b94 !important;
  cursor: pointer;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none !important;
}

.header-btn:hover {
  color: #ffffff !important;
  border-color: #6b3fbf !important;
}

.header-btn span {
  background-color: #6b3fbf !important;
  border-radius: 50%;
  display: block;
  height: 0;
  width: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.header-btn:hover span {
  height: 562.5px;
  width: 562.5px;
}

.service-card {
  background-color: #ffffff;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(71, 27, 148, 0.15);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;

  &::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, var(--color-brand-gold) 0%, transparent 100%);
    transform: skewY(-5deg);
    transition: transform 0.4s ease;
  }

  &:hover {
    transform: translateY(-8px);
    border-color: var(--color-brand-gold);
    box-shadow: 0 30px 60px -15px rgba(17, 17, 17, 0.08);

    &::after {
      transform: scaleX(1);
    }
  }
}

.grid-lines {
  background-image:
    linear-gradient(to right, rgba(71, 27, 148, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71, 27, 148, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.gold-border-frame {
  border: 1px solid rgba(71, 27, 148, 0.2);
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(71, 27, 148, 0.08);
    pointer-events: none;
  }
}

.thin-border {
  border: 1px solid rgba(71, 27, 148, 0.12);
}

.v-line {
  width: 1px;
  background-color: rgba(71, 27, 148, 0.15);
}

.h-line {
  height: 1px;
  background-color: rgba(71, 27, 148, 0.15);
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-brand-charcoal-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-brand-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-gold-light);
}

/* Text Selection */
::selection {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-charcoal-dark);
}

/* Custom Page Header Component for Inner Pages */
.page-header {
  position: relative;
  width: 100%;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  animation: scaleUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

.page-header .page-content {
  text-align: center;
  max-width: 1100px;
  padding: 0 24px;
  z-index: 2;
}

.page-header .page-content span {
  display: block;
  opacity: 0;
  animation: fadeInDown 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.3s;
}

.page-header .page-content h2 {
  color: #ffffff;
  font-family: var(--font-playfair), serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-transform: capitalize;
  opacity: 0;
}

.page-header .page-content h2.anim-start {
  opacity: 1;
}

/* Page Header Character Animations (Premium Drop-in) */
.page-header .page-content h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: calc(var(--char-index) * 0.035s + 0.3s);
}

.page-header .page-content h2.anim-start .char {
  opacity: 1;
  transform: translateY(0);
}

.page-header .page-content p {
  color: #dddddd;
  font-family: var(--font-jost), sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 1.0s ease-out forwards;
  animation-delay: 0.8s;
}

@media only screen and (max-width: 992px) {
  .page-header {
    padding: 120px 0 80px;
  }

  .page-header .page-content h2 {
    font-size: 40px;
    margin-bottom: 6px;
  }

  .page-header .page-content p {
    font-size: 15px;
  }
}

/* Slick Slider Base Overlay & Bg-Img */
.slider-content-wrap {
  height: 650px;
  display: flex;
  align-items: center;
}

.dl-slider .bg-img {
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: -1;
}

.dl-slider .bg-img::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Slick Slider Navigation Controls */
.dl-slider .slick-dots {
  width: 100%;
  height: auto;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 30px;
  margin: 0;
  list-style: none;
  z-index: 10;
}

.dl-slider .slick-dots li {
  display: inline-block;
  margin: 0 6px;
}

.dl-slider .slick-dots li button {
  background-color: rgba(71, 27, 148, 0.3);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -99999px;
  padding: 0;
  border: none;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.dl-slider .slick-dots li button:focus,
.dl-slider .slick-dots li button:active {
  outline: none;
}

.dl-slider .slick-dots li.slick-active button {
  background-color: #471b94;
  transform: scale(1.2);
}

.dl-slider .slick-arrow {
  background-color: rgba(71, 27, 148, 0.3);
  color: #ffffff;
  font-size: 16px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  position: absolute;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 10;
  cursor: pointer;
  border: 1px solid rgba(71, 27, 148, 0.5);
  transition: all 0.3s ease-in-out;
}

.dl-slider .slick-arrow.slick-next {
  left: auto;
  right: 3%;
}

.dl-slider .slick-arrow:hover {
  background-color: #471b94;
  color: #111111;
  border-color: #471b94;
}

.dl-slider .dl-caption {
  width: 100%;
}

.dl-slider .dl-caption .inner-layer {
  display: inline-block;
  overflow: hidden;
}

.dl-slider .dl-caption.medium {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-brand-secondary-light);
  margin-bottom: 20px;
}

.dl-slider .dl-caption.big {
  font-size: 65px;
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
  font-family: var(--font-playfair), serif;
  margin-bottom: 25px;
  opacity: 0;
}

.slick-active .dl-caption.big {
  opacity: 1;
}

/* Staggered Typewriter Character Animations */
.dl-caption.big .char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.01s linear;
  transition-delay: calc(var(--char-index) * 0.05s + 0.6s);
  /* base delay of 0.6s, 50ms stagger per char */
}

.slick-active .dl-caption.big .char {
  opacity: 1;
}

/* Instantly reset transitions when slide becomes inactive to avoid animation overlap */
.slick-slide:not(.slick-active) .char {
  transition: none !important;
  opacity: 0;
}

.dl-slider .dl-caption.small {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin-bottom: 35px;
}

.dl-slider .dl-btn-group {
  display: flex;
  gap: 15px;
}

@media only screen and (max-width: 992px) {
  .slider-content-wrap {
    height: 500px;
  }

  .dl-slider .dl-caption.medium {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .dl-slider .dl-caption.big {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .dl-slider .dl-caption.small {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .dl-slider .slick-arrow {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
  }
}

/* Entry Animations & Helper Classes */
.animated {
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

.fade-in-right {
  -webkit-animation: fade-in-right 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation: fade-in-right 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@-webkit-keyframes fade-in-right {
  0% {
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-right {
  0% {
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in-left {
  -webkit-animation: fade-in-left 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation: fade-in-left 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@-webkit-keyframes fade-in-left {
  0% {
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-left {
  0% {
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

/* Ken Burns Background Animations */
.dl-slider .slick-current.slick-active .kenburns-top-right {
  -webkit-animation: kenburns-top-right 10s ease-out both;
  animation: kenburns-top-right 10s ease-out both;
  animation-delay: 0.1s;
}

@-webkit-keyframes kenburns-top-right {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 84% 16%;
    transform-origin: 84% 16%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(20px, -15px);
    transform: scale(1.1) translate(20px, -15px);
    -webkit-transform-origin: right top;
    transform-origin: right top;
  }
}

@keyframes kenburns-top-right {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 84% 16%;
    transform-origin: 84% 16%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(20px, -15px);
    transform: scale(1.1) translate(20px, -15px);
    -webkit-transform-origin: right top;
    transform-origin: right top;
  }
}

.dl-slider .slick-current.slick-active .kenburns-bottom-left {
  -webkit-animation: kenburns-bottom-left 10s ease-out both;
  animation: kenburns-bottom-left 10s ease-out both;
  animation-delay: 0.1s;
}

@-webkit-keyframes kenburns-bottom-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 84%;
    transform-origin: 16% 84%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(-20px, 15px);
    transform: scale(1.1) translate(-20px, 15px);
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
  }
}

@keyframes kenburns-bottom-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 84%;
    transform-origin: 16% 84%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(-20px, 15px);
    transform: scale(1.1) translate(-20px, 15px);
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
  }
}

.dl-slider .slick-current.slick-active .kenburns-top-left {
  -webkit-animation: kenburns-top-left 10s ease-out both;
  animation: kenburns-top-left 10s ease-out both;
  animation-delay: 0.1s;
}

@-webkit-keyframes kenburns-top-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 16%;
    transform-origin: 16% 16%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(-20px, -15px);
    transform: scale(1.1) translate(-20px, -15px);
    -webkit-transform-origin: top left;
    transform-origin: top left;
  }
}

@keyframes kenburns-top-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 16%;
    transform-origin: 16% 16%;
  }

  100% {
    -webkit-transform: scale(1.1) translate(-20px, -15px);
    transform: scale(1.1) translate(-20px, -15px);
    -webkit-transform-origin: top left;
    transform-origin: top left;
  }
}

/* Universal Scroll Reveal Animation System */
.scroll-reveal {
  opacity: 0 !important;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-reveal.reveal-up {
  transform: translateY(24px);
}

.scroll-reveal.reveal-down {
  transform: translateY(-24px);
}

.scroll-reveal.reveal-left {
  transform: translateX(30px);
}

.scroll-reveal.reveal-right {
  transform: translateX(-30px);
}

.scroll-reveal.reveal-scale {
  transform: scale(0.96);
}

.scroll-reveal.reveal-fade {
  transform: none;
}

.scroll-reveal.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1);
}

/* Before & After Cards - Curly Zigzag Line Animation & Premium Hover Effects */
.ba-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  will-change: transform, box-shadow;
}

.ba-card:hover,
.ba-card.active {
  transform: translateY(-4px);
  border-color: var(--color-brand-gold) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.ba-card.after-card:hover,
.ba-card.after-card.active {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.ba-zigzag-line {
  display: block;
  width: 70px;
  height: 8px;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--color-brand-gold);
  overflow: visible;
}

.ba-zigzag-line path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On hover or active, re-draw the zigzag path */
.ba-card:hover .ba-zigzag-line path,
.ba-card.active .ba-zigzag-line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger animation class */
.ba-card.reveal-zigzag .ba-zigzag-line path {
  animation: drawZigzagLine 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawZigzagLine {
  0% {
    stroke-dashoffset: 120;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Card Border Line Tracing */
.card-border-line {
  position: absolute;
  background-color: var(--color-brand-gold);
  z-index: 10;
  pointer-events: none;
}

.cb-top {
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
}

.cb-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
}

.cb-bottom {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
}

.cb-left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
}

/* Triggered drawing when card is revealed */
.ba-card.reveal-zigzag .cb-top {
  animation: drawCardTop 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.1s;
}

.ba-card.reveal-zigzag .cb-right {
  animation: drawCardRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.7s;
}

.ba-card.reveal-zigzag .cb-bottom {
  animation: drawCardBottom 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 1.2s;
}

.ba-card.reveal-zigzag .cb-left {
  animation: drawCardLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 1.8s;
}

/* Re-trigger / redraw on hover or active */
.ba-card:hover .cb-top,
.ba-card.active .cb-top {
  animation: drawCardTop 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ba-card:hover .cb-right,
.ba-card.active .cb-right {
  animation: drawCardRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

.ba-card:hover .cb-bottom,
.ba-card.active .cb-bottom {
  animation: drawCardBottom 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.75s;
}

.ba-card:hover .cb-left,
.ba-card.active .cb-left {
  animation: drawCardLeft 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 1.15s;
}

@keyframes drawCardTop {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes drawCardRight {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

@keyframes drawCardBottom {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes drawCardLeft {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

/* Premium Advanced Dropdown Menu Reveal & Cascade Animations */
#main-navbar .group {
  perspective: 1200px !important;
}

/* Base State: Clean, lightweight hardware-accelerated start */
#main-navbar .group>div.absolute {
  transform-origin: top center !important;
  transform: translateX(-50%) scale(0.96) translateY(12px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
  will-change: transform, opacity;
}

/* Materialized State: Buttery smooth slide down and scale up */
#main-navbar .group.show-dropdown>div.absolute {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) scale(1) translateY(0) !important;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.35), 0 0 25px 2px rgba(71, 27, 148, 0.15) !important;
}

/* Expanding top golden border line */
#main-navbar .group>div.absolute::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-brand-gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

#main-navbar .group.show-dropdown>div.absolute::before {
  transform: scaleX(1);
}

/* Dropdown Menu Item Slide-in & Hover Border Drawing */
#main-navbar a[href^="service-"] {
  position: relative;
  overflow: hidden;
  opacity: 0 !important;
  transform: translateY(12px) scale(0.98) !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease !important;
  will-change: transform, opacity;
}

#main-navbar a[href^="service-"] span.font-semibold {
  font-size: 0.875rem !important;
}

#main-navbar a[href^="service-"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-brand-gold);
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

#main-navbar a[href^="service-"]:hover {
  padding-left: 1.75rem !important;
  background-color: rgba(71, 27, 148, 0.05) !important;
}

#main-navbar a[href^="service-"]:hover::before {
  transform: scaleY(1);
  transform-origin: top center;
}

/* Staggered entrance cascades for items when dropdown opens */
#main-navbar .group.show-dropdown a[href^="service-"] {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(1) {
  transition-delay: 0.04s !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(2) {
  transition-delay: 0.08s !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(3) {
  transition-delay: 0.12s !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(4) {
  transition-delay: 0.16s !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(5) {
  transition-delay: 0.20s !important;
}

#main-navbar .group.show-dropdown a[href^="service-"]:nth-child(6) {
  transition-delay: 0.24s !important;
}

/* Thanos snap dust particle coalescence for dropdown item letters - optimized for smoothness */
#main-navbar a[href^="service-"] .write-char {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--random-x), var(--random-y)) scale(var(--random-scale));
  color: var(--color-brand-gold) !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
  transition-delay: 0s !important;
  will-change: transform, opacity;
}

/* Coalesced materialized state of letters */
#main-navbar .group.show-dropdown a[href^="service-"] .write-char {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  color: inherit !important;
  transition-delay: var(--letter-delay) !important;
}

/* Micro-animated elastic chevron rotation */
#main-navbar .fa-chevron-down {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#main-navbar .group.show-dropdown .fa-chevron-down {
  transform: rotate(180deg) !important;
}

/* Premium Lightbox Zoom Transition Animations */
#lightbox-modal {
  transition: opacity 1.2s cubic-bezier(0.3, 0, 0.8, 0.15) !important;
}

#lightbox-modal:not(.pointer-events-none) {
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#lightbox-content {
  transform: scale(1.1) translate(-80px, -60px) rotate(-8deg) !important;
  filter: blur(40px) !important;
  opacity: 0 !important;
  transition: transform 1.25s cubic-bezier(0.3, 0, 0.8, 0.15),
    filter 1.25s cubic-bezier(0.3, 0, 0.8, 0.15),
    opacity 1.25s cubic-bezier(0.3, 0, 0.8, 0.15) !important;
  will-change: transform, filter, opacity;
}

#lightbox-content.show-content {
  transform: scale(1) translate(0, 0) rotate(0deg) !important;
  filter: blur(0px) !important;
  opacity: 1 !important;
  transition: transform 1.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Slower filter transitions for portfolio items */
.portfolio-item {
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), transform 1.0s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Lightbox inner content sand-blowing change transitions */
#lightbox-img,
#lightbox-category,
#lightbox-title {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, filter, opacity;
}

#lightbox-content.nav-changing-out #lightbox-img,
#lightbox-content.nav-changing-out #lightbox-category,
#lightbox-content.nav-changing-out #lightbox-title {
  opacity: 0 !important;
  filter: blur(30px) !important;
  transform: var(--nav-transform-out, scale(1.08) translate(-60px, -30px) rotate(-4deg)) !important;
  transition: transform 0.5s cubic-bezier(0.3, 0, 0.8, 0.15),
    filter 0.5s cubic-bezier(0.3, 0, 0.8, 0.15),
    opacity 0.5s cubic-bezier(0.3, 0, 0.8, 0.15) !important;
}

#lightbox-content.nav-changing-in #lightbox-img,
#lightbox-content.nav-changing-in #lightbox-category,
#lightbox-content.nav-changing-in #lightbox-title {
  opacity: 0 !important;
  filter: blur(30px) !important;
  transform: var(--nav-transform-in, scale(1.08) translate(60px, 30px) rotate(4deg)) !important;
  transition: none !important;
}

/* Custom Parallax & Advanced 3D Tilt Transitions */
.parallax-bg {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  will-change: transform;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card,
.portfolio-item,
.ba-card {
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease;
}

.service-card:hover,
.portfolio-item:hover,
.ba-card:hover {
  border-color: var(--color-brand-gold);
}

/* Make sure that inner interactive elements inside tilted cards scale/translate smoothly */
.service-card img,
.portfolio-item img {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Dynamic theme swapping for dark contexts */
.bg-brand-charcoal-dark,
.bg-brand-charcoal,
.bg-brand-charcoal-light,
.bg-brand-charcoal-lighter,
.page-header,
.dl-slider {
    --color-brand-gold: var(--color-brand-secondary-light) !important;
}

/* Fallbacks to guarantee visibility */
.bg-brand-charcoal-dark .text-brand-gold,
.bg-brand-charcoal .text-brand-gold,
.bg-brand-charcoal-light .text-brand-gold,
.bg-brand-charcoal-lighter .text-brand-gold,
.page-header .text-brand-gold,
.dl-slider .text-brand-gold {
    color: var(--color-brand-secondary-light) !important;
}

.bg-brand-charcoal-dark .dl-caption.medium,
.bg-brand-charcoal .dl-caption.medium,
.page-header .dl-caption.medium,
.dl-slider .dl-caption.medium {
    color: var(--color-brand-secondary-light) !important;
}