:root {
  --primary-bg: #002FA7;
  --secondary-bg: #002FA7;
  --accent-cyan: #ffffff;
  --accent-light-blue: #d4effd;
  --accent-deep-blue: #00a3ed;
  --text-white: #ffffff;
  --text-grey: #a0aec0;
  --font-heading: 'Overpass', sans-serif;
  --font-accent: 'Gilda Display', serif;
  --font-body: 'Palanquin Dark', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-b2b-section {
  background-color: var(--primary-bg);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.landing-b2b-section h1,
.landing-b2b-section h2,
.landing-b2b-section h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
}

.landing-b2b-section .highlight {
  color: var(--accent-cyan);
}

/* Navbar (Simplified for Shopify Section) */
.landing-b2b-section .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1vw 2vw;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  transition: var(--transition-smooth);
}

.landing-b2b-section .navbar__container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-b2b-section .navbar__logo img {
  height: 40px;
}

/* Hero Section */
.landing-b2b-section .hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg, #002FA7);
}

.landing-b2b-section .hero__wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.landing-b2b-section .hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(110, 207, 246, 0.1) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.landing-b2b-section .hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4vw;
}

.landing-b2b-section .hero__content-column {
  flex: 1;
  min-width: 300px;
}

.landing-b2b-section .hero__graphic,
.aenergy-sphere-widget .hero__graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 300px;
  overflow: visible;
}

.landing-b2b-section .hero__cell-canvas-container,
.aenergy-sphere-widget .hero__cell-canvas-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 600px;
  filter: drop-shadow(0 0 30px rgba(110, 207, 246, 0.2)) blur(0px);
}

.landing-b2b-section .hero__cell-canvas-container canvas,
.aenergy-sphere-widget .hero__cell-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.landing-b2b-section .hero__glow,
.aenergy-sphere-widget .hero__glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(110, 207, 246, 0.2) 0%, transparent 70%);
  z-index: -1;
}

.aenergy-sphere-widget .hero__center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.aenergy-sphere-widget .hero__center-image img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.aenergy-wave-enabled {
  position: relative;
  isolation: isolate;
}

/* Tech Intro */
.landing-b2b-section .tech-intro {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 5svw 8svw;
  background-color: var(--primary-bg);
  color: var(--text-white);
}

.landing-b2b-section .tech-intro.section-fade.section-active {
  height: auto;
  min-height: 100svh;
}

.landing-b2b-section .tech-intro__container {
  max-width: 1300px;
  margin: 0 auto;
}

.landing-b2b-section .tech-intro__title {
  font-size: 3vw;
  margin-bottom: 5vw;
  text-align: center;
}

.landing-b2b-section .tech-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2vw;
  align-items: center;
}

.landing-b2b-section .tech-intro__video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.landing-b2b-section .tech-intro__video-wrap iframe {
  width: 100%;
  height: 100%;
}

.landing-b2b-section .tech-intro__content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
}

/* Testimonials */
[id^="AenergyTestimonials-"] {
  height: 100%;
}

[id^="AenergyTestimonials-"] .testimonials {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--primary-bg);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

[id^="AenergyTestimonials-"] .testimonials__container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3vw;
  box-sizing: border-box;
}

[id^="AenergyTestimonials-"] .testimonials__slider {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[id^="AenergyTestimonials-"] .testimonials__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[id^="AenergyTestimonials-"] .testimonials__slide {
  min-width: 100%;
  padding: 2vw;
  display: flex;
  align-items: center;
  opacity: 0.3;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

[id^="AenergyTestimonials-"] .testimonials__slide.active {
  opacity: 1;
  transform: scale(1);
}

[id^="AenergyTestimonials-"] .testimonials__card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4vw;
  border-radius: 30px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

[id^="AenergyTestimonials-"] .testimonials__quote {
  font-family: var(--font-accent);
  font-size: 1.8vw;
  line-height: 1.4;
  margin-bottom: 2vw;
  font-style: italic;
}

[id^="AenergyTestimonials-"] .testimonials__author strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

[id^="AenergyTestimonials-"] .testimonials__author span {
  font-size: 0.9rem;
  color: var(--text-grey);
}

[id^="AenergyTestimonials-"] .testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-top: 2vw;
}

[id^="AenergyTestimonials-"] .testimonials__arrow {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

[id^="AenergyTestimonials-"] .testimonials__arrow:hover {
  background: white;
  color: var(--primary-bg);
}

[id^="AenergyTestimonials-"] .testimonials__dots {
  display: flex;
  gap: 10px;
}

[id^="AenergyTestimonials-"] .testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

[id^="AenergyTestimonials-"] .testimonials__dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

/* Footer */
.landing-b2b-section .footer {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  overflow: hidden;
  isolation: isolate;
  background: var(--footer-bg, #002FA7);
}

.landing-b2b-section .footer__wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.landing-b2b-section .footer__container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10vw 0 4vw;
}

.landing-b2b-section .footer__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing-b2b-section .footer__title {
  font-size: 3.5vw;
  margin-bottom: 3vw;
  text-align: center;
}

.landing-b2b-section .footer__actions {
  margin-bottom: 4vw;
}

.landing-b2b-section .footer__bottom {
  width: 100%;
}

.landing-b2b-section .footer__hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2vw;
}

.landing-b2b-section .footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-grey);
}

