/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay */
.reveal > *:nth-child(1) { transition-delay: 0.1s; }
.reveal > *:nth-child(2) { transition-delay: 0.2s; }
.reveal > *:nth-child(3) { transition-delay: 0.3s; }
.reveal > *:nth-child(4) { transition-delay: 0.4s; }
.reveal > *:nth-child(5) { transition-delay: 0.5s; }

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Mobile scroll snap */
@media (max-width: 768px) {
    html {
        scroll-behavior: smoothness;
    }
}