/* ==========================================================================
   WPForgeHub 3D Isometric Interactive Stage Styles
   ========================================================================== */

.wpfh-hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .wpfh-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
}

/* 3D Stage Wrapper */
.wpfh-stage-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

@media (max-width: 576px) {
    .wpfh-stage-viewport {
        height: 380px;
    }
}

/* Glowing Radial Floor */
.wpfh-stage-floor {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
    filter: blur(25px);
    transform: rotateX(70deg) translateZ(-160px);
    pointer-events: none;
    z-index: 1;
}

/* Isometric Digital Grid */
.wpfh-stage-grid {
    position: absolute;
    width: 420px;
    height: 420px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: rotateX(65deg) rotateZ(45deg) translateZ(-140px);
    border-radius: 24px;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

/* 3D Rotating Assembly Core */
.wpfh-stage-assembly {
    position: relative;
    width: 340px;
    height: 340px;
    transform-style: preserve-3d;
    transform: rotateX(22deg) rotateY(-28deg);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   3D CUBE BASE COMPONENT
   -------------------------------------------------------------------------- */
.wpfh-3d-cube {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    cursor: pointer;
}

.wpfh-cube-face {
    position: absolute;
    box-sizing: border-box;
    backface-visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 800;
    user-select: none;
}

/* ==========================================================================
   1. CENTRAL HUB CORE (Frosted Glass WP Prism)
   ========================================================================== */
.wpfh-core-cube {
    width: 90px;
    height: 90px;
    left: calc(50% - 45px);
    top: calc(50% - 45px);
    animation: wpfh-core-float 5s ease-in-out infinite;
    z-index: 10;
}

.wpfh-core-cube .wpfh-cube-face {
    width: 90px;
    height: 90px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.3), 0 0 20px rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    color: #ffffff;
}

.wpfh-core-cube .face-front  { transform: rotateY(0deg) translateZ(45px); }
.wpfh-core-cube .face-back   { transform: rotateY(180deg) translateZ(45px); }
.wpfh-core-cube .face-right  { transform: rotateY(90deg) translateZ(45px); background: rgba(15, 23, 42, 0.85); }
.wpfh-core-cube .face-left   { transform: rotateY(-90deg) translateZ(45px); background: rgba(15, 23, 42, 0.65); }
.wpfh-core-cube .face-top    { transform: rotateX(90deg) translateZ(45px); background: rgba(56, 189, 248, 0.25); }
.wpfh-core-cube .face-bottom { transform: rotateX(-90deg) translateZ(45px); background: rgba(15, 23, 42, 0.95); }

.wpfh-core-symbol {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
}

/* ==========================================================================
   2. ORBITING MICRO-PLUGIN CUBES
   ========================================================================== */
.wpfh-sub-cube {
    width: 64px;
    height: 64px;
}

.wpfh-sub-cube .wpfh-cube-face {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.wpfh-sub-cube .face-front  { transform: rotateY(0deg) translateZ(32px); }
.wpfh-sub-cube .face-back   { transform: rotateY(180deg) translateZ(32px); }
.wpfh-sub-cube .face-right  { transform: rotateY(90deg) translateZ(32px); }
.wpfh-sub-cube .face-left   { transform: rotateY(-90deg) translateZ(32px); }
.wpfh-sub-cube .face-top    { transform: rotateX(90deg) translateZ(32px); }
.wpfh-sub-cube .face-bottom { transform: rotateX(-90deg) translateZ(32px); }

/* --- BLOCK 1: AI (Cyan & Sky Blue) --- */
.wpfh-cube-ai {
    left: calc(50% + 75px);
    top: calc(50% - 115px);
    animation: wpfh-float-ai 4.2s ease-in-out infinite;
}
.wpfh-cube-ai .wpfh-cube-face {
    background: rgba(14, 165, 233, 0.35);
    border: 1.5px solid #38bdf8;
    box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.4), 0 0 25px rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
}
.wpfh-cube-ai .face-top { background: rgba(56, 189, 248, 0.65); }
.wpfh-cube-ai .face-right { background: rgba(2, 132, 199, 0.45); }

/* --- BLOCK 2: WOO (Orange & Amber) --- */
.wpfh-cube-woo {
    left: calc(50% - 145px);
    top: calc(50% + 55px);
    animation: wpfh-float-woo 4.8s ease-in-out infinite 0.6s;
}
.wpfh-cube-woo .wpfh-cube-face {
    background: rgba(249, 115, 22, 0.35);
    border: 1.5px solid #fb923c;
    box-shadow: inset 0 0 18px rgba(249, 115, 22, 0.4), 0 0 25px rgba(249, 115, 22, 0.35);
    color: #ffedd5;
}
.wpfh-cube-woo .face-top { background: rgba(251, 146, 60, 0.65); }
.wpfh-cube-woo .face-right { background: rgba(234, 88, 12, 0.45); }

/* --- BLOCK 3: SPEED (Emerald Green) --- */
.wpfh-cube-speed {
    left: calc(50% - 135px);
    top: calc(50% - 110px);
    animation: wpfh-float-speed 5.2s ease-in-out infinite 1.2s;
}
.wpfh-cube-speed .wpfh-cube-face {
    background: rgba(16, 185, 129, 0.35);
    border: 1.5px solid #34d399;
    box-shadow: inset 0 0 18px rgba(16, 185, 129, 0.4), 0 0 25px rgba(16, 185, 129, 0.35);
    color: #d1fae5;
}
.wpfh-cube-speed .face-top { background: rgba(52, 211, 153, 0.65); }
.wpfh-cube-speed .face-right { background: rgba(5, 150, 105, 0.45); }

/* --- BLOCK 4: MEDIA & DEV (Purple & Indigo) --- */
.wpfh-cube-dev {
    left: calc(50% + 80px);
    top: calc(50% + 65px);
    animation: wpfh-float-dev 4.5s ease-in-out infinite 0.9s;
}
.wpfh-cube-dev .wpfh-cube-face {
    background: rgba(168, 85, 247, 0.35);
    border: 1.5px solid #c084fc;
    box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.4), 0 0 25px rgba(168, 85, 247, 0.35);
    color: #f3e8ff;
}
.wpfh-cube-dev .face-top { background: rgba(192, 132, 252, 0.65); }
.wpfh-cube-dev .face-right { background: rgba(147, 51, 234, 0.45); }

