
/* =========================================================
   CATHUND DIGITAL — PHASE 13 HOME HERO VIDEO
   Adds cinematic education-technology motion to Home hero.
   Existing hero content remains above the video.
   ========================================================= */

.hero.cathund-video-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg,#160327,#391064 55%,#702db5);
}

.hero.cathund-video-hero .cathund-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -4;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.1s ease;
}

.hero.cathund-video-hero.video-ready .cathund-hero-video {
    opacity: 1;
}

.hero.cathund-video-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(21,3,40,.94) 0%,
            rgba(32,5,58,.88) 34%,
            rgba(47,10,85,.72) 62%,
            rgba(54,12,93,.65) 100%);
}

.hero.cathund-video-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 38%, rgba(170,79,235,.28), transparent 28%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto,44px 44px,44px 44px;
}

.hero.cathund-video-hero > .container,
.hero.cathund-video-hero > .hero-grid,
.hero.cathund-video-hero .hero-grid {
    position: relative;
    z-index: 2;
}

.cathund-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .69rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cathund-video-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f2c94c;
    box-shadow: 0 0 0 0 rgba(242,201,76,.7);
    animation: cathundVideoPulse 2s infinite;
}

@keyframes cathundVideoPulse {
    0% { box-shadow: 0 0 0 0 rgba(242,201,76,.65); }
    70% { box-shadow: 0 0 0 8px rgba(242,201,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(242,201,76,0); }
}

/* Preserve accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    .hero.cathund-video-hero .cathund-hero-video {
        display: none !important;
    }
    .cathund-video-badge .pulse-dot {
        animation: none;
    }
}

/* Protect mobile performance and data usage. */
@media (max-width: 760px) {
    .hero.cathund-video-hero .cathund-hero-video {
        display: none;
    }
    .hero.cathund-video-hero::before {
        background:
          linear-gradient(135deg,rgba(21,3,40,.97),rgba(65,17,109,.92));
    }
}
