/* WEB DESIGN AGENCY — CINEMATIC DESIGN */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 75% 40%,
            rgba(128, 45, 255, 0.45),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #05071c 0%,
            #100b35 55%,
            #220c56 100%
        );

    min-height: 720px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    
    background-image:
        radial-gradient(ellipse at 78% 24%, rgba(147, 91, 255, 0.38), transparent 34%),
        radial-gradient(ellipse at 93% 78%, rgba(47, 135, 192, 0.2), transparent 36%),
        radial-gradient(ellipse at 34% 100%, rgba(83, 48, 161, 0.22), transparent 42%),
        linear-gradient(128deg, transparent 0 48%, rgba(199, 175, 255, 0.035) 48.1%, transparent 48.35% 63%, rgba(199, 175, 255, 0.025) 63.1%, transparent 63.35%);

    background-size: 130% 130%, 125% 125%, 120% 120%, 100% 100%;
    background-position: 0 0, 100% 100%, 20% 100%, center;
    opacity: 0.9;
    z-index: -1;
    animation: ambientDrift 24s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(5, 7, 28, 0.74) 0%,
        rgba(8, 6, 35, 0.34) 48%,
        rgba(15, 5, 45, 0.12) 100%
    );

    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    text-shadow: 0 0 30px rgba(140, 75, 255, 0.12);
}

.hero-visual {
    position: relative;
    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: relative;

    backdrop-filter: blur(18px);

    background:
        linear-gradient(
            145deg,
            rgba(70, 35, 145, 0.85),
            rgba(9, 12, 40, 0.9)
        );

    border: 1px solid rgba(178, 130, 255, 0.65);

    box-shadow:
        0 0 60px rgba(128, 55, 255, 0.35),
        0 25px 80px rgba(0, 0, 0, 0.4);

    animation: floatingCard 6s ease-in-out infinite;
    transition: border-color 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.hero-visual:hover .visual-card {
    border-color: rgba(209, 184, 255, 0.9);
    box-shadow:
        0 0 78px rgba(128, 55, 255, 0.42),
        0 30px 88px rgba(0, 0, 0, 0.46);
    filter: brightness(1.05);
}

@keyframes ambientDrift {
    0% {
        background-position: 0 0, 100% 100%, 20% 100%, center;
    }

    100% {
        background-position: 100% 70%, 0 30%, 80% 0, center;
    }
}

@keyframes floatingCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero::before {
        opacity: 0.62;
    }

    .hero-visual {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .visual-card {
        animation: none;
    }

    .visual-card {
        transition: none;
    }
}