.spaces-section {
  padding: 60px 20px;
}

.spaces-container {
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 50px;
  border-radius: 16px;

  background: linear-gradient(135deg, #050b1f, #0b1f3a, #123a6f);
}

.spaces-text {
  flex: 1;
}

.spaces-text h1 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #fff;
}

.spaces-text p {
  font-size: 16px;
  color: #e0e6ff;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 25px;
}

.spaces-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 30px;
  background: #ffffff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.spaces-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.media-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;

  background: transparent;
  border: none;
  box-shadow: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border: none;
  outline: none;
}

.video-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
}

@media (max-width: 900px) {
  .spaces-container {
    flex-direction: column;
    text-align: center;
  }

  .spaces-text p {
    margin: 0 auto 25px;
  }

  .spaces-media {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .spaces-text h1 {
    font-size: 28px;
  }

  .spaces-container {
    padding: 30px 20px;
    margin-bottom: -30px;
    margin-top: -30px;
  }
}

.spaces-profile {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.spaces-profile img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;

  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}