.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" fill="none"><path d="M0,100 L100,100 L100,0 Q80,20 70,15 Q60,10 50,15 Q40,20 30,15 Q20,10 0,15 Z" fill="white" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    animation: fadeIn 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    line-height: 1.4;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
}

.floating-element {
    position: absolute;
    border-radius: var(--border-radius-md);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.book-1, .book-2 {
    border-radius: 6px 12px 12px 6px;
    box-shadow: 0 8px 24px 0 rgba(0,0,0,0.18), 0 0 0 6px #fff inset, 6px 0 12px -6px #bfa16b inset;
    border-left: 8px solid #bfa16b;
    position: absolute;
    background-color: #fff;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 600px;
    animation: bookRock 4s ease-in-out infinite alternate;
}

.book-1::after, .book-2::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, #fff 60%, #e6e0d6 100%);
    border-radius: 0 12px 12px 0;
    z-index: 2;
    box-shadow: 2px 0 6px 0 rgba(0,0,0,0.08);
}

@keyframes bookRock {
    0% {
        transform: rotateY(-8deg) rotateZ(-8deg) scale(1.04);
    }
    50% {
        transform: rotateY(8deg) rotateZ(8deg) scale(1.08);
    }
    100% {
        transform: rotateY(-8deg) rotateZ(-8deg) scale(1.04);
    }
}

.book-1 {
    width: 220px;
    height: 300px;
    background-image: url('https://i.ibb.co/BVhnT21r/83897677b6ff.jpg');
    background-size: cover;
    background-position: center;
    top: 20%;
    left: 30%;
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.book-2 {
    width: 260px;
    height: 350px;
    background-image: url('https://i.ibb.co/qLt3hgPV/3fe0c843da86.jpg');
    background-size: cover;
    background-position: center;
    top: 35%;
    left: 55%;
    transform: rotate(10deg);
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 1;
}

.star-1 {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><polygon points="12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26"/></svg>');
    background-size: contain;
    top: 15%;
    left: 20%;
    animation: pulse 3s ease-in-out infinite;
}

.star-2 {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><polygon points="12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26"/></svg>');
    background-size: contain;
    bottom: 25%;
    right: 15%;
    animation: pulse 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.cloud-1 {
    width: 120px;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60" fill="white" opacity="0.8"><path d="M93.2,25.7c-1.7-9.4-9.9-16.6-19.8-16.6c-5.8,0-11.1,2.5-14.8,6.4C56.3,7.9,47.3,2.4,37,2.4c-13.3,0-24.2,10.3-25.2,23.3 C4.8,27.1,0,33.1,0,40.2C0,49.1,7.2,56.3,16.1,56.3h67.8C92.8,56.3,100,49.1,100,40.2C100,33.1,97.2,27.1,93.2,25.7z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    top: 10%;
    right: 25%;
    animation: floatSlow 15s linear infinite;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: var(--space-2xl);
    }
    
    .hero-visual {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .book-1, .book-2 {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .book-1, .book-2 {
        transform: scale(0.6);
    }
}