/* body {
  background-color: #000;
  color: #00ffff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
} */
section.ecosystem,
section.socialfi {
  padding-top: 20px;
  padding-bottom: 20px; 
}
/* h2 {
  margin-top: 40px;
  font-size: 1.8em;
  color: #00ffff;
} */

.grid {
  /* display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px; */
}


.item {
  background-color: #111;
  border-radius: 10px;
  padding: 20px;
  width: 320px;        /* 👈 cố định chiều rộng */
  height: 270px;       /* 👈 cố định chiều cao */  
  color: #ccc;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* 👈 căn đều nội dung trong ô */
  box-sizing: border-box;
  text-align: center;
}


.item:hover {
  transform: scale(1.05);
}

.item:hover {
  transform: scale(1.05);
}


.item p {
  font-size: 0.95em;
  line-height: 1.4em;  
}
    canvas.particle-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    .particle-container {
      position: relative;
      width: 140px;
      height: 140px;
      margin: auto;
	  margin-bottom: 25px;
    }
    .server-img {
      position: relative;
      width: 100%;
      height: auto;
      z-index: 2;
    }

.image-stack {
  position: relative;
  width: 250px;
  height: 150px;
  margin: 0 auto 20px auto;
}

.base-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
}

.overlay-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;  /* 👈 tuỳ chỉnh kích thước tại đây */
  height: 1ss0px;
  transform: translate(-50%, -50%);  /* 👈 canh giữa hình ảnh */
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
}

.overlay1-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;  /* 👈 tuỳ chỉnh kích thước tại đây */
  height: 200px;
  transform: translate(-50%, -50%);  /* 👈 canh giữa hình ảnh */
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
}

    /* .container {
      position: relative;
      width: 400px;
      height: 300px;
      margin: 50px auto;
    } */

    .cube-image {
      width: 100%;
      position: relative;
      z-index: 1;
    }

    svg {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .light-beam {
      stroke: #00f7ff;
      stroke-width: 2;
      stroke-linecap: round;
      filter: drop-shadow(0 0 4px #00f7ff);
      stroke-dasharray: 0, 100;
      stroke-dashoffset: 0;
      opacity: 0;
      animation: moveBeam linear infinite;
    }

    /* Random animation-duration & delay */
    .light-beam:nth-of-type(1)  { animation-delay: 0s;    animation-duration: 3s; }
    .light-beam:nth-of-type(2)  { animation-delay: 0.2s;  animation-duration: 3.4s; }
    .light-beam:nth-of-type(3)  { animation-delay: 0.4s;  animation-duration: 3.1s; }
    .light-beam:nth-of-type(4)  { animation-delay: 0.6s;  animation-duration: 2.8s; }
    .light-beam:nth-of-type(5)  { animation-delay: 0.8s;  animation-duration: 3.6s; }
    .light-beam:nth-of-type(6)  { animation-delay: 1.0s;  animation-duration: 2.9s; }
    .light-beam:nth-of-type(7)  { animation-delay: 1.2s;  animation-duration: 3.2s; }
    .light-beam:nth-of-type(8)  { animation-delay: 1.4s;  animation-duration: 2.7s; }
    .light-beam:nth-of-type(9)  { animation-delay: 1.6s;  animation-duration: 3.5s; }
    .light-beam:nth-of-type(10) { animation-delay: 1.8s;  animation-duration: 3s; }
    .light-beam:nth-of-type(11) { animation-delay: 2.0s;  animation-duration: 2.6s; }
    .light-beam:nth-of-type(12) { animation-delay: 2.2s;  animation-duration: 3.3s; }
    .light-beam:nth-of-type(13) { animation-delay: 2.4s;  animation-duration: 2.8s; }
    .light-beam:nth-of-type(14) { animation-delay: 2.6s;  animation-duration: 3.1s; }
    .light-beam:nth-of-type(15) { animation-delay: 2.8s;  animation-duration: 3.7s; }
    .light-beam:nth-of-type(16) { animation-delay: 3.0s;  animation-duration: 3.2s; }
    .light-beam:nth-of-type(17) { animation-delay: 3.2s;  animation-duration: 2.9s; }
    .light-beam:nth-of-type(18) { animation-delay: 3.4s;  animation-duration: 2.7s; }
    .light-beam:nth-of-type(19) { animation-delay: 3.6s;  animation-duration: 3.4s; }
    .light-beam:nth-of-type(20) { animation-delay: 3.8s;  animation-duration: 2.6s; }
    .light-beam:nth-of-type(21) { animation-delay: 4.0s;  animation-duration: 3.3s; }
    .light-beam:nth-of-type(22) { animation-delay: 4.2s;  animation-duration: 2.9s; }
    .light-beam:nth-of-type(23) { animation-delay: 4.4s;  animation-duration: 3.5s; }
    .light-beam:nth-of-type(24) { animation-delay: 4.6s;  animation-duration: 3s; }
    .light-beam:nth-of-type(25) { animation-delay: 4.8s;  animation-duration: 2.8s; }
    .light-beam:nth-of-type(26) { animation-delay: 5.0s;  animation-duration: 3.6s; }

    @keyframes moveBeam {
      0%   { stroke-dasharray: 0, 100; stroke-dashoffset: 0; opacity: 0; }
      30%  { opacity: 1; }
      100% { stroke-dasharray: 20, 100; stroke-dashoffset: -100; opacity: 0; }
    }

.scene {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 170px;
  margin: 0 auto;
  overflow: visible;
}

/* Quả cầu ở trên cùng */
.globe {
  position: absolute;
  top: -15px;
  left: 58%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  animation: rotateGlobe 10s linear infinite;
  z-index: 3;
}

/* Building ở trên HUD */
.building {
  position: absolute; 
  left: 55%;
  transform: translateX(-50%);
  width: 150px;
  z-index: 2;
}

/* HUB ở dưới cùng và xoay */
.hub {
  position: absolute;
  bottom: 0;
  left: 55%;
  transform: translateX(-50%);
  width: 400px;
  animation: rotateHub 20s linear infinite;
  z-index: 1;
}

.go {
  width: 100%;
  height: 100%;
  background: url("https://maprepublic.com/wp-content/uploads/2017/05/kanawa-world-map-large.jpg");
  background-size: 350px;
  border-radius: 50%;
  box-shadow: inset 5px 0px 10px 2px black;
  animation: rotate 5s linear infinite; background-size: 100%;
}
.hand{
  position: absolute;
  height: 10px;
  width: 120px;
  background: black;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  transform: translatex(41px) translatey(205px)
}
.hand1{
  position: absolute;
  height: 5px;
  width: 10px;
  background: black;
  transform: translatex(95px) translatey(200px)
}

@keyframes rotate {
  from { background-position: 0px; }
  to { background-position: 350px; }
}
.hub {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  animation: rotateHub 20s linear infinite;
  z-index: 1;
}
/* HUD nằm dưới building */
.hud-container {
  position: absolute;  
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%) rotateX(60deg);
  transform-style: preserve-3d;
  perspective: 800px;
  z-index: 1;
}

  .hud-ring {
  width: 100%;
  height: 100%;
  animation: rotateHud 8s linear infinite;
}

 .hud-ring svg {
  width: 100%;
  height: 100%;
}
.hud-ring circle {
  fill: none;
  stroke: cyan;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px cyan);
  transform-origin: 50% 50%;
}
@keyframes rotateHud {
  0% { transform: rotateZ(0deg); }
  100% { transform: rotateZ(360deg); }
}
    .robot-container {
      position: relative;
      animation: float 3s ease-in-out infinite;	   
	  margin-bottom: 40px; /* 👈 Tạo khoảng cách an toàn */
    }

    .robot-container img {
      width: 150px;
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-20px);
      }
    }

    .rocket-flame {
      position: absolute;
      bottom: -45px;
      left: 51%;
      transform: translateX(-50%);
      width: 40px;
      height: 90px;
      background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, #00c3ff 40%, #0033cc 80%, transparent 100%);
      opacity: 0.8;
      animation: flameFlicker 0.4s infinite alternate;
      border-radius: 50%;
      filter: blur(2px);
      z-index: -1;
    }

    @keyframes flameFlicker {
      0% {
        transform: translateX(-50%) scaleY(1);
        opacity: 0.7;
        filter: blur(2px);
      }
      100% {
        transform: translateX(-50%) scaleY(1.3);
        opacity: 1;
        filter: blur(3px);
      }
    }

    .spark {
      position: absolute;
      width: 6px;
      height: 6px;
      background: #66ccff;
      border-radius: 50%;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      animation: sparkle 1.5s infinite ease-in-out;
      opacity: 0.8;
      filter: blur(1px);
    }

    .spark:nth-child(3) {
      left: 45%;
      animation-delay: 0.2s;
    }

    .spark:nth-child(4) {
      left: 55%;
      animation-delay: 0.4s;
    }

    .spark:nth-child(5) {
      left: 52%;
      animation-delay: 0.6s;
    }

    @keyframes sparkle {
      0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.8;
      }
      100% {
        transform: translate(-50%, 40px) scale(0.5);
        opacity: 0;
      }
    }

