/* =========================================
   SHAPING THE WORLD – VIDEO SECTION
   ========================================= */
.section-inner {
  width: 100%;
}
.shaping-section {
  padding: 35px 16px;
  background: url("https://www.avalontec.com/wp-content/uploads/sites/8/2026/images/bg4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* container */
.shaping-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 100px;
}

/* =========================================
   LEFT – VIDEO CARD
   ========================================= */

.shaping-media {
  flex: 1 1 50%;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.22,.61,.36,1),
    transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.shaping-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  padding: 18px;
}

/* layered background panels */
.shaping-layer {
  position: absolute;
  inset: -40px;
  background: linear-gradient(135deg, #f5f6fb, #ffffff);
  border-radius: 40px;
  z-index: 0;
}

.shaping-layer-1 {
  transform: rotate(-6deg);
  opacity: 0.9;
}

.shaping-layer-2 {
  transform: rotate(4deg);
  opacity: 0.8;
}

/* video wrapper */
.shaping-video-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.shaping-video {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================
   RIGHT – CONTENT
   ========================================= */

.shaping-content {
  flex: 1 1 50%;
  text-align: center;
}

.shaping-title {
  font-size: 34px;
  line-height: 1.2;
  color: #15438e !important;
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.22,.61,.36,1),
    transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: .12s;
  will-change: opacity, transform;
}

/* CTA button */
/* a BUTTON EFFECT COMMON) */


.av-btn{
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 23px;
    margin: 10px;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: .4px;
    background: linear-gradient(90deg, rgba(242, 7, 7, 1) 0%, rgba(20, 6, 184, 1) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15,23,42,.35);
    transition:
      transform .45s cubic-bezier(.4,0,.2,1),
      box-shadow .45s ease,
      color .3s ease;
    transform: translateZ(0);
  }

  /* Keep text always on top */
  .av-btn > span{
    position: relative;
    z-index: 3;
  }

  /* Pseudo layers (must be positioned for z-index to work) */
  .av-btn::before,
  .av-btn::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
  }

  /* FLOWING GRADIENT LAYER (behind text) */
  .av-btn::before{
    inset:-120%;
    background: linear-gradient(120deg,
      #15438e,
      #e53935,
      #15438e,
      #0c274f
    );
    background-size: 300% 300%;
    opacity: 0;
    z-index: 1;
    transition: opacity .35s ease;
  }

  /* RIPPLE LAYER (above flow, still behind text) */
  .av-btn::after{
    background: radial-gradient(circle,
      rgba(255,255,255,.40) 0%,
      rgba(255,255,255,0) 60%);
    opacity: 0;
    transform: scale(.6);
    z-index: 2;
    transition: .35s ease;
  }

  /* HOVER */
  .av-btn:hover{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.75);
    color:#fff;
  }

  .av-btn:hover::before{
    opacity: 1;
    animation: avGradientFlow 2.2s linear infinite;
  }

  .av-btn:hover::after{
    opacity: .6;
    transform: scale(1.4);
  }

  /* GRADIENT ANIMATION */
  @keyframes avGradientFlow{
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }


/* =========================================
   ACTIVE STATE (TRIGGERED BY JS)
   ========================================= */

.shaping-section.is-in .shaping-media,
.shaping-section.is-in .shaping-title,
.shaping-section.is-in .shaping-cta,
.shaping-section.is-in .av-btn {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .shaping-inner {
    flex-direction: column;
    gap: 48px;
  }

.shaping-title {font-size: 28px;}	

	
}

@media screen and (max-width: 932px) and (orientation: landscape) {
	.shaping-media {opacity: 1;}
}


@media screen
  and (orientation: landscape)
  and (max-height: 480px) {
  .shaping-media {opacity: 1;}
	.shaping-title {
    font-size: 28px;
    opacity: 1;
    padding-bottom: 20px;
  }
}



@media (max-width: 640px) {
  .shaping-section {
    padding: 32px 14px;
  }

  .shaping-title {
    font-size: 24px;
  }
}
