/* === Section layout === */
.rotating-section {
  position: relative;
  display: flex;
  flex-direction: column; /* stack everything vertically */
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 160px 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* === Rotating circle background === */
#circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: rotate-animation 30s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  scale: 1;
}

/* Ensure text perfectly centered rotation */
#circle span {
  position: absolute;
  transform-origin: top left;
  font-size: 70px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 10px;
  text-transform: uppercase;
  white-space: pre;
}

@keyframes rotate-animation {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === Boxes container === */
.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 70%; /* narrower for symmetry */
  max-width: 1000px;
  margin: 0 auto;
}

/* === Left big box === */
.large-box {
  flex: 1;
  background: linear-gradient(135deg, rgba(145, 98, 255, 0.25) 0%, rgba(28, 48, 168, 0.25) 60%, rgba(8, 11, 24, 0.3) 100%);
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 10px 40px rgba(145, 98, 255, 0.25);
  backdrop-filter: blur(15px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.large-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(145, 98, 255, 0.35);
}

.large-box h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #EBF7FD, #9162FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.large-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.large-box .brand {
  margin-top: 25px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Right side boxes === */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 0.9;
}

.box {
  background: linear-gradient(135deg, rgba(145, 98, 255, 0.22) 0%, rgba(28, 48, 168, 0.22) 70%);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 8px 35px rgba(145, 98, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(145, 98, 255, 0.25);
}

.box h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #EBF7FD;
}

.box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.box a {
  color: #EBF7FD;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.box a:hover {
  color: #9162FF;
}

.small-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 25px 35px;
  background: linear-gradient(135deg, rgba(145, 98, 255, 0.25) 0%, rgba(28, 48, 168, 0.25) 80%);
  box-shadow: 0 8px 30px rgba(145, 98, 255, 0.2);
}

/* === Responsive === */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    width: 90%;
  }

  .right-column {
    width: 100%;
  }

  #circle span {
    font-size: 42px;
  }
}
