#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--background-light) 0%, #f5f7fa 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 50%;
  padding-left: 10%;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4.5rem;
  background: linear-gradient(45deg, var(--holberton-blue), var(--holberton-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-3d-scene {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  perspective: 1000px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: float 20s infinite linear;
}

.element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--richat-primary), var(--richat-secondary));
  border-radius: 10px;
  opacity: 0.8;
  transform-style: preserve-3d;
}

.element:nth-child(1) { transform: translate3d(0, 0, 100px) rotate3d(1, 1, 0, 45deg); }
.element:nth-child(2) { transform: translate3d(150px, 100px, -50px) rotate3d(0, 1, 1, 45deg); }
.element:nth-child(3) { transform: translate3d(-100px, -150px, 0) rotate3d(1, 0, 1, 45deg); }
.element:nth-child(4) { transform: translate3d(50px, 200px, 150px) rotate3d(1, 1, 1, 45deg); }

@keyframes float {
  from { transform: rotate3d(1, 1, 1, 0deg); }
  to { transform: rotate3d(1, 1, 1, 360deg); }
}

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    padding: 2rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-3d-scene {
    display: none;
  }
}