/* ========================================
   ANIMATIONS & SPECIAL EFFECTS
   ======================================== */

/* OLA Text Mount Container */
#ola-text-mount {
    position: relative;
    min-height: 100px;
}

/* Flex utility */
.flex {
    display: flex;
    justify-content: space-between;
}

/* Stroke effect for text */
.stroke span {
    position: relative;
}

.stroke span::after {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 0;
    color: transparent;
    z-index: -1;
    -webkit-text-stroke-width: 3px;
    -webkit-text-stroke-color: #ffffff;
}

/* ========================================
   CUSTOM CURSOR (Homepage)
   ======================================== */

body.custom-cursor-enabled {
    cursor: none;
}

#custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-color: #5263C6;
    opacity: 1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    display: none;
}

#custom-cursor.active {
    display: block;
}

/* ========================================
   TYPING ANIMATION (Mobile)
   ======================================== */

.typing-text {
    font-family: 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

.typing-cursor.hidden {
    opacity: 0;
}

.typing-char {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.1s ease-in forwards;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes blink {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0; 
    }
}

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