/* =========================================================================
   VEP Tech Academy — Home Page Complete Motion & Visual System
   Loaded ONLY on index.php. Zero impact on other pages.
   Brand: Navy #0C1B3A / #081027 · Yellow #FFC72C · Blue #2563EB · Light #F7F9FC
   GPU-friendly (transform & opacity); respects prefers-reduced-motion.
   ========================================================================= */

/* =========================================================================
   1. HERO FIXES & RICH MOTION
   ========================================================================= */
.hx-nowrap {
    white-space: nowrap;
}

.hx-title {
    font-size: clamp(2.1rem, 4.05vw, 3.85rem);
    line-height: 1.1;
}

.hx-rotator {
    display: grid;
    width: 100%;
    max-width: 100%;
    justify-items: start;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-block: 0.16em;
    margin-block: -0.16em;
    margin-top: 0.04em;
    vertical-align: baseline;
}

.hx-word {
    grid-area: 1 / 1;
    display: inline-block;
    position: relative;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(1.95rem, 3.85vw, 3.7rem);
    line-height: 1.18;
    padding-bottom: 0.08em;
    background: linear-gradient(100deg, #FFE07D 0%, #FFC72C 38%, #FFB400 70%, #FFE699 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 115%, 0);
    will-change: transform, opacity;
    transition:
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.36s ease,
        visibility 0s linear 0.56s;
}

.hx-word::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFC72C, rgba(37, 99, 235, 0.85), transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.hx-word.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    animation: hmGoldShimmer 4.5s linear infinite;
    transition:
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.38s ease 0.08s,
        visibility 0s;
}

.hx-word.is-active::after {
    transform: scaleX(1);
}

.hx-word.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translate3d(0, -115%, 0);
    transition:
        transform 0.48s cubic-bezier(0.55, 0, 0.45, 1),
        opacity 0.24s ease,
        visibility 0s linear 0.48s;
}

@keyframes hmGoldShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@media (max-width: 960px) {
    .hx-title { font-size: clamp(2.05rem, 5.2vw, 3.25rem); }
    .hx-rotator { justify-items: center; }
    .hx-word { font-size: clamp(1.95rem, 5vw, 3.15rem); }
    .hx-word::after { transform-origin: center; }
}

@media (max-width: 600px) {
    .hx-title { font-size: clamp(1.7rem, 7.6vw, 2.35rem); line-height: 1.12; }
    .hx-word { font-size: clamp(1.62rem, 7.4vw, 2.25rem); }
}

/* Soft moving navy / blue / yellow glows */
.hx {
    background: linear-gradient(165deg, #081027 0%, #0C1B3A 62%, #081027 100%);
}

.hx-blob-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.62), rgba(12, 27, 58, 0.16) 55%, transparent 72%);
    animation: hmGlow1 15s ease-in-out infinite;
}

.hx-blob-2 {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.48), rgba(12, 27, 58, 0.55) 48%, transparent 72%);
    animation: hmGlow2 19s ease-in-out infinite;
}

.hx-blob-3 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.28), rgba(255, 199, 44, 0.06) 52%, transparent 72%);
    animation: hmGlow3 21s ease-in-out infinite;
}

@keyframes hmGlow1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-65px, 50px, 0) scale(1.12); }
}

@keyframes hmGlow2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(70px, -42px, 0) scale(1.12); }
}

@keyframes hmGlow3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-74px, -34px, 0) scale(1.08); }
}

/* Hero stage SVG thin orbit lines + ambient orbital glide after draw */
.hx-stage .hx-ring { display: none; }

.hx-orbit-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 116%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.hx-orbit-line {
    fill: none;
    stroke-linecap: round;
    transform-origin: 250px 250px;
}

.hx-orbit-outer {
    stroke: rgba(147, 197, 253, 0.38);
    stroke-width: 1.3;
}

.hx-orbit-inner {
    stroke: rgba(255, 199, 44, 0.52);
    stroke-width: 1.45;
}

.hx-orbit-dot {
    fill: #FFC72C;
    filter: drop-shadow(0 0 8px rgba(255, 199, 44, 0.85));
    transform-origin: 250px 250px;
}

