* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
}

@media (max-width: 768px) {
    .background-image {
        background-attachment: scroll;
    }
}

.background-image.active {
    opacity: 1;
}

header {
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.title {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-align: left;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.menu a:hover {
    border-bottom-color: #333;
}

main {
    position: relative;
    min-height: calc(100vh - 150px);
    padding: 2rem;
}

.poem {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin-left: auto;
    margin-right: 5%;
    margin-top: 10vh;
    margin-bottom: 10vh;
    animation: fadeInUp 1s ease-out;
    transition: box-shadow 0.3s ease;
    line-height: 1.8;
    z-index: 2;
}

.poem:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.poem p {
    margin-bottom: 1.5rem;
}

.poem-verse {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    position: relative;
    z-index: 5;
}

.carousel-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: normal;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    text-align: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
}

.caption {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #333;
    color: #fff;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.bibliographic {
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }

    .menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .poem {
        max-width: 100%;
        margin: 2rem 5%;
        margin-bottom: 30rem;
        padding: 2rem;
    }

    .carousel {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-item img {
        max-height: 400px;
    }
}
