:root {
  --btn-1-half-bg-color: rgba(255, 255, 255, 0.25);
  --btn-2-half-bg-color: #c7700d;
  --slide-in-out-duration: 6s;
  --slide-in-out-offset: 20px;
  --main-title-animation-duration: 8s;
  --glowing-blur-dugree: 220px;
  --glowing-scale-time-function: ease-in-out;
  --glowing-scale-time-duration: 5s;
}

body {
  overflow-x: hidden !important;
}

.inside-header,
.glessy-blur-eff {
  backdrop-filter: blur(17px);
}

.glessy-blur-eff-two {
  filter: blur(2px);
}

.glessy-blur-eff-three {
  filter: blur(8px);
}

.relative {
  position: relative;
}

.exp-section:before {
  z-index: 2;
}

nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  position: absolute;
  right: 0;
  top: 50px;
  width: 200px;
  z-index: 10;
  width: 220px;
  box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.3);
}

header {
  position: absolute;
  z-index: 10;
  width: 100%;
  top: 0;
}

header.is-fixed {
  position: fixed;
}

.btn-half-bg .elementor-button {
  background-color: transparent !important;
  overflow: hidden;
}

.elementor-button-wrapper {
  position: relative;
  z-index: 99;
  display: flex;
}

.btn-half-bg .elementor-widget-container::after {
  content: "";
  height: 100% !important;
  width: 35% !important;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1 !important;
}

.elementor-widget-container {
  z-index: 3 !important;
}

.btn-1-half-bg .elementor-widget-container::after {
  background-color: var(--btn-1-half-bg-color);
}

.btn-2-half-bg .elementor-widget-container::after {
  background-color: var(--btn-2-half-bg-color);
}

.btn-half-bg .elementor-widget-container .elementor-button-icon {
  margin-left: 5px;
  transition: all 0.3s ease-in-out;
}

.btn-half-bg .elementor-widget-container:hover::after {
  width: 55% !important;
}

.btn-half-bg .elementor-widget-container:hover .elementor-button-icon {
  margin-left: 10px;
}

.main-img.img-anime {
  /* animation: slide-in-out var(--slide-in-out-duration) linear infinite; */
}

.sec-img.img-anime {
  animation: slide-in-out-sec var(--slide-in-out-duration) linear infinite;
  /* filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1%) hue-rotate(84deg) brightness(102%) contrast(101%); */
}

@keyframes slide-in-out {
  0% {
    transform: translateX(calc(-50% + var(--slide-in-out-offset)));
  }

  50% {
    transform: translateX(calc(-50% - var(--slide-in-out-offset)));
  }

  100% {
    transform: translateX(calc(-50% + var(--slide-in-out-offset)));
  }
}

@keyframes slide-in-out-sec {
  0% {
    transform: translateX(calc(-1 * var(--slide-in-out-offset)));
  }

  50% {
    transform: translateX(var(--slide-in-out-offset));
  }

  100% {
    transform: translateX(calc(-1 * var(--slide-in-out-offset)));
  }
}

.main-title {
  position: relative;
  overflow: hidden;
}

.main-title .elementor-heading-title span {
  animation: in-out var(--main-title-animation-duration) ease-in-out infinite;
  display: inline-block;
}

.img-anime.sec-img > img {
  filter: drop-shadow(2px 30px 6px rgba(0, 0, 0, 0.4)) !important;
}

.neon-light::before {
  animation: glow var(--glowing-scale-time-duration)
    var(--glowing-scale-time-function) infinite;
  filter: blur(var(--glowing-blur-dugree));
  transform-origin: center center;
}

@keyframes in-out {
  0%,
  40%,
  70%,
  100% {
    transform: translateY(0%);
  }
  50%,
  60% {
    transform: translateY(110%);
  }
}

@keyframes rotation-reverse {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: -360deg;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 880px) {
  .remove-absolute {
    position: relative !important;
    inset: 0 !important;
  }

  .sec-img.img-anime {
    animation-play-state: paused;
    transform: translateX(0) !important;
  }
}

/***************************/

.portfolio-showcase {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  z-index: 10;
}

.portfolio-card {
  background: var(--e-global-color-ebc92f3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.portfolio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(49, 220, 130, 0.45);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(30, 140, 255, 0.13);
}

.portfolio-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.05);
}

.portfolio-card__content {
  padding: 18px 6px 4px;
}

.portfolio-card__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  color: #ffffff;
  font-weight: 800;
}

.portfolio-card__description {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.portfolio-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(30, 140, 255, 0.15);
  color: #3fb2ff;
  font-size: 13px;
  font-weight: 700;
}

.portfolio-card__tags span:nth-child(2) {
  background: rgba(49, 220, 130, 0.13);
  color: #31dc82;
}

