:root {
  line-height: 1.5;
  font-weight: 400;
  
  --primary-color: #4f46e5;
  --secondary-color: #9333ea;
  --accent-color: #ec4899;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));

}

.hero-container {
  text-align: center;
  padding: 1rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  margin: auto;
}

.hero-text {
  font-size: clamp(1.5rem, 5vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  color: #c1bebe;
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.animated-word-container {
  position: relative;
  display: inline-block;
  height: 1em;
  min-width: 100px;
  vertical-align: top;
  overflow: hidden;
  margin: 0;
  padding-bottom: 36px;
  border-bottom:2px solid #dadada
}

.animated-word {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  text-shadow: none;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
  text-align: center;
}

.animated-word.active {
  opacity: 1;
  transform: translateY(0);
}

.animated-word.slide-out {
  opacity: 0;
  transform: translateY(-100%);
}

.animated-word.slide-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideInFromBottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cursor {
  display: inline;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    gap: 0.2em;
  }
  
  .hero-container {
    padding: 1rem;
    max-width: 600px;
  }
  
  .animated-word-container {
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    gap: 0.15em;
  }
  
  .animated-word-container {
    min-width: 80px;
  }
}

/* Enhanced visual effects */
.hero-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

/* Add subtle particle effect */
.hero-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 10s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes sparkle {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100px);
  }
}