<template>
  <div class="water-resource-content">
    <div class="left-column">
      <div class="left-column-3d">
        <div class="module-card">
          <SystemIntegration />
        </div>
        <div class="module-card">
          <IntegrationEffect />
        </div>
      </div>
    </div>
    <div class="right-column">
      <div class="right-column-3d">
        <div class="module-card full-height">
          <CollaborativeProcess />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import SystemIntegration from "./components/SystemIntegration.vue"
import CollaborativeProcess from "./components/CollaborativeProcess.vue"
import IntegrationEffect from "./components/IntegrationEffect.vue"
import DemonstrationBase from "./components/DemonstrationBase.vue"
</script>

<style lang="scss">
.water-resource-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.left-column {
  position: absolute;
  z-index: 4;
  width: 398px;
  left: 32px;
  top: 150px;
  bottom: 50px;
  perspective: 500px;
  perspective-origin: 50% 50%;
  .left-column-3d {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    transform: translate3d(0px, 0px, 0px) scaleX(1) scaleY(1) rotateX(0deg) rotateY(6deg) rotateZ(0deg) skewX(0deg) skewY(0deg);
    z-index: 4;
  }
  .module-card {
    height: 450px;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(48, 220, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(48, 220, 255, 0.1);
    transform: translateX(-150%);
    opacity: 0;
    &:first-child {
      margin-top: -50px;
    }
  }
}

.right-column {
  position: absolute;
  z-index: 4;
  width: 398px;
  right: 32px;
  top: 150px;
  bottom: 50px;
  perspective: 800px;
  perspective-origin: 50% 50%;
  .right-column-3d {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translate3d(0px, 0px, 0px) scaleX(1) scaleY(1) rotateX(0deg) rotateY(-6deg) rotateZ(0deg) skewX(0deg) skewY(0deg);
  }
  .module-card {
    height: 450px;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(48, 220, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(48, 220, 255, 0.1);
    transform: translateX(150%);
    opacity: 0;
    &:first-child {
      margin-top: -30px;
    }
    &.full-height {
      height: 100%;
      margin-top: -30px;
      display: flex;
      flex-direction: column;
      .m-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        .m-card-bd {
          flex: 1;
        }
      }
    }
  }
}
</style>
