html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 15px;
}

.header .navbar {
    width: fit-content;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 0px 10px;
}

.glass.header {
    padding: 0;
}

.container {
    margin-top: 8%;
    padding: 20px;
}

.toc {
    position: sticky;
    top: 10%;
    height: fit-content;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

footer {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

footer p {
    margin: 0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-caption {
    color: black;
    background-color: rgb(0 0 0 / 14%);
    border-radius: 10px;
    padding: 10px;
}

.carousel-caption h5 {
    font-weight: 700;
}

.carousel-control-next,.carousel-control-prev {
    background-color: rgba(128, 128, 128, 0.479);
    height: fit-content;
    padding: 22px 22px;
    align-self: center;
    border-radius: 50%;
    width: fit-content;
}

.table-of-contents {
    cursor: pointer;
    transition: color 0.3s ease;
}

.table-of-contents:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .container {
        margin-top: 15%;
    }

    .toc {
        position: static;
        margin-bottom: 20px;
    }

    .img-fluid {
        max-width: 100%;
        margin-left: 0;
    }
}
