.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    gap: var(--space-xl);
    min-height: 50vh;
    background: #000;
    color: #fcfcff;
    text-align: center;
    padding: calc(var(--space-md)*4) var(--space-md) var(--space-md) var(--space-md);
}

.hero h1 {
    color: var(--font);
    margin-bottom: 0.5rem;
}

.hero p {
    color: #fff;
}

.exam-animation {
    width: 100%;
    position: relative;
    height: 65px;
    overflow: hidden;
    font-weight: bold;
    text-align: center;
}

.exam-animation span {
    position: absolute;
    left: 0;
    width: 100%;
    color: var(--color);
    animation: slideUp 10s linear infinite;
    opacity: 0;
}

.exam-animation span:nth-child(1) {
    animation-delay: 0s;
}

.exam-animation span:nth-child(2) {
    animation-delay: 2s;
}

.exam-animation span:nth-child(3) {
    animation-delay: 4s;
}

.exam-animation span:nth-child(4) {
    animation-delay: 6s;
}

.exam-animation span:nth-child(5) {
    animation-delay: 8s;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    5% {
        transform: translateY(0);
        opacity: 1;
    }

    20% {
        transform: translateY(0);
        opacity: 1;
    }

    25% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.hero-btn-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: calc(var(--space-xl) + var(--space-md));
}

.indian-flag {
    display: inline-block;
    width: 33%;
    max-width: 180px;
    height: auto;
    border-left: solid 3px #421d05;
    z-index: 3;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Heart element */
.panda-heart {
    position: fixed;
    pointer-events: none;
    /* hearts don't block clicks */
    transform-origin: center;
    font-size: 18px;
    will-change: transform, opacity;
    z-index: 9999;
    opacity: 1;
    transition: transform 800ms cubic-bezier(.2, .8, .2, 1), opacity 800ms ease-out;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.06);
}

/* Optional: different sizes */
.panda-heart.small {
    font-size: 12px;
}

.panda-heart.medium {
    font-size: 18px;
}

.panda-heart.large {
    font-size: 26px;
}

/* Keyframe fallback animation (if you prefer keyframes instead) */
@keyframes pandaFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-160px) translateX(var(--tx, 0px)) scale(0.8) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

.latest-batch-btn,
.free-learning-btn {
    width: fit-content;
    height: fit-content;
    position: relative;
}

.cute-panda {
    width: 80px;
    height: auto;
    bottom: 85%;
    left: 0;
    position: absolute;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.latest-batch-btn:active .cute-panda {
    left: 30%;
}

/* Desktop View Optimization */
@media screen and (min-width: 1024px) {
    .hero {
        padding: var(--space-xl) calc(var(--space-xl) * 4);
    }

    .latest-batch-btn:hover .cute-panda {
        left: 40%;
    }
}