/* Component Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Code Carousel */
.code-carousel {
    display: inline-block;
    height: 1.7em;
    overflow: hidden;
    vertical-align: bottom;
    margin-bottom: -0.35em;
    position: relative;
    top: -4px;
}

.code-carousel-track {
    display: flex;
    flex-direction: column;
    animation: scroll-up-code 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.code-carousel-track span {
    height: 1.7em;
    display: block;
}

/* Text Carousel */
.text-carousel {
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
    width: auto;
    min-width: 3ch;
    text-align: left;
    margin-bottom: -0.1em;
    top: 9px;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    animation: scroll-up 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track span {
    height: 1.2em;
    display: block;
    color: var(--accent-100);
}

/* Floating animation for decorative elements */
.decorative-elements .dot,
.decorative-elements .accent-dot,
.decorative-elements .star {
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 1s;
}

.dot-3 {
    animation-delay: 2s;
}

.dot-4 {
    animation-delay: 3s;
}

.accent-dot-1 {
    animation-delay: 1.5s;
}

.accent-dot-2 {
    animation-delay: 3.5s;
}

.star {
    animation-delay: 2.5s;
}
