/* React Bits inspired animations */

/* Typewriter Text Animation */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter-text {
    display: inline-block;
    white-space: normal;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #e38324, #d97706, #ea580c, #dc2626);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Magnetic Button Effect */
.magnetic-button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.magnetic-button:hover {
    transform: scale(1.05);
}

.magnetic-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.magnetic-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Hover Card Effect */
.hover-card {
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Staggered Animation */
.staggered-container .staggered-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.staggered-container .staggered-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.staggered-container .staggered-item:nth-child(1) { transition-delay: 0ms; }
.staggered-container .staggered-item:nth-child(2) { transition-delay: 200ms; }
.staggered-container .staggered-item:nth-child(3) { transition-delay: 400ms; }
.staggered-container .staggered-item:nth-child(4) { transition-delay: 600ms; }

/* Icon Bounce Animation */
@keyframes icon-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.icon-bounce:hover {
    animation: icon-bounce 0.6s ease;
}

/* Reveal Animation */
.reveal-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.reveal-animation.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Text Scramble Effect */
@keyframes scramble {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.text-scramble {
    display: inline-block;
}

.text-scramble.scrambling {
    animation: scramble 0.5s ease-in-out;
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(227, 131, 36, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Hover Underline Animation */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e38324;
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(227, 131, 36, 0.4);
}

/* Particle Background */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(227, 131, 36, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(20px) translateX(-10px); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Coming Soon Notice Styles */
.coming-soon-notice {
    background: linear-gradient(135deg, rgba(227, 131, 36, 0.1), rgba(233, 213, 255, 0.1));
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    text-align: center;
    border: 1px solid rgba(227, 131, 36, 0.2);
}

.coming-soon-notice h3 {
    color: #e38324;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.coming-soon-notice p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.coming-soon-notice .btn-primary {
    margin-top: 1rem;
}

/* Feature tags center alignment for coming soon */
.coming-soon-notice .feature-tags {
    justify-content: center;
    margin: 2rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .magnetic-button:hover {
        transform: none;
    }
    
    .hover-card:hover {
        transform: none;
    }
    
    .particle-background {
        display: none;
    }
    
    .coming-soon-notice {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
}