/* css/animations.css - Animations and Transitions */

/* GSAP Reveals Base Configuration */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-l {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-l.visible {
    opacity: 1;
    transform: none;
}

.reveal-r {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-r.visible {
    opacity: 1;
    transform: none;
}

/* Stagger Effects */
.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.d4 {
    transition-delay: 0.4s;
}

.d5 {
    transition-delay: 0.5s;
}

.d6 {
    transition-delay: 0.6s;
}

/* Scroll Prompt Line Animation */
@keyframes sline {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0;
        transform: scaleY(1);
        transform-origin: top;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Oxanium', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--blue), transparent);
    animation: sline 2s ease infinite;
    position: relative; /* Necessário para posicionar a ponta */
}

/* Criando a ponta da seta 
.scroll-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--blue); 
}
*/
/* Pulse Animation (For Badges) */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 255, 0.6);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(0, 200, 255, 0);
    }
}

/* Rings Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cimg {
    position: absolute;
    width: 32%;
    height: 32%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 40px rgba(5, 86, 243, 0.08);
}

.cimg img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: spin 24s linear infinite;
}

.ring:nth-child(1) {
    inset: 0;
    border-color: rgba(5, 86, 243, 0.1);
}

.ring:nth-child(2) {
    inset: 12%;
    animation-duration: 36s;
    animation-direction: reverse;
    border-color: rgba(0, 200, 255, 0.15);
}

.ring:nth-child(3) {
    inset: 24%;
    animation-duration: 48s;
    border-color: rgba(5, 86, 243, 0.2);
}

/* Decorative Dots for Visuals */
.odot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 16px var(--blue);
}

/* Chart Bars Animation in Mockup */
.cbars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
    margin-top: 16px;
}

.cbars span {
    flex: 1;
    background: linear-gradient(to top, var(--blue), var(--cyan));
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: barUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes barUp {
    to {
        transform: scaleY(1);
    }
}

/* Add an initial delay to chart bars */
.cbars span:nth-child(1) {
    animation-delay: 0.1s;
}

.cbars span:nth-child(2) {
    animation-delay: 0.2s;
}

.cbars span:nth-child(3) {
    animation-delay: 0.3s;
}

.cbars span:nth-child(4) {
    animation-delay: 0.4s;
}

.cbars span:nth-child(5) {
    animation-delay: 0.5s;
}

.cbars span:nth-child(6) {
    animation-delay: 0.6s;
}

.cbars span:nth-child(7) {
    animation-delay: 0.7s;
}

.cbars span:nth-child(8) {
    animation-delay: 0.8s;
}

.cbars span:nth-child(9) {
    animation-delay: 0.9s;
}

.cbars span:nth-child(10) {
    animation-delay: 1.0s;
}