.animate-fadeIn {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Typewriter cursor animation */
.typewriter-cursor {
    animation: blink 1s infinite;
    color: #3b82f6;
    font-weight: bold;
}

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

/* Carousel dot transitions */
.carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    transform: scale(1.3);
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Demo text styling */
#beforeText, #afterText {
    min-height: 4rem;
    line-height: 1.5;
}

/* Language flag styling */
.language-flag {
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.language-flag:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.language-flag.active {
    background-color: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}
