/* 
WA Animated Content Styler - Style.css
Premium Animations and Layout
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Outfit:wght@400;700;800&family=Poppins:wght@400;600;700&family=Roboto:wght@400;700&display=swap');

.wa-animated-box-container {
    --wa-title-color: #ffffff;
    --wa-text-color: #cccccc;
    --wa-font-family: 'Inter', sans-serif;
    --wa-accent: #a855f7;
    
    font-family: var(--wa-font-family);
    width: 100%;
    margin: 40px auto;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.wa-animated-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--wa-title-color);
    margin-bottom: 25px;
    line-height: 1.2;
    background-clip: text;
    -webkit-background-clip: text;
}

.wa-animated-desc {
    font-size: 18px;
    color: var(--wa-text-color);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.wa-animated-btn {
    display: inline-block;
    padding: 16px 45px;
    background: var(--wa-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.wa-animated-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    color: #fff;
}

/* Animations */

/* 1. Fade Up */
.wa-anim-fade-up {
    animation: waFadeUp 1.2s ease forwards;
}

@keyframes waFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Typing Effect */
.wa-anim-typing .wa-animated-title {
    overflow: hidden;
    border-right: 3px solid var(--wa-accent);
    white-space: nowrap;
    margin: 0 auto 25px;
    letter-spacing: .15em;
    animation: 
        waTyping 3.5s steps(40, end),
        waBlinkCursor .75s step-end infinite;
}

@keyframes waTyping {
  from { width: 0 }
  to { width: 100% }
}

@keyframes waBlinkCursor {
  from, to { border-color: transparent }
  50% { border-color: var(--wa-accent); }
}

/* 3. Glow Animation */
.wa-anim-glow .wa-animated-title {
    animation: waGlowText 3s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

@keyframes waGlowText {
    from {
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
    }
    to {
        text-shadow: 0 0 25px rgba(168, 85, 247, 0.8), 0 0 50px rgba(168, 85, 247, 0.4);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .wa-animated-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .wa-animated-title {
        font-size: 32px;
        letter-spacing: 0.05em; /* Reduce letter spacing on mobile for typing effect */
    }
    
    .wa-animated-box-container {
        padding: 40px 20px;
        margin: 20px auto;
        border-radius: 20px;
    }
    
    .wa-animated-desc {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Handle typing animation on mobile - allow wrapping if necessary or scale down */
    .wa-anim-typing .wa-animated-title {
        white-space: normal; /* Allow wrapping on mobile to prevent cutting off */
        width: auto !important; /* Override width animation if it wraps */
        border-right: none;
        animation: waFadeUp 1.2s ease forwards; /* Fallback to fade up if it wraps */
    }
}

@media (max-width: 480px) {
    .wa-animated-title {
        font-size: 26px;
    }
    
    .wa-animated-box-container {
        padding: 30px 15px;
    }
    
    .wa-animated-btn {
        padding: 12px 30px;
        width: 100%;
        box-sizing: border-box;
    }
}