.portfolio-card__tags span:nth-child(3) {
  background: rgba(155, 92, 255, 0.15);
  color: #b187ff;
}

.portfolio-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.portfolio-card__actions a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-card__actions a:first-child {
  color: #2fa7ff;
}

.portfolio-card__actions a:last-child {
  color: #31dc82;
}

.portfolio-card__actions a:hover {
  transform: translateX(3px);
  opacity: 0.85;
}

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/*********************/

/* Accordion container */
.elementor-element-7223269 .e-n-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ item */
.elementor-element-7223269 .e-n-accordion-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none !important;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    backdrop-filter 0.28s ease;
}

/* Clean gradient border layer */
.elementor-element-7223269 .e-n-accordion-item::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0.08) 35%,
    rgba(0, 153, 255, 0.32) 70%,
    rgba(255, 255, 255, 0.12)
  );
  pointer-events: none;
  opacity: 0.45;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  transition: opacity 0.28s ease;
}

/* Hover item */
.elementor-element-7223269 .e-n-accordion-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.095),
    rgba(255, 255, 255, 0.035)
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Open item */
.elementor-element-7223269 .e-n-accordion-item[open] {
  border-color: rgba(0, 153, 255, 0.42);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.105),
    rgba(0, 153, 255, 0.045)
  );
}

.elementor-element-7223269 .e-n-accordion-item:hover::after,
.elementor-element-7223269 .e-n-accordion-item[open]::after {
  opacity: 0.85;
}

/* Remove old blue accent line */
.elementor-element-7223269 .e-n-accordion-item::before {
  content: none !important;
}

/* Question row */
.elementor-element-7223269 .e-n-accordion-item-title {
  position: relative;
  z-index: 1;
  padding: 24px 26px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.elementor-widget-n-accordion .e-n-accordion-item-title-icon {
  justify-content: center;
}

/* Remove default marker */
.elementor-element-7223269 summary::-webkit-details-marker {
  display: none;
}

/* Question text */
.elementor-element-7223269 .e-n-accordion-item-title-text {
  color: #ffffff;
}

/* Icon wrapper */
.elementor-element-7223269 .e-n-accordion-item-title-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  /* border: 1px solid rgba(255, 255, 255, 0.16); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none !important;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

/* Icon hover/open: keep it white, no blue */
/* .elementor-element-7223269 .e-n-accordion-item:hover .e-n-accordion-item-title-icon,
.elementor-element-7223269 .e-n-accordion-item[open] .e-n-accordion-item-title-icon {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
} */

/* SVG icon stays white */
.elementor-element-7223269 .e-n-accordion-item-title-icon svg {
  width: 14px;
  height: 14px;
  fill: #ffffff !important;
  margin: 0 auto;
}

/* Divider before answer */
.elementor-element-7223269
  .e-n-accordion-item[open]
  > div[role="region"]::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

/* Answer text */
.elementor-element-7223269 .e-n-accordion-item p {
  margin: 0;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.8;
  font-weight: 400;
}

/* Accessibility focus */
.elementor-element-7223269 .e-n-accordion-item-title:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Remove all default shadows inside FAQ */
.elementor-element-7223269 *,
.elementor-element-7223269 *::before,
.elementor-element-7223269 *::after {
  box-shadow: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .elementor-element-7223269 .e-n-accordion {
    gap: 12px;
  }

  .elementor-element-7223269 .e-n-accordion-item {
    border-radius: 16px;
  }

  .elementor-element-7223269 .e-n-accordion-item-title {
    padding: 20px 18px !important;
    gap: 14px;
  }

  .elementor-element-7223269 .e-n-accordion-item-title-text {
    font-size: 15.5px;
    line-height: 1.45;
  }

  .elementor-element-7223269 .e-n-accordion-item-title-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .elementor-element-7223269 .e-n-accordion-item > div[role="region"] {
    padding: 0 18px 22px !important;
  }

  .elementor-element-7223269 .e-n-accordion-item p {
    font-size: 14.5px;
    line-height: 1.75;
  }
}

/**************/

/***********************/

/* FAQ columns must begin from the top */
#faq > .e-con-inner {
  align-items: flex-start;
  overflow: visible;
}

/* Keep the title, description and image visible while questions scroll */
#faq .elementor-element-ad01889 {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
  z-index: 2;
}

/* Prevent Elementor containers from breaking position: sticky */
#faq,
#faq > .e-con-inner,
#faq .elementor-element-ad01889 {
  overflow: visible;
}

/* Disable sticky layout on tablet and mobile */
@media (max-width: 1024px) {
  #faq .elementor-element-ad01889 {
    position: relative;
    top: auto;
  }
}

/*************************/

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
/*   .portfolio-showcase {
    padding: 10px 15px 50px;
  } */

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

/*   .portfolio-card__actions {
    align-items: flex-start;
    flex-direction: column;
  } */
}
