/* Robot Scene with Floating Books */
.robot-scene {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
}

/* Floating Books Container */
.floating-books-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-book {
    position: absolute;
    width: 70px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatAround 6s ease-in-out infinite;
}

.floating-book i {
    font-size: 28px;
    margin-bottom: 5px;
}

.floating-book span {
    font-size: 11px;
    font-weight: 600;
}

.floating-book:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Book Positions */
.book-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.book-2 {
    top: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

.book-3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 3s;
}

.book-4 {
    bottom: 20%;
    right: 5%;
    animation-delay: 4.5s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Robot Container */
.robot-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 350px;
}

.robot-character {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.robot-character:hover {
    transform: scale(1.05);
}

.robot-character svg {
    width: 100%;
    height: 100%;
}

.eye-pupil {
    transition: all 0.1s ease-out;
}

#robotHead {
    transform-origin: center;
    animation: robotBob 3s ease-in-out infinite;
}

@keyframes robotBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#leftArm {
    transform-origin: 57px 240px;
    animation: waveArm 4s ease-in-out infinite;
}

@keyframes waveArm {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

/* Knowledge Particles */
.knowledge-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 24px;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.8;
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1.5s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.particle-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 4.5s;
}

.particle-5 {
    top: 50%;
    left: 10%;
    animation-delay: 6s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .robot-scene {
        height: 400px;
        max-width: 400px;
    }

    .robot-container {
        width: 250px;
        height: 300px;
    }

    .floating-book {
        width: 60px;
        height: 75px;
    }

    .floating-book i {
        font-size: 24px;
    }

    .floating-book span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .robot-scene {
        height: 350px;
        max-width: 350px;
    }

    .robot-container {
        width: 200px;
        height: 250px;
    }

    .floating-book {
        width: 50px;
        height: 65px;
    }

    .particle {
        font-size: 18px;
    }
}