/* DataFlow Consultoria - Animated Text Styles */

:root {
  /* Corporate Colors */
  --primary-blue: #2563eb;
  --tech-green: #10b981;
  --primary-glow: #3b82f6;
  --secondary-glow: #34d399;
  
  /* Animation Durations */
  --typewriter-duration: 2s;
  --shimmer-duration: 3s;
  --fade-duration: 0.8s;
}

/* Hero Title Animation */
.st-hero-text h1 {
  opacity: 0;
  animation: fadeInTitle var(--fade-duration) ease-out 0.5s forwards;
}

/* Animated Text Styles */
.animated-text {
  background: linear-gradient(90deg, 
    var(--primary-blue) 0%, 
    var(--primary-glow) 25%, 
    var(--tech-green) 50%, 
    var(--secondary-glow) 75%, 
    var(--primary-blue) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGlow var(--shimmer-duration) ease-in-out infinite;
  display: inline-block;
}

/* Typewriter Container */
.typewriter-container {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

/* Typewriter Text Effect */
.typewriter-text {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--primary-blue);
  animation: 
    typewriter var(--typewriter-duration) steps(20, end) 1s forwards,
    removeCursor 0.1s ease-out 3.8s forwards;
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--primary-blue);
  animation: 
    blink 1s infinite,
    fadeOut 0.5s ease-out 3.5s forwards;
  margin-left: 2px;
  vertical-align: text-bottom;
}

/* Keyframe Animations */
@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes removeCursor {
  to {
    border-right: none;
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes shimmerGlow {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .st-hero-text h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
    overflow: visible !important;
  }
  
  .typewriter-text {
    font-size: 2.2rem !important;
    white-space: nowrap;
    overflow: visible !important;
    width: max-content !important;
    max-width: none !important;
    animation: 
      typewriterMobile var(--typewriter-duration) steps(15, end) 1s forwards,
      removeCursor 0.1s ease-out 3.8s forwards;
  }
  
  .animated-text {
    background-size: 300% 100%;
    display: inline-block;
    overflow: visible !important;
  }
  
  .typewriter-container {
    display: block;
    width: 100%;
    overflow: visible !important;
  }
  
  .typewriter-cursor {
    height: 1em;
  }
}

@media (max-width: 480px) {
  .st-hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.1;
    text-align: center;
  }
  
  .typewriter-text {
    font-size: 1.8rem !important;
    text-align: center;
    animation: 
      typewriterSmall var(--typewriter-duration) steps(12, end) 1s forwards,
      removeCursor 0.1s ease-out 3.8s forwards;
  }
  
  .animated-text {
    background-size: 400% 100%;
  }
}

/* Mobile-specific typewriter animations */
@keyframes typewriterMobile {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes typewriterSmall {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}