/* Section Fade Logic */
.landing-b2b-section .section-fade {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-b2b-section .section-active {
  opacity: 1;
}

/* Prevent section-fade from hiding content inside the Elementor editor preview */
.elementor-editor-active .section-fade {
  opacity: 1 !important;
}

.landing-b2b-section .hero.section-active {
  background-color: var(--hero-bg, #002FA7);
}

/* ============================================
   Aenergy Menu Widget
   ============================================ */

.aenergy-menu-container {
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* Desktop Menu */
.aenergy-menu__desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4vw;
}

.aenergy-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2.5vw;
}

.aenergy-menu__list--left {
  justify-content: flex-end;
}

.aenergy-menu__list--right {
  justify-content: flex-start;
}

.aenergy-menu__item {
  margin: 0;
}

.aenergy-menu__link {
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;
}

.aenergy-menu__link:hover {
  color: #6ecff6;
}

.aenergy-menu__item.current-menu-item > .aenergy-menu__link {
  border-bottom-color: #6ecff6;
  color: #6ecff6;
}

.aenergy-menu__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aenergy-menu__logo img {
  max-height: 80px;
  width: auto;
  display: block;
}

/* Mobile Menu */
.aenergy-menu__mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.aenergy-menu__mobile-spacer,
.aenergy-menu__toggle-wrapper {
  flex: 1;
}

.aenergy-menu__toggle-wrapper {
  display: flex;
  justify-content: flex-end;
}

.aenergy-menu__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.aenergy-menu__toggle-icon {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background 0.3s ease;
}

.aenergy-menu__toggle-icon::before,
.aenergy-menu__toggle-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: transform 0.3s ease;
}

.aenergy-menu__toggle-icon::before { top: -8px; }
.aenergy-menu__toggle-icon::after { bottom: -8px; }

/* Mobile Overlay */
.aenergy-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 47, 167, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              visibility 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10000;
}

.aenergy-menu__overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.aenergy-menu__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.aenergy-menu__close:hover {
  color: #6ecff6;
}

.aenergy-menu__mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aenergy-menu__mobile-list .aenergy-menu__item {
  margin: 24px 0;
}

.aenergy-menu__mobile-list .aenergy-menu__link {
  font-size: 24px;
  text-align: center;
  color: #ffffff;
}

.aenergy-menu__mobile-list .aenergy-menu__item.current-menu-item > .aenergy-menu__link {
  border-bottom-color: #6ecff6;
  color: #6ecff6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .aenergy-menu__desktop {
    display: none;
  }

  .aenergy-menu__mobile {
    display: flex;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .landing-b2b-section .hero__container,
  .landing-b2b-section .tech-intro__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-b2b-section .hero__graphic {
    justify-content: center;
  }

  .landing-b2b-section .hero__cell-canvas-container {
    max-width: 400px;
    height: 400px;
  }

  .landing-b2b-section .hero__title {
    font-size: 8vw;
  }

  .landing-b2b-section .hero__subtitle {
    font-size: 3vw;
    margin: 0 auto 5vw;
  }

  .landing-b2b-section .tech-intro__title {
    font-size: 6vw;
  }

  [id^="AenergyTestimonials-"] .testimonials__quote {
    font-size: 4vw;
  }
}

/* ============================================
   Aenergy Scroll Animations Utilities
   ============================================ */

/*
 * Sub-item Animation Data Attributes:
 *
 * data-stagger-order="N" - Set custom animation order (1, 2, 3...)
 *                         Elements are sorted by this value before animation
 * data-stagger-delay="150" - Override the default sub-item delay for this element
 * class="aenergy-scroll-skip" - Skip this element from sub-item animation
 *
 * Example usage in Elementor:
 * <div data-stagger-order="1">Animates first</div>
 * <div data-stagger-order="3">Animates third</div>
 * <div data-stagger-order="2">Animates second</div>
 */

/* Skip animation for specific children */
.aenergy-scroll-skip {
  visibility: visible !important;
}

/* Animation duration utilities */
.aenergy-duration-fast { --aenergy-animation-duration: 400ms !important; }
.aenergy-duration-normal { --aenergy-animation-duration: 800ms !important; }
.aenergy-duration-slow { --aenergy-animation-duration: 1200ms !important; }

/* Disable animation (useful for reduced motion preference) */
@media (prefers-reduced-motion: reduce) {
  .aenergy-scroll-animated {
    visibility: visible !important;
  }

  .aenergy-scroll-animated::before {
    display: none !important;
  }

  .aenergy-animation-active {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
