:root {
  --bit-container-padding: clamp(16px, 4vw, 48px);
  --tp-theme-primary: #ff8c42;
  --tp-theme-secondary: #ff8c42;
  --tp-common-green: #ff8c42;
  --tp-common-green-2: #ff8c42;
  --tp-common-green-3: #ff8c42;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #050508;
}

.site-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper > .tp-offcanvas-area,
.site-wrapper > .tp-offcanvas-2-area,
.site-wrapper > header,
.site-wrapper > .body-overlay {
  flex-shrink: 0;
}

.site-wrapper > .site-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.site-content main {
  flex: 1 0 auto;
}

#smooth-wrapper,
#smooth-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#smooth-content > main {
  flex: 1 0 auto;
}

.site-wrapper footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.container-1800,
.container-1824,
.container-1524 {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bit-container-padding);
  padding-right: var(--bit-container-padding);
}

.tp-header-area,
.tp-header-slider-area {
  top: 0;
  left: 0;
  right: 0;
}

.tp-header-logo img,
.tp-offcanvas-logo img {
  height: auto;
  max-width: 150px;
}

.tp-header-area .tp-main-menu > nav > ul > li,
.tp-header-slider-area .tp-header-slider-right {
  margin-inline: 12px;
}

.tp-header-btn .tp-btn-ai {
  padding-inline: 28px;
}

.tp-section-space {
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: clamp(60px, 10vw, 120px);
}

@media (max-width: 767px) {
  .tp-header-area,
  .tp-header-slider-area {
    padding-inline: var(--bit-container-padding);
  }

  .tp-header-area .tp-main-menu,
  .tp-header-slider-area .tp-header-slider-right {
    justify-content: flex-end;
  }

  .tp-header-btn {
    display: none !important;
  }

  .scrollToTop,
  .scrollToTop-3 {
    right: 16px;
    bottom: 16px;
  }
}

/* Hero drone & branding tweaks */
.tp-hero-ai-thumb-text {
  font-size: 50px;
  writing-mode: sideways-rl;
  position: absolute;
  margin-left: 15px;
}

.title-slide-gradient--hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.title-slide-gradient--hero .hero-shape {
  width: clamp(40px, 6vw, 90px);
  height: auto;
  margin-right: 0 !important;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .title-slide-gradient--hero {
    flex-wrap: wrap;
    gap: 8px;
  }
  .title-slide-gradient--about {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.2;
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.2em;
  }
  .tp-about-ai-title--stack {
    justify-content: center;
  }
  .aleric-ai {
    display: none !important;
  }
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .tp-hero-vp-title {
    margin-top: 50px;
    font-size: 380px;
  }
}

.tp-about-me-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-about-me-banner .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .tp-about-me-banner {
    height: auto;
    min-height: 260px;
  }
  .tp-about-me-banner .img-cover {
    min-height: 260px;
  }
}

.tp-perspective-slider .tp-perspective-inner .tp-perspective-image {
  background-position: center center;
  background-repeat: no-repeat;
}

/* Swiper v9+ compatibility for legacy markup */
.swiper-container {
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Linear marquee-like motion for text sliders */
.tp-brand-slide-active .swiper-wrapper,
.tp-text-slider-active .swiper-wrapper,
.tp-text-cst-slide-active .swiper-wrapper,
.tp-text-it-slider-active .swiper-wrapper,
.tp-text-ai-slider-active .swiper-wrapper,
.tp-text-md-slider-active .swiper-wrapper {
  transition-timing-function: linear !important;
}

.tp-text-marquee .swiper-wrapper {
  animation: tpMarquee var(--marquee-duration, 20s) linear infinite;
  will-change: transform;
}

.tp-text-marquee .swiper-slide {
  flex-shrink: 0;
}

@keyframes tpMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-shift, 0px)), 0, 0);
  }
}

/* Force green-styled accents to use the site's orange palette */
.cursor-bg-green #ball,
.cursor-bg-green #ball .ball-view,
.tp-funfact-green-wrap,
.tp-funfact-green-wrap .tp-funfact-number span,
.tp-funfact-green-wrap .tp-funfact-subtitle,
.tp-funfact-green-wrap .tp-funfact-title {
  background-color: var(--tp-theme-primary);
  color: var(--tp-common-white);
}

.tp-funfact-green-wrap.pink-style .tp-funfact-number span,
.tp-funfact-green-wrap.pink-style .tp-funfact-number span i {
  color: var(--tp-theme-primary);
}

.tp-funfact-green-wrap.yellow-style {
  background-color: var(--tp-theme-primary);
}

.tp-funfact-green-wrap.yellow-style .tp-funfact-number span,
.tp-funfact-green-wrap.yellow-style .tp-funfact-subtitle,
.tp-funfact-green-wrap.yellow-style .tp-funfact-title {
  color: var(--tp-common-white);
}

.tp-text-common-green,
.tp-text-common-green-2,
.tp-text-common-green-3 {
  color: var(--tp-theme-primary) !important;
}

.tp-bg-common-green,
.tp-bg-common-green-2,
.tp-bg-common-green-3 {
  background-color: var(--tp-theme-primary) !important;
}

/* Overrides for hard-coded green gradients */
.tp-hero-wd-bottom-title span,
.tp-bg-common-green-2,
.tp-bg-common-green-3 {
  background-image: none !important;
}

/* Match scroll-to-top button to the site's orange palette */
.scrollToTop {
  background-color: var(--tp-common-white);
}

.scrollToTop .arrowUp {
  color: var(--tp-common-black-1);
}

.scrollToTop .water {
  background-color: var(--tp-theme-primary) !important;
  border-color: var(--tp-theme-primary) !important;
}

.scrollToTop .water svg use {
  fill: var(--tp-theme-primary) !important;
}

.scrollToTop .water_wave_back {
  fill: rgba(255, 140, 66, 0.75) !important;
}

.scrollToTop .water_wave_front {
  fill: rgba(255, 140, 66, 0.35) !important;
}

/* About feature panel background uses the same orange as buttons */
.tp-about-feature-info {
  background-color: var(--tp-theme-primary);
}
