/* Custom CSS to override accent colors with #FFB400 */
:root {
  --accent--light: #FFB400;
  --accent-rgb--light: 255, 180, 0;
  --accent--dark: #FFB400;
  --accent-rgb--dark: 255, 180, 0;
  --accent: #FFB400;
  --t-opp-bright: #000000;
  --additional: #FFB400;
  --additional-rgb: 255, 180, 0;
}

/* Text selection color */
::selection {
  background-color: var(--accent);
  color: #000000;
}

::-moz-selection {
  background-color: var(--accent);
  color: #000000;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e6a200;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #f1f1f1;
}

/* Slider track and thumb colors */
input[type="range"]::-webkit-slider-thumb {
  background-color: var(--accent);
}

input[type="range"]::-moz-range-thumb {
  background-color: var(--accent);
}

input[type="range"]::-webkit-slider-runnable-track {
  background-color: var(--accent);
}

input[type="range"]::-moz-range-track {
  background-color: var(--accent);
}

/* Form elements */
input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.2);
}

/* Swiper slider navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent) !important;
}

/* Swiper slider pagination */
.swiper-pagination-bullet-active {
  background-color: var(--accent) !important;
}

.swiper-pagination-progressbar-fill {
  background-color: var(--accent) !important;
}

/* Ensure all elements using accent color are updated */
/* Target specific elements that should use the accent color, avoiding navigation and specified sections */
.hero-05-title__item svg,
[class*="accent"].btn:not(.main-menu__link):not(.mxd-promo__title),
[class*="accent"].tag:not(.main-menu__link),
[class*="base"].btn:not(.main-menu__link),
[class*="base"].tag:not(.main-menu__link),
[class*="additional"].btn:not(.main-menu__link),
[class*="additional"].tag:not(.main-menu__link) {
  /* background-color: var(--accent) !important; */
}


/* Hamburger menu lines - make them white in light mode */
:root[color-scheme="light"] .hamburger__line {
  background-color: #ffffff;
}

/* Hamburger base - make it black in light mode */
:root[color-scheme="light"] .hamburger__base {
  background-color: #000000;
}

/* Navigation links - make them white in light mode */
:root[color-scheme="light"] .main-menu__link .btn-caption {
  color: #ffffff;
}

/* CTA section text - make it white in light mode */
:root[color-scheme="light"] .mxd-promo__caption {
  color: #ffffff;
}

/* Ensure menu animations work properly */
.mxd-menu__wrapper {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mxd-menu__base {
  transition: opacity 0.3s ease;
}

/* Exclude the footer text wrap and marquee SVG backgrounds */
.mxd-footer__text-wrap .mxd-footer__fullwidth-text,
.marquee__image svg {
  background-color: inherit !important;
}

/* Specifically target only the hero section SVGs */
.hero-05-title__item .mxd-pulse {
  color: var(--accent) !important;
}

/* Update any buttons or links that use accent colors */
.btn-accent,
.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-accent:hover,
.btn-primary:hover {
  background-color: #e6a200 !important;
  border-color: #e6a200 !important;
}

/* Update any text that uses accent colors */
.text-accent,
.text-primary {
  color: var(--accent) !important;
}

/* Dark overlay effect for case studies images - Working with parallax */
.mxd-project-item__preview-wrapper {
  position: relative !important;
  min-height: 300px !important; /* Ensure the preview has a minimum height */
}

/* New overlay element - this will be our primary overlay */
.mxd-project-item__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important; /* Dark overlay with 50% opacity */
  transition: opacity 0.3s ease !important;
  z-index: 1000 !important; /* High z-index to ensure it's above the parallax element */
  pointer-events: none !important;
  border-radius: 50px;
}

.mxd-project-item:hover .mxd-project-item__overlay {
  opacity: 0 !important; /* Fade out overlay on hover */
}

/* Ensure tags and other content are visible above the overlay */
.mxd-project-item__tags {
  position: absolute !important;
  z-index: 1001 !important; /* Higher than overlay */
  top: 20px !important;
  left: 20px !important;
}

.mxd-project-item__promo {
  position: relative !important;
  z-index: 1001 !important; /* Higher than overlay */
}

/* Fix for parallax library interference */
.ukiyo-wrapper {
  z-index: 1 !important;
}

/* Additional styles for footer counter */
.footer-nav__counter {
  background-color: var(--accent) !important;
}

/* Logo text color */
.mxd-logo__text span:last-child {
  color: var(--accent) !important;
}

/* SVG color */
.mxd-pulse {
  color: var(--accent) !important;
}

/* Equal height footer columns */
.mxd-footer__footer-blocks {
  display: flex;
  flex-wrap: wrap;
}

.footer-blocks__column {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
}

.footer-blocks__card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-blocks__card.fullheight-card {
  flex: 1;
}

/* Ensure the subscription form area doesn't overflow */
.fill-card.notify {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notify-form {
  display: flex;
  align-items: center;
}

.notify-form input[type="email"] {
  flex: 1;
  margin-right: 10px;
}