/* Animation classes for fade and zoom effects */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation class for visible elements */
.animate-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Transition styling for table of contents items */
.toc-item {
    transition: transform 0.3s ease, color 0.3s ease;
}

.toc-item:hover {
    transform: translateX(10px);
    color: #4F46E5;
}

/* Back to top button styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4F46E5;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4338CA;
}

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