/* ===================================
   3D COMPLIANCE SHIELD & WEB3 GALLERY
   =================================== */

/* --- 09.1 COMPLIANCE SHIELD --- */
.compliance-3d-container {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.compliance-info-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #10b981;
    padding: 15px 25px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    min-width: 300px;
    z-index: 100;
}

.compliance-info-panel.visible {
    opacity: 1;
}

.shield-system {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: shieldFloat 6s ease-in-out infinite;
}

/* Central Core */
.shield-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #0f172a 30%, #1e293b 100%);
    border: 2px solid #10b981;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.shield-core i {
    font-size: 50px;
    color: #10b981;
    filter: drop-shadow(0 0 10px #10b981);
}

/* Rotating Rings */
.shield-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.3);
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: spinRight 10s linear infinite;
    border-color: rgba(16, 185, 129, 0.5);
}

.ring-2 {
    width: 280px;
    height: 280px;
    animation: spinLeft 15s linear infinite;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.ring-3 {
    width: 360px;
    height: 360px;
    animation: spinRight 25s linear infinite;
    border: 1px dotted rgba(16, 185, 129, 0.4);
}

/* Orbiting Checks (Satellites) */
.check-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.check-node:hover {
    transform: scale(1.2);
    background: #10b981;
    color: #000;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    z-index: 20;
}

/* Positioning Satellites */
.node-kyc {
    transform: translate(-50%, -50%) rotate(0deg) translate(140px) rotate(0deg);
    animation: orbitKYC 15s linear infinite;
}

.node-aml {
    transform: translate(-50%, -50%) rotate(120deg) translate(140px) rotate(-120deg);
    animation: orbitAML 15s linear infinite;
}

.node-tr {
    transform: translate(-50%, -50%) rotate(240deg) translate(140px) rotate(-240deg);
    animation: orbitTR 15s linear infinite;
}

@keyframes spinRight {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes shieldFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes orbitKYC {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translate(140px) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg) translate(140px) rotate(-360deg);
    }
}

@keyframes orbitAML {
    from {
        transform: translate(-50%, -50%) rotate(120deg) translate(140px) rotate(-120deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(480deg) translate(140px) rotate(-480deg);
    }
}

@keyframes orbitTR {
    from {
        transform: translate(-50%, -50%) rotate(240deg) translate(140px) rotate(-240deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(600deg) translate(140px) rotate(-600deg);
    }
}

/* --- 10. WEB3 TOKEN GALLERY --- */
.web3-gallery-container {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin: 50px 0;
    overflow: hidden;
    /* CYBER GRID BACKGROUND */
    background-color: #050b14;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.gallery-carousel {
    position: relative;
    width: 250px;
    height: 350px;
    transform-style: preserve-3d;
    width: 250px;
    height: 350px;
    transform-style: preserve-3d;
    animation: gallerySpin 8s linear infinite;
    /* Faster Speed */
}

.gallery-carousel:hover {
    animation-play-state: paused;
}

.token-card-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    /* Or visible if double sided */
    /* Only 3 cards, arranged in triangle */
}

/* Card Positioning (Triangle) */
/* Card Positioning (Triangle - Tighter Spacing) */
.token-card-1 {
    transform: rotateY(0deg) translateZ(190px);
    border-color: #3b82f6;
}

.token-card-2 {
    transform: rotateY(120deg) translateZ(190px);
    border-color: #a855f7;
}

.token-card-3 {
    transform: rotateY(240deg) translateZ(190px);
    border-color: #f59e0b;
}

.token-card-3d h4 {
    font-size: 24px;
    margin: 15px 0;
}

.token-card-3d i {
    font-size: 50px;
    margin-bottom: 20px;
}

.token-card-3d p {
    font-size: 14px;
    text-align: center;
    color: #cbd5e1;
}

/* Glow Effects */
.token-card-1 i {
    color: #3b82f6;
    drop-shadow: 0 0 15px #3b82f6;
}

.token-card-2 i {
    color: #a855f7;
    drop-shadow: 0 0 15px #a855f7;
}

.token-card-3 i {
    color: #f59e0b;
    drop-shadow: 0 0 15px #f59e0b;
}

@keyframes gallerySpin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .shield-system {
        transform: scale(0.7);
    }

    .gallery-carousel {
        animation: none;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        height: auto;
    }

    .token-card-3d {
        position: relative;
        transform: none !important;
        margin-bottom: 20px;
        height: 250px;
    }

    .web3-gallery-container {
        height: auto;
        perspective: none;
    }
}

/* ===================================
   3D ACADEMY VISUALIZATION (KNOWLEDGE CUBE)
   =================================== */

.academy-3d-container {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    /* Education/Library Theme Background */
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.knowledge-cube {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    animation: cubeSpin 15s linear infinite;
    cursor: pointer;
}

.knowledge-cube.frozen {
    animation-play-state: paused;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    backface-visibility: hidden;
    /* Or visible for transparency */
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
    transition: all 0.3s;
    user-select: none;
}

.cube-face:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #a855f7;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4);
}

.cube-face i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #a855f7;
    filter: drop-shadow(0 0 10px #a855f7);
}

.cube-face p {
    font-size: 14px;
    font-weight: normal;
    color: #cbd5e1;
    margin-top: 10px;
}

/* Position Faces */
.face-front {
    transform: rotateY(0deg) translateZ(125px);
}

.face-back {
    transform: rotateY(180deg) translateZ(125px);
}

.face-right {
    transform: rotateY(90deg) translateZ(125px);
}

.face-left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face-top {
    transform: rotateX(90deg) translateZ(125px);
}

.face-bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes cubeSpin {
    from {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

/* Academy Orbital Rings (Optional Decor) */
.academy-orbit {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px dashed rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: spinLeft 20s linear infinite;
    pointer-events: none;
}

/* Info Panel (reusing similar style to Compliance) */
.academy-info {
    position: absolute;
    bottom: 30px;
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #64748b;
    font-style: italic;
    color: #94a3b8;
}

/* ===================================
   3D FLIP CARDS (DICTIONARY)
   =================================== */

.dict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front {
    background: #1e293b;
    color: #94a3b8;
}

.flip-card-back {
    background: rgba(16, 185, 129, 0.1);
    color: white;
    transform: rotateY(180deg);
    border: 1px solid #10b981;
}

.flip-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.flip-card i {
    font-size: 30px;
    margin-bottom: 15px;
}

/* ===================================
   3D PARALLAX WALLET
   =================================== */

.wallet-3d-container {
    perspective: 1000px;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallet-card-3d {
    width: 380px;
    height: 240px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wallet-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-face-front {
    z-index: 2;
}

.wallet-face-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #331f2d 0%, #0f172a 100%);
    border-color: #ef4444;
}

.wallet-chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 6px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}