/* Hover States & Dynamic Interactions */
.wpfh-3d-cube:hover {
    transform: scale3d(1.15, 1.15, 1.15) translateZ(35px) !important;
    filter: brightness(1.25);
    z-index: 25;
}

.wpfh-cube-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%) translateZ(40px);
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.wpfh-3d-cube:hover .wpfh-cube-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateZ(55px);
}

/* Light Beam Connectors */
.wpfh-stage-connectors {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes wpfh-core-float {
    0%, 100% {
        transform: translateZ(0px) rotateY(0deg);
    }
    50% {
        transform: translateZ(22px) rotateY(8deg);
    }
}

@keyframes wpfh-float-ai {
    0%, 100% {
        transform: translateZ(10px) translateY(0px) rotateY(-5deg);
    }
    50% {
        transform: translateZ(35px) translateY(-14px) rotateY(12deg);
    }
}

@keyframes wpfh-float-woo {
    0%, 100% {
        transform: translateZ(5px) translateY(0px) rotateY(8deg);
    }
    50% {
        transform: translateZ(25px) translateY(-16px) rotateY(-10deg);
    }
}

@keyframes wpfh-float-speed {
    0%, 100% {
        transform: translateZ(15px) translateY(0px) rotateY(5deg);
    }
    50% {
        transform: translateZ(38px) translateY(-12px) rotateY(-8deg);
    }
}

@keyframes wpfh-float-dev {
    0%, 100% {
        transform: translateZ(0px) translateY(0px) rotateY(-8deg);
    }
    50% {
        transform: translateZ(28px) translateY(-15px) rotateY(10deg);
    }
}

/* Mini feature pills underneath */
.wpfh-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.wpfh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #94a3b8;
    backdrop-filter: blur(8px);
}
.wpfh-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
