/* ============================================================
   WEBDELTA HERO ANIMATION
   Alleen de animatie + interne onderdelen
============================================================ */


/* ============================================================
   HOME ANIMATIE POSITIE
============================================================ */

.home-animatie {
    position: absolute;
    z-index: 5;

    top: 50%;
    right: 0;

    transform: translateY(-50%);

    width: 55%;
    height: 540px;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* ============================================================
   MODULE
============================================================ */

.home-animatie .wd-ha {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* ============================================================
   JOOMLA WRAPPERS
============================================================ */

.home-animatie>div,
.home-animatie .moduletable,
.home-animatie .mod-webdeltaheroani {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* ============================================================
   THREE.JS VISUAL
============================================================ */

.home-animatie .wdha-visual {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: visible;
}

.home-animatie .wdha-visual canvas {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
}


/* ============================================================
   ACHTERGROND GLOW
============================================================ */

.home-animatie .wdha-ambient-orb {
    position: absolute;
    z-index: 1;

    top: 50%;
    left: 50%;

    width: min(75%, 480px);
    aspect-ratio: 1;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(78, 177, 255, 0.14),
            rgba(103, 40, 202, 0.08) 44%,
            transparent 70%);

    filter: blur(10px);

    pointer-events: none;
}


/* ============================================================
   FASE TEKST
============================================================ */

.home-animatie .wdha-phase-copy {
    position: absolute;
    z-index: 10;

    top: 45px;
    right: 75px;

    width: 250px;

    text-align: right;
    color: #fff;

    pointer-events: none;
}

.home-animatie .wdha-phase-number {
    display: block;

    font-size: 11px;
    line-height: 1.4;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.55);
}

.home-animatie .wdha-phase-copy strong {
    display: block;

    margin-top: 6px;

    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;

    color: #fff;
}

.home-animatie .wdha-phase-text {
    display: block;

    margin-top: 7px;

    font-size: 12px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.72);
}


/* ============================================================
   PROGRESS
============================================================ */

.home-animatie .wdha-progress {
    position: absolute;
    z-index: 10;

    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 22px;

    pointer-events: none;
}

.home-animatie .wdha-step {
    display: grid;

    grid-template-columns: auto 32px;

    align-items: center;

    gap: 10px;

    color: rgba(255, 255, 255, 0.42);

    transition: color 0.25s ease;
}

.home-animatie .wdha-step b {
    font-size: 11px;
    line-height: 1.2;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    font-weight: 600;
}

.home-animatie .wdha-step i {
    position: relative;

    display: block;

    width: 32px;
    height: 1px;

    background: rgba(255, 255, 255, 0.24);
}

.home-animatie .wdha-step i::after {
    content: "";

    position: absolute;

    top: -3px;
    right: 0;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);
}

.home-animatie .wdha-step.is-active {
    color: #fff;
}

.home-animatie .wdha-step.is-active i {
    background: #00ff79;
}

.home-animatie .wdha-step.is-active i::after {
    background: #00ff79;

    box-shadow:
        0 0 16px rgba(0, 255, 121, 0.85);
}


/* ============================================================
   SCROLL HINT
============================================================ */

.home-animatie .wdha-scroll-hint {
    position: absolute;
    z-index: 10;

    right: 75px;
    bottom: 20px;

    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 10px;
    line-height: 1.2;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.75);

    pointer-events: none;
}

.home-animatie .wdha-scroll-hint::before {
    content: "";

    width: 34px;
    height: 1px;

    background: rgba(255, 255, 255, 0.5);
}

.home-animatie .wdha-mouse {
    position: relative;

    width: 18px;
    height: 28px;

    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
}

.home-animatie .wdha-mouse::after {
    content: "";

    position: absolute;

    top: 6px;
    left: 50%;

    width: 3px;
    height: 5px;

    border-radius: 999px;

    background: #fff;

    transform: translateX(-50%);

    animation: wd-h-a-wheel 1.4s infinite;
}

@keyframes wd-h-a-wheel {

    0% {
        opacity: 0;
        transform: translate(-50%, -2px);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}


/* ============================================================
   LAPTOP
============================================================ */

@media (max-width: 1199.98px) {

    .home-animatie {
        width: 52%;
        height: 480px;
    }

    .home-animatie .wdha-phase-copy {
        right: 55px;
        width: 220px;
    }

    .home-animatie .wdha-scroll-hint {
        right: 55px;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991.98px) {

    .home-animatie {
        position: relative;

        top: auto;
        right: auto;

        transform: none;

        width: 100%;
        height: 420px;

        margin: 0 0 25px;
    }
}


/* ============================================================
   KLEINE TABLET
============================================================ */

@media (max-width: 767.98px) {

    .home-animatie {
        height: 370px;
    }

    .home-animatie .wdha-phase-copy {
        visibility: hidden;
    }

    .home-animatie .wdha-progress {
        right: 10px;
        gap: 16px;
    }

    .home-animatie .wdha-step {
        grid-template-columns: auto 24px;

        gap: 7px;
    }

    .home-animatie .wdha-step i {
        width: 24px;
    }
}


/* ============================================================
   MOBIEL
============================================================ */

@media (max-width: 575.98px) {

    .home-animatie {
        height: 320px;

        margin-bottom: 20px;
    }
}


/* ============================================================
   ZEER KLEIN
============================================================ */

@media (max-width: 399.98px) {

    .home-animatie {
        height: 280px;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .home-animatie .wdha-mouse::after {
        animation: none;
    }
}