/* Hero Section Enhancements */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

/* Organic Background Shape */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(253, 121, 168, 0.15) 0%, rgba(108, 92, 231, 0.05) 60%, transparent 80%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphShape 20s linear infinite;
    z-index: -1;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphShape 25s linear infinite reverse;
    z-index: -1;
    filter: blur(50px);
}

@keyframes morphShape {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(360deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    white-space: normal;
    /* Back to normal for better wrapping in container */
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 85%;
    border-radius: 10px;
    /* Sharp book edge */
    box-shadow:
        -20px 20px 50px rgba(0, 0, 0, 0.3),
        /* Deep shadow */
        0 0 0 10px rgba(255, 255, 255, 0.2);
    /* Glass border */
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
    animation: floatBook 6s ease-in-out infinite;
    border: none;
    /* Removed thick white border */
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(108, 92, 231, 0.25);
}

@keyframes floatBook {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-12deg) rotateX(2deg) translateY(-20px);
    }
}

/* Decorative floating elements */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0.2;
    filter: blur(2px);
    animation: floatParticle 10s infinite linear;
}

.d-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-duration: 15s;
}

.d-2 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 40%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.d-3 {
    width: 15px;
    height: 15px;
    bottom: 30%;
    left: 30%;
    animation-duration: 12s;
    animation-delay: 1s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-image img {
        max-width: 60%;
        transform: none;
        animation: floatBookMobile 6s ease-in-out infinite;
    }

    @keyframes floatBookMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }
}