

body {
    font-family: "Arial", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(-45deg, #ff9f43, #f39c12, #ffb74d, #ff8f00, #ffa726, #ff9f43);
    background-size: 400% 400%;
    /* animation: gradientShift 5s ease infinite; */
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.book {
    position: absolute;
    animation: floatBook 8s ease-in-out infinite;
    opacity: 0.9;

}

/* .book::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 60px;
} */

/* .book::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 34px;
    height: 54px;
    border-radius: 2px;
} */

.book:nth-child(1) {
    left: -7%;
    animation-delay: 0s;
    top: 12%;
    animation-duration: 12s;
}

.book:nth-child(2) {
    left: -6%;
    animation-delay: 3s;
    top: 83%;
    animation-duration: 10s;
}

.book:nth-child(3) {
    left: 70%;
    animation-delay: 6s;
    top: 88%;
    animation-duration: 14s;
}

.book:nth-child(4) {
    left: 62%;
    top: 44%;
    animation-delay: 9s;
    animation-duration: 11s;
}

.book:nth-child(5) {
    left: 80%;
    animation-delay: 12s;
    top: 14%;
    animation-duration: 13s;
}

.book:nth-child(6) {
    left: 10%;
    animation-delay: 15s;
    top: 48%;
    animation-duration: 9s;
}

.book:nth-child(7) {
    left: 37%;
    animation-delay: 18s;
    top: 3%;
    animation-duration: 15s;
}

.book:nth-child(8) {
    left: 37%;
    animation-delay: 21s;
    top: 92%;
    animation-duration: 8s;
}



/* Variações de cores para os livros */
/* .book:nth-child(2n)::after {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.book:nth-child(3n)::after {
    background: linear-gradient(45deg, #28a745, #1e7e34);
}

.book:nth-child(4n)::after {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.book:nth-child(5n)::after {
    background: linear-gradient(45deg, #6f42c1, #5a2d91);
} */

@keyframes floatBook {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    position: relative;
    z-index: 3;
    color: white;
    animation: fadeInUp 1.5s ease-out;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 180px 97px;
    max-width: 600px;
    width: 90%;
    /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); */
    transition: all 0.3s ease;
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0);
}

.content:hover {
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0);
}


.title {
    font-size: 4rem;
    font-weight: 1000;
    letter-spacing: 2px;
    margin-bottom: 20px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    background: linear-gradient(290deg, #000000, #ffffff, #000000c4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
    font-family: "Playfair Display", serif;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 35px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.9;
    }
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff6b6b);
    background-size: 200% 200%;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 2s ease-out 1s both;
    font-family: 'Playfair Display', serif;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-position: 100% 100%;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Seção de Catálogos */
.catalog-section {
    padding: 60px 20px;
}

.category-section {
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
}


.carousel-container {
    position: relative;
    /* max-width: 1200px; */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}


.img_carrocel {
    border-radius: 10%;
    transition: all 0.3s ease;

    /* width: 100%;
    border-radius: 10%;
    transition: all 0.3s ease; */

}

.img_carrocel img {
    width: 100%;
}


.img_carrocel:hover {
    cursor: pointer;
}


.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 100px) / 6);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.carousel::-webkit-scrollbar {
    display: none; 
}


.carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