.hx-orbit-dot-1 {
    fill: #60A5FA;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.9));
}

.hx-stage.hm-drift .hx-orbit-dot-1 {
    animation: hmHeroOrbSpin 26s linear infinite;
}

.hx-stage.hm-drift .hx-orbit-dot-2 {
    animation: hmHeroOrbSpinRev 20s linear infinite;
}

@keyframes hmHeroOrbSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hmHeroOrbSpinRev {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Hero card glass polish + safe placement clear of instructor's face */
.hx-card {
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 22px 46px rgba(4, 8, 20, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hx-card-mentor {
    border-color: rgba(255, 199, 44, 0.45);
    box-shadow: 0 18px 40px rgba(4, 8, 20, 0.55), 0 0 22px rgba(255, 199, 44, 0.14);
}

.hx-chip {
    background: rgba(12, 27, 58, 0.78);
    border: 1px solid rgba(147, 197, 253, 0.34);
    box-shadow: 0 12px 28px rgba(4, 8, 20, 0.42), 0 0 16px rgba(37, 99, 235, 0.2);
}

.hx-card-live { top: 8%; left: -10%; }
@media (max-width: 1100px) { .hx-card-live { top: 6%; left: -8%; } }
@media (max-width: 960px) { .hx-card-live { top: 4%; left: -12%; } }
@media (max-width: 600px) {
    .hx-orbit-svg { width: 110%; }
    .hx-card-live { top: -2%; left: -4%; }
    .hx-card-cert { right: -4%; bottom: 20%; }
}

/* Pre-paint states when GSAP motion is active */
html.hm-js .hx:not(.hm-fallback) .hx-anim,
html.hm-js .hx:not(.hm-fallback) .hx-visual {
    animation: none;
    opacity: 1;
    transform: none;
}

html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-pill,
html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-title,
html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-sub,
html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-cta .hx-btn,
html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-trust li {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-photo {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.95);
}

html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-card,
html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-chip {
    opacity: 0;
    transform: scale(0.7);
}

html.hm-js .hx:not(.hm-fallback):not(.hm-revealed) .hx-orbit-dot { opacity: 0; }

html.hm-js .hx:not(.hm-fallback) .hx-card,
html.hm-js .hx:not(.hm-fallback) .hx-chip {
    animation: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hx-stage.hm-drift .hx-card-live { animation: hmDriftA 5.2s ease-in-out infinite; }
.hx-stage.hm-drift .hx-card-cert { animation: hmDriftB 5.8s ease-in-out infinite -1.8s; }
.hx-stage.hm-drift .hx-card-mentor { animation: hmMentorDrift 6.4s ease-in-out infinite -0.9s; }
.hx-stage.hm-drift .hx-chip-1 { animation: hmDriftA 4.8s ease-in-out infinite -1.1s; }
.hx-stage.hm-drift .hx-chip-2 { animation: hmDriftB 5.5s ease-in-out infinite -2.6s; }
.hx-stage.hm-drift .hx-chip-3 { animation: hmDriftA 5.0s ease-in-out infinite -1.9s; }
.hx-stage.hm-drift .hx-chip-4 { animation: hmDriftB 6.0s ease-in-out infinite -0.5s; }

@keyframes hmDriftA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hmDriftB { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes hmMentorDrift { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -7px; } }

/* Disable style.css CSS-transition conflict on .reveal when GSAP drives it */
html.hm-js .reveal:not(.hm-done) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: none !important;
}

/* =========================================================================
   2. COUNTERS + PROGRESS RINGS
   ========================================================================= */
.trust-stats {
    padding: 58px 0;
    background:
        radial-gradient(640px 240px at 80% 0%, rgba(37, 99, 235, 0.24), transparent 70%),
        radial-gradient(540px 240px at 18% 100%, rgba(255, 199, 44, 0.14), transparent 70%),
        linear-gradient(180deg, #081027 0%, #0C1B3A 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-grid { gap: 20px; }

.trust-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px rgba(4, 8, 20, 0.28);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.trust-item::before {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    top: 0;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #FFC72C, #2563EB, transparent);
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.trust-item.hm-done::before {
    transform: scaleX(1);
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 199, 44, 0.55);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(4, 8, 20, 0.4), 0 0 28px rgba(255, 199, 44, 0.16);
}

.trust-ring-box {
    position: relative;
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
}

.trust-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.trust-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 6.5;
}

.trust-ring-fill {
    fill: none;
    stroke: #FFC72C;
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-dasharray: 301.59;
    stroke-dashoffset: calc(301.59 * (1 - var(--pct, 95) / 100));
    filter: drop-shadow(0 0 10px rgba(255, 199, 44, 0.55));
}

.trust-ring-box .trust-num { font-size: clamp(1.5rem, 2.4vw, 1.85rem); }

@media (max-width: 760px) {
    .trust-stats { padding: 40px 0; }
    .trust-grid { gap: 12px; }
    .trust-item { padding: 20px 12px; border-radius: 16px; }
    .trust-ring-box { width: 92px; height: 92px; }
    .trust-ring-box .trust-num { font-size: 1.4rem; }
}

/* =========================================================================
   3. TECH ECOSYSTEM ORBIT (SONAR PULSE + DUAL RING ROTATION + HOVER PAUSE)
   ========================================================================= */
.to-section {
    position: relative;
    padding: clamp(72px, 8vw, 108px) 0;
    overflow: hidden;
    background:
        radial-gradient(640px 360px at 78% 44%, rgba(37, 99, 235, 0.1), transparent 65%),
        radial-gradient(480px 300px at 84% 66%, rgba(255, 199, 44, 0.16), transparent 65%),
        linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--line, #E7EBF3);
}

.to-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: center;
}

.to-copy .sec-title { margin-top: 16px; }
.to-copy .sec-sub { margin-top: 16px; }

.to-highlights { margin: 24px 0 30px; display: grid; gap: 11px; }
.to-highlights li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--slate-600, #475569);
    font-weight: 500;
}
.to-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFF6DC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
    border: 1px solid rgba(255, 199, 44, 0.55);
}

.to-stage {
    --orbit-r: 192px;
    position: relative;
    width: min(100%, 490px);
    aspect-ratio: 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.to-glow {
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(255, 199, 44, 0.15) 48%, transparent 72%);
    filter: blur(24px);
    pointer-events: none;
}

.to-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 199, 44, 0.45);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    animation: hmSonar 3.8s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.to-pulse-2 {
    border-color: rgba(37, 99, 235, 0.35);
    animation-delay: 1.9s;
}

