/* Explain: Styling for layout elements, including hero section animations and responsiveness. */
.section-pad {
    padding-top: clamp(4.5rem, 9vw, 7rem);
    padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.hero-section {
    background: var(--background-color);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.orb-blue {
    top: -8rem;
    inset-inline-start: -6rem;
    width: 24rem;
    height: 24rem;
    background: rgba(59, 130, 246, 0.20);
}

.orb-sky {
    bottom: -8rem;
    inset-inline-end: -6rem;
    width: 20rem;
    height: 20rem;
    background: rgba(29, 78, 216, 0.14);
}

.hero-deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 6%;
    inset-inline-start: 10%;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0));
    filter: blur(18px);
    animation: hero-glow-drift 16s ease-in-out infinite alternate;
}

.hero-glow-2 {
    top: auto;
    bottom: 3%;
    inset-inline-start: auto;
    inset-inline-end: 6%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(closest-side, rgba(29, 78, 216, 0.18), rgba(29, 78, 216, 0));
    animation-duration: 21s;
    animation-direction: alternate-reverse;
}

@keyframes hero-glow-drift {
    from {
        transform: translate3d(-6%, -4%, 0) scale(1);
    }
    to {
        transform: translate3d(8%, 6%, 0) scale(1.15);
    }
}

.hero-bubbles {
    position: absolute;
    inset: 0;
}

.hero-bubble {
    position: absolute;
    bottom: -4rem;
    inset-inline-start: var(--left);
    width: var(--size);
    height: var(--size);
    border: 1px solid rgba(59, 130, 246, 0.30);
    border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(96, 165, 250, 0.35) 58%, rgba(29, 78, 216, 0.16));
    opacity: 0;
    animation: hero-bubble-rise var(--duration) linear var(--delay) infinite;
}

@keyframes hero-bubble-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.85);
        opacity: 0;
    }
    14% {
        opacity: var(--bubble-opacity);
    }
    50% {
        transform: translate3d(var(--drift), -48vh, 0) scale(1);
    }
    86% {
        opacity: var(--bubble-opacity);
    }
    100% {
        transform: translate3d(0, -96vh, 0) scale(1.05);
        opacity: 0;
    }
}

.hero-sparkle {
    position: absolute;
    top: var(--top);
    inset-inline-start: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(96, 165, 250, 0.70) 45%, rgba(96, 165, 250, 0) 72%);
    opacity: 0;
    animation: hero-twinkle var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes hero-twinkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .hero-bubble,
    .hero-sparkle {
        animation: none;
    }

    .hero-bubble,
    .hero-sparkle {
        display: none;
    }
}

.hero-copy {
    position: relative;
}


@media (max-width: 640px) {
    .orb {
        opacity: 0.4;
    }

    .hero-glow {
        width: 18rem;
        height: 18rem;
    }

    .hero-glow-2 {
        width: 16rem;
        height: 16rem;
    }

    .hero-bubble {
        animation-duration: 22s;
    }
}