/* Hero Visual Enhancement */
.hero-visual {
    margin-top: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 32px;
    animation: heroFloat 6s ease-in-out infinite;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s ease;
}

body.light-mode .hero-img {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(16, 185, 129, 0.15);
}

.hero-img:hover {
    transform: scale(1.05) translateY(-10px) !important;
}

@keyframes heroFloat {

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

    50% {
        transform: translateY(-20px) rotateX(0deg);
    }
}

/* Media Query Adjustment */
@media (max-width: 768px) {
    .hero-img {
        max-width: 200px;
        border-radius: 24px;
    }

    .hero-visual {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-img {
        max-width: 160px;
        border-radius: 20px;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    /* Reduce animation movement on mobile for performance */
    @keyframes heroFloat {

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

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

/* Reduced motion preference - respect user's accessibility settings */
@media (prefers-reduced-motion: reduce) {
    .hero-img {
        animation: none;
        transform: none;
    }

    .hero-img:hover {
        transform: scale(1.02) !important;
    }
}