@keyframes hmSonar {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

.to-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.to-ring-outer {
    width: 82%;
    height: 82%;
    border: 1.5px dashed rgba(37, 99, 235, 0.28);
    animation: hmRingSpinRev 44s linear infinite;
}

.to-ring-mid {
    width: 60%;
    height: 60%;
    border: 1.5px dashed rgba(255, 199, 44, 0.48);
    animation: hmRingSpin 32s linear infinite;
}

.to-ring-inner {
    width: 38%;
    height: 38%;
    border: 1px solid rgba(12, 27, 58, 0.12);
}

@keyframes hmRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hmRingSpinRev {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.to-hub {
    position: relative;
    z-index: 3;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(155deg, #0C1B3A 0%, #081027 100%);
    border: 2px solid rgba(255, 199, 44, 0.75);
    box-shadow: 0 22px 48px rgba(8, 16, 39, 0.32), 0 0 0 8px rgba(255, 199, 44, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.to-hub-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    padding: 5px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.to-hub-logo img { width: 100%; height: 100%; object-fit: contain; }
.to-hub-mark { font: 800 1.4rem/1 var(--display, sans-serif); color: #081027; }
.to-hub-label {
    font: 700 0.72rem/1 var(--mono, monospace);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFC72C;
}

.to-rotor {
    position: absolute;
    inset: 0;
    z-index: 4;
    animation: hmOrbitSpin 28s linear infinite;
    will-change: transform;
}

.to-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit-r))) rotate(calc(-1 * var(--angle)));
}

.to-node-inner {
    animation: hmOrbitCounter 28s linear infinite;
    will-change: transform;
}

.to-node-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 14px 30px rgba(12, 27, 58, 0.12);
    transform: translate(-50%, -50%);
    white-space: nowrap;
    cursor: default;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.to-node-card:hover,
.to-node-card:focus-visible {
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #FFC72C;
    box-shadow: 0 20px 40px rgba(12, 27, 58, 0.2), 0 0 0 4px rgba(255, 199, 44, 0.32);
    outline: none;
}

.to-node-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--node-color, #2563EB) 14%, #fff);
    color: var(--node-color, #2563EB);
}

.to-node-txt strong { display: block; font: 800 0.88rem/1.15 var(--display, sans-serif); color: #0C1B3A; }
.to-node-txt span { display: block; font-size: 0.7rem; color: #64748B; margin-top: 2px; }

.to-stage:hover .to-rotor,
.to-stage:hover .to-node-inner,
.to-stage:hover .to-ring-outer,
.to-stage:hover .to-ring-mid,
.to-stage:focus-within .to-rotor,
.to-stage:focus-within .to-node-inner,
.to-section.hm-offscreen .to-rotor,
.to-section.hm-offscreen .to-node-inner,
.to-section.hm-offscreen .to-ring-outer,
.to-section.hm-offscreen .to-ring-mid,
.to-section.hm-offscreen .to-pulse {
    animation-play-state: paused !important;
}

@keyframes hmOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hmOrbitCounter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

@media (max-width: 1160px) { .to-stage { --orbit-r: 170px; width: min(100%, 440px); } }

@media (max-width: 980px) {
    .to-layout { grid-template-columns: 1fr; gap: 38px; }
    .to-copy { text-align: center; max-width: 620px; margin: 0 auto; }
    .to-copy .eyebrow { justify-content: center; }
    .to-copy .sec-sub { margin-left: auto; margin-right: auto; }
    .to-highlights { text-align: left; max-width: 440px; margin: 22px auto 26px; }
    .to-stage { --orbit-r: 182px; width: min(100%, 460px); }
}

@media (max-width: 760px) {
    .to-stage {
        width: 100%;
        max-width: 480px;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .to-glow, .to-ring, .to-pulse { display: none; }
    .to-hub {
        width: auto;
        height: auto;
        margin: 0 auto 4px;
        padding: 10px 20px;
        border-radius: 999px;
        flex-direction: row;
        gap: 10px;
    }
    .to-hub-logo { width: 34px; height: 34px; border-radius: 9px; padding: 3px; }
    .to-rotor { position: static; inset: auto; animation: none !important; display: flex; flex-direction: column; gap: 10px; }
    .to-node { position: static; left: auto; top: auto; width: 100%; height: auto; transform: none !important; }
    .to-node-inner { animation: none !important; }
    .to-node-card { transform: none !important; width: 100%; padding: 14px 16px; border-radius: 16px; justify-content: flex-start; }
    .to-node-card:hover, .to-node-card:focus-visible { transform: translateY(-2px) !important; }
}

/* =========================================================================
   4. COURSE CARDS — 3D TILT, SEAT BAR SWEEP, YELLOW GLOW & BATCH PULSE
   ========================================================================= */
.cx-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.cx-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(360px circle at var(--hm-mx, 50%) var(--hm-my, 50%), rgba(255, 199, 44, 0.2), transparent 65%);
    transition: opacity 0.3s ease;
}

.cx-card:hover::before { opacity: 1; }

.cx-card:hover {
    border-color: rgba(255, 199, 44, 0.85);
    box-shadow:
        0 26px 60px rgba(12, 27, 58, 0.18),
        0 0 0 2px rgba(255, 199, 44, 0.45),
        0 14px 40px rgba(255, 199, 44, 0.28);
}

.cx-bar span {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.cx-card.hm-done .cx-bar span {
    transform: scaleX(1);
}

.batch-countdown .cd-box[data-unit="s"] {
    background: linear-gradient(135deg, #0C1B3A, #1B3363);
    color: #FFC72C;
    border: 1px solid rgba(255, 199, 44, 0.45);
    animation: hmTickPulse 1s ease-in-out infinite;
}

@keyframes hmTickPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(255, 199, 44, 0); }
}

.courses-section.hm-offscreen .cd-box[data-unit="s"],
.courses-section.hm-offscreen .cx-dot {
    animation-play-state: paused !important;
}

.batch-pill {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.batch-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(12, 27, 58, 0.08);
}

/* =========================================================================
   5. FREE VIDEOS & DEMO PLAY PULSE
   ========================================================================= */
.vids-card {
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.vids-card:hover {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 24px 52px rgba(12, 27, 58, 0.14), 0 0 0 1.5px rgba(255, 199, 44, 0.45);
}

.demo-play::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 199, 44, 0.6);
    animation: hmDemoRipple 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes hmDemoRipple {
    0% { transform: scale(0.92); opacity: 0.9; }
    100% { transform: scale(1.52); opacity: 0; }
}

.demo-section.hm-offscreen .demo-play::before {
    animation-play-state: paused !important;
}

/* =========================================================================
   6. LEARNING JOURNEY — SCROLL-DRAWN BEAM + COMET TIP + LIT STEPS
   ========================================================================= */
.roadmap-track::before { opacity: 0.38; }

.roadmap-step {
    z-index: 2;
}

.hm-roadmap-rail {
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 199, 44, 0.18);
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.hm-roadmap-fill {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563EB 0%, #FFC72C 55%, #FFB400 100%);
    box-shadow: 0 0 16px rgba(255, 199, 44, 0.65);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

.roadmap-step .rs-icon {
    background: #fff;
}

.roadmap-step .rs-icon,
.roadmap-step .rs-num,
.roadmap-step h4 {
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.roadmap-step.is-lit .rs-icon {
    border-color: #FFC72C;
    background: #FFFBEB;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 14px 32px rgba(255, 183, 0, 0.28), 0 0 0 5px rgba(255, 199, 44, 0.24);
}

.roadmap-step.is-lit .rs-icon svg { stroke: #0C1B3A; }
.roadmap-step.is-lit .rs-num { transform: scale(1.16); box-shadow: 0 6px 18px rgba(255, 183, 0, 0.6); }
.roadmap-step.is-lit h4 { color: #2563EB; }

@media (max-width: 980px) {
    .hm-roadmap-rail {
        top: 28px;
        bottom: 28px;
        left: 33px;
        right: auto;
        width: 4px;
        height: auto;
    }
    .hm-roadmap-fill {
        background: linear-gradient(180deg, #2563EB 0%, #FFC72C 55%, #FFB400 100%);
        transform-origin: top center;
        transform: scaleY(0);
    }
}

/* =========================================================================
   7. WHY US, TESTIMONIALS, COMPANIES, CERTIFICATE, FAQ
   ========================================================================= */
.why-item {
    position: relative;
    overflow: hidden;
}

.why-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563EB, #FFC72C);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-item:hover {
    border-color: rgba(255, 199, 44, 0.65);
    box-shadow: 0 22px 48px rgba(12, 27, 58, 0.14), 0 0 0 1px rgba(255, 199, 44, 0.25);
}
.why-item:hover::after { transform: scaleX(1); }

.why-ico { transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease; }
.why-item:hover .why-ico { transform: scale(1.1) rotate(-5deg); background: #FFC72C; }

.testi-card-lg .tq-mark {
    animation: hmFloatQuote 5s ease-in-out infinite;
}

@keyframes hmFloatQuote {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

.testi-section.hm-offscreen .tq-mark { animation-play-state: paused !important; }

.gr-card { transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease; }
.gr-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 199, 44, 0.65);
    box-shadow: 0 16px 36px rgba(12, 27, 58, 0.12);
}

.companies-section.hm-offscreen .co-track { animation-play-state: paused !important; }

/* Certificate shine sweep */
.cert-card { overflow: hidden; }

.cert-card::after {
    content: "";
    position: absolute;
    top: -15%;
    left: 0;
    width: 50%;
    height: 130%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 199, 44, 0.28) 60%, transparent 100%);
    transform: translate3d(-150%, 0, 0) skewX(-20deg);
}

.cert-card.hm-cert-shine::after {
    animation: hmCertSweep 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cert-preview-wrap:hover .cert-card::after {
    animation: hmCertSweepHover 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hmCertSweep {
    0% { opacity: 0; transform: translate3d(-150%, 0, 0) skewX(-20deg); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(340%, 0, 0) skewX(-20deg); }
}

@keyframes hmCertSweepHover {
    0% { opacity: 0; transform: translate3d(-150%, 0, 0) skewX(-20deg); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(340%, 0, 0) skewX(-20deg); }
}

/* Smooth FAQ accordion */
.faq-item {
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.faq-item:hover { transform: translateY(-2px); }
.faq-a-wrap { transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-a {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.38s ease 0.08s, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

/* =========================================================================
   8. CONTACT ANIMATED GRADIENT HEADLINE + SOFT GLOW & BUTTON SHINE
   ========================================================================= */
.contact-cta-section .section-head { position: relative; }

.contact-cta-section .section-head::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(560px, 88%);
    height: 100px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.2), rgba(255, 199, 44, 0.22) 55%, transparent 75%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
    animation: hmContactGlow 5s ease-in-out infinite;
}

@keyframes hmContactGlow {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.contact-cta-section.hm-offscreen .section-head::before,
.contact-cta-section.hm-offscreen .sec-title {
    animation-play-state: paused !important;
}

.contact-cta-section .section-head > * { position: relative; z-index: 1; }

.contact-cta-section .sec-title {
    background: linear-gradient(105deg, #0C1B3A 0%, #2563EB 32%, #D97706 62%, #2563EB 84%, #0C1B3A 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 22px rgba(37, 99, 235, 0.18));
    animation: hmGoldShimmer 6s linear infinite;
}

/* Single GPU shine on hover across home CTA buttons */
.hx-btn-gold,
.hx-btn-glass,
.cx-btn-gold,
.btn-primary,
.vids-btn,
.nav-cta {
    position: relative;
    overflow: hidden;
}

.hx-btn-gold::after,
.hx-btn-glass::after,
.cx-btn-gold::after,
.btn-primary::after,
.vids-btn::after,
.nav-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    opacity: 0;
    transform: translate3d(-140%, 0, 0) skewX(-20deg);
    animation: none;
}

.hx-btn-glass::after,
.vids-btn::after {
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hx-btn-gold:hover::after,
.hx-btn-gold:focus-visible::after,
.hx-btn-glass:hover::after,
.hx-btn-glass:focus-visible::after,
.cx-btn-gold:hover::after,
.cx-btn-gold:focus-visible::after,
.btn-primary:hover::after,
.btn-primary:focus-visible::after,
.vids-btn:hover::after,
.vids-btn:focus-visible::after,
.nav-cta:hover::after,
.nav-cta:focus-visible::after {
    animation: hmBtnShine 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hmBtnShine {
    0% { opacity: 0; transform: translate3d(-140%, 0, 0) skewX(-20deg); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(340%, 0, 0) skewX(-20deg); }
}

/* =========================================================================
   9. OFF-SCREEN PAUSE & REDUCED-MOTION ACCESSIBILITY
   ========================================================================= */
.hx.hm-offscreen .hx-blob,
.hx.hm-offscreen .hx-track,
.hx.hm-offscreen .hx-eq i,
.hx.hm-offscreen .hx-play::before,
.hx.hm-offscreen .hx-pill-live span,
.hx.hm-offscreen .hx-card,
.hx.hm-offscreen .hx-chip,
.hx.hm-offscreen .hx-orbit-dot,
.hx.hm-offscreen .hx-word.is-active {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    .hx *, .hx *::before, .hx *::after,
    .to-section *, .to-section *::before, .to-section *::after,
    .cert-card::after, .faq-a-wrap, .faq-a,
    .contact-cta-section *, .contact-cta-section *::before,
    .demo-play::before, .batch-countdown .cd-box {
        animation: none !important;
        transition: none !important;
    }
    .hx-word { transition: none !important; transform: none !important; }
    .hx-word.is-active { opacity: 1; visibility: visible; }
    .hx-word::after { transform: scaleX(1); }
    .hx-stage .hx-card,
    .hx-stage .hx-chip,
    .hx-photo,
    .hx-pill,
    .hx-title,
    .hx-sub,
    .hx-cta .hx-btn,
    .hx-trust li,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .cx-bar span,
    .hm-roadmap-fill {
        transform: scale(1) !important;
    }
    .faq-a { opacity: 1 !important; transform: none !important; }
}