.book-card {
    min-width: 200px;
    height: 280px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.book-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover::before {
    opacity: 1;
}



.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff9f43;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: white;
    color: #ff9f43;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}



/* Cores específicas para cada categoria */
.infantil .book-card:nth-child(1) {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.infantil .book-card:nth-child(2) {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.infantil .book-card:nth-child(3) {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.infantil .book-card:nth-child(4) {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.infantil .book-card:nth-child(5) {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.infantil .book-card:nth-child(6) {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.literatura .book-card:nth-child(1) {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
}

.literatura .book-card:nth-child(2) {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.literatura .book-card:nth-child(3) {
    background: linear-gradient(135deg, #98fb98, #32cd32);
}

.literatura .book-card:nth-child(4) {
    background: linear-gradient(135deg, #dda0dd, #9370db);
}

.literatura .book-card:nth-child(5) {
    background: linear-gradient(135deg, #f0e68c, #daa520);
}

.literatura .book-card:nth-child(6) {
    background: linear-gradient(135deg, #ffa07a, #ff6347);
}

.canto .book-card:nth-child(1) {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4);
}

.canto .book-card:nth-child(2) {
    background: linear-gradient(135deg, #90ee90, #228b22);
}

.canto .book-card:nth-child(3) {
    background: linear-gradient(135deg, #87cefa, #4169e1);
}

.canto .book-card:nth-child(4) {
    background: linear-gradient(135deg, #f0e68c, #b8860b);
}

.ecologica .book-card:nth-child(1) {
    background: linear-gradient(135deg, #228b22, #006400);
}

.ecologica .book-card:nth-child(2) {
    background: linear-gradient(135deg, #32cd32, #228b22);
}

.ecologica .book-card:nth-child(3) {
    background: linear-gradient(135deg, #9acd32, #556b2f);
}

.ecologica .book-card:nth-child(4) {
    background: linear-gradient(135deg, #8fbc8f, #2e8b57);
}

.transito .book-card:nth-child(1) {
    background: linear-gradient(135deg, #ff4500, #dc143c);
}

.transito .book-card:nth-child(2) {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.transito .book-card:nth-child(3) {
    background: linear-gradient(135deg, #32cd32, #228b22);
}

.transito .book-card:nth-child(4) {
    background: linear-gradient(135deg, #4169e1, #0000cd);
}

.afro .book-card:nth-child(1) {
    background: linear-gradient(135deg, #8b4513, #654321);
}

.afro .book-card:nth-child(2) {
    background: linear-gradient(135deg, #daa520, #b8860b);
}

.afro .book-card:nth-child(3) {
    background: linear-gradient(135deg, #cd853f, #a0522d);
}

.afro .book-card:nth-child(4) {
    background: linear-gradient(135deg, #d2691e, #8b4513);
}



/* Responsividade */
@media (max-width: 768px) {
    .content {
        padding: 40px 30px;
        max-width: 90%;
        border-radius: 20px;
    }

    .title {
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .subtitle {
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .book-card {
        min-width: 150px;
        height: 220px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }


}

@media (max-width: 480px) {
    .content {
        padding: 30px 25px;
        max-width: 95%;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .book-card {
        min-width: 120px;
        height: 180px;
    }

}

/* Indicadores do carrossel */
/* .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ff9f43;
    transform: scale(1.2);
} */

/* FOOTER */

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff' fill-opacity='0.1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.logo-icon::before {
    content: "";
    width: 35px;
    height: 45px;
    background: linear-gradient(135deg, #d32f2f, #c62828);
    border-radius: 4px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 15%, 85% 100%, 0 100%);
}

.logo-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-link:hover {
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: white;
    color: #d32f2f;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 30px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .footer-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .footer-links {
        gap: 25px;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        gap: 15px;
        margin: 15px 0;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.logofooter {
    width: 20%;
}




.img_estante {
    width: 40%;
    margin-left: 28%;
    position: relative;
    align-items: center;
}

@media (max-width: 570px) {
    .img_estante {
        width: 80%;
        margin-left: 11%;


    }


}



/* Virtual Library Section */
.virtual-library {
    padding: 8rem 0;
    background: var(--gradient-accent);
    color: white;
    position: relative;
    overflow: hidden;
}

.virtual-library::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%); */
    animation: rotate 30s linear infinite;
   /* background: linear-gradient(135deg, rgb(248, 249, 250) 0%, rgb(233, 236, 239) 100%);*/
}




.icones_flutuantes {
    width: 10%;
}


.icones_infantil {
    width: 100%;
}