/* Rocket hover animation (left-right sway) */
@keyframes rocketHover {
    0%   { transform: translateX(0px) rotate(0deg); }
    25%  { transform: translateX(-10px) rotate(-2deg); }
    50%  { transform: translateX(0px) rotate(0deg); }
    75%  { transform: translateX(10px) rotate(2deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

/* Text styling */
.seotext {
    padding: 20px;
}

/* Inner container */
.inner-div {
    padding: 15px;
    margin-top: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image container */
.image-container {
    width: 150px;               /* Rocket size */
    display: flex;
    justify-content: center;
    overflow: visible;          
    position: relative;
}

/* Rocket image */
.image-container img {
    width: 100%;                
    animation: rocketHover 3s ease-in-out infinite; /* continuous left-right motion */
    position: relative;         
    z-index: 10;
}

/* Button styling */
.btn-right {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid black;
    cursor: pointer;
    transition: 0.3s;
    color: black;
    align-self: flex-end;
}

.btn-right:hover {
    background-color: black;
    color: white;
    border: 1px solid black;
}

/* Responsive design */
@media (max-width: 768px) {
    .seotext {
        text-align: center;
    }
    .image-container {
        width: 100px;           /* smaller on mobile */
        margin-left: 0;
    }
    .inner-div {
        flex-direction: column;
    }
    .btn-right {
        align-self: center;
    }
}
