/* Professional Hero Fade-in Animations */
.hero-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em;
    margin-bottom: 30px;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title .word.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for each word */
.hero-title .word:nth-child(1) { transition-delay: 0.1s; }
.hero-title .word:nth-child(2) { transition-delay: 0.3s; }
.hero-title .word:nth-child(3) { transition-delay: 0.5s; }
.hero-title .word:nth-child(4) { transition-delay: 0.7s; }
.hero-title .word:nth-child(5) { transition-delay: 0.9s; }

/* Professional subtitle animation */
.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1.2s;
    margin-bottom: 50px;
}

.hero-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Professional button animation */
.hero-btn {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1.5s;
}

.hero-btn.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Subtle hover effects for completed animations */
.hero-title .word.animate:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-btn.animate:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Professional entrance animation for entire hero content */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroContentFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes heroContentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle background gradient animation */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    opacity: 0;
    animation: backgroundGlow 3s ease-in-out 2s forwards;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundGlow {
    to {
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25em;
        line-height: 1.3;
        margin-bottom: 40px;
    }
    
    .hero-title .word {
        transform: translateY(15px);
        display: inline-block;
        white-space: nowrap;
    }
    
    .hero-subtitle {
        transform: translateY(20px);
        transition-delay: 0.8s;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .hero-btn {
        transform: translateY(15px) scale(0.98);
        transition-delay: 1.1s;
    }
    
    /* Faster animations on mobile */
    .hero-title .word:nth-child(1) { transition-delay: 0.1s; }
    .hero-title .word:nth-child(2) { transition-delay: 0.15s; }
    .hero-title .word:nth-child(3) { transition-delay: 0.2s; }
    .hero-title .word:nth-child(4) { transition-delay: 0.25s; }
    .hero-title .word:nth-child(5) { transition-delay: 0.3s; }
}

@media (max-width: 600px) {
    .hero-title {
        gap: 0.2em;
        margin-bottom: 35px;
    }
    
    .hero-subtitle {
        margin-bottom: 35px;
        font-size: 1.05em;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-title {
        gap: 0.15em;
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
        font-size: 1em;
        line-height: 1.6;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-title .word,
    .hero-subtitle,
    .hero-btn,
    .hero-content {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .hero-content::before {
        animation: none;
        opacity: 0;
    }
}

/* Professional loading state */
.hero-content.loading .hero-title .word,
.hero-content.loading .hero-subtitle,
.hero-content.loading .hero-btn {
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth text rendering */
.hero-title .word {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Professional glow effect on focus */
.hero-btn.animate:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3), 0 8px 25px rgba(0, 102, 204, 0.2);
}