.binary-overlay-container {
  position: relative;
  width: 200px;  /* 👈 nhỏ hơn cho vừa với .item */
  height: 200px;  
  top: -25px;    /* 👈 nâng nhẹ để tránh tràn xuống */
}

.core-img {
  width: 100%;
  display: block;  
  left: 5%;
  position: relative;
  z-index: 1;

}
.item-desc {  
  margin-top:-20px !important;
  margin-bottom: 20px!important;
  line-height: 1.4;
  color: #ccc;
  text-align: center;
}
/* Vùng hiển thị giới hạn */
.binary-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: ellipse(60% 35% at 30% 30%);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  perspective: 300px; /* 👈 hiệu ứng chiều sâu 3D */ 
}

.binary-matrix {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  transform: rotateY(35deg);
  transform-style: preserve-3d;
}

.binary-column {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #00ffff;
  font-family: monospace;
  font-size: 9px;
  width: 6px;
  align-items: center;
  text-shadow: 0 0 2px #00ffff;
  animation: flicker 0.2s infinite alternate;
  transform: rotateY(-20deg);
}

.binary-column span {
  user-select: none;
}

.meeting {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 0px auto;
  animation: pulseScreen 2.5s ease-in-out infinite;
  overflow: hidden; /* 👈 Chặn hiệu ứng tràn ra ngoài */
  border-radius: 6px; /* Để khớp với ảnh bo góc */
}


.meeting-img {
  width: 90%;
  left:5%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 6px;
}

.meeting-scan {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 255, 255, 0.2) 50%, transparent 70%);
  animation: scanMove 3s linear infinite;
  pointer-events: none;
  z-index: 2;
  border-radius: 6px;
}

@keyframes pulseScreen {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes scanMove {
  0% { top: -100%; }
  100% { top: 100%; }
}
