/* HUB 3D STYLES */

/* --- 1. HERO 3D CUBE --- */
.cube-scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2) inset;
    backdrop-filter: blur(5px);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Animation Keyframes */
@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Glow Effect inside Cube */
.cube__face i {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

/* --- 2. TILT CARDS --- */
/* The base card style is in index.html, we modify the transform behavior here via JS mostly, 
   but we add some lightning effects */
.universe-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.universe-card:hover {
    /* Enhanced glow on hover */
    box-shadow:
        0 20px 40px -10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.1) inset;
}

.card-icon {
    transform: translateZ(30px);
    /* Parallax Effect */
}

.card-title {
    transform: translateZ(20px);
}

.card-desc {
    transform: translateZ(10px);
}

/* --- 3. LINKEDIN BUTTON --- */
.linkedin-btn {
    background: #0077b5;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.linkedin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.linkedin-btn:hover::after {
    left: 100%;
}

/* --- 4. INSTITUTIONAL INFRASTRUCTURE HUB --- */
.toolkit-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 120px;
}

.toolkit-intro {
    flex: 1;
    max-width: 450px;
}

.toolkit-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.toolkit-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.toolkit-desc {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.toolkit-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.toolkit-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.toolkit-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--card-accent);
}

.toolkit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--card-accent);
    transition: transform 0.3s;
}

.toolkit-card:hover .toolkit-icon {
    transform: scale(1.1) rotate(5deg);
}

.toolkit-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.toolkit-card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.toolkit-card-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--card-accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* --- 5. LIVE MARKET ACTIVITY FEED --- */
.market-activity-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.market-activity-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    backdrop-filter: blur(10px);
}

.activity-label {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-label .live-tag {
    font-size: 10px;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-label .live-tag i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

.activity-label .sub-tag {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

#market-activity-feed {
    flex: 1;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.activity-event {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.activity-event.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.event-time {
    font-size: 11px;
    color: #475569;
}

.event-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.event-content:hover {
    color: #3b82f6;
}

.event-asset { color: white; }
.event-divider { color: #334155; }
.event-infra { color: #94a3b8; font-size: 14px; }
.event-value { color: #10b981; }

.event-arrow {
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.event-content:hover .event-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- 6. TERMINAL SIDE PANEL --- */
.terminal-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #020617;
    border-left: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 20000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.terminal-panel.open {
    right: 0;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #3b82f6;
    letter-spacing: 2px;
}

.panel-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.panel-close:hover {
    color: white;
}

.panel-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.panel-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.panel-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #475569;
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.stat-value.highlight {
    color: #3b82f6;
}

.panel-data-table {
    margin-bottom: 40px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.table-row span:first-child {
    color: #64748b;
}

.table-row .val {
    color: white;
    font-weight: 600;
}

.panel-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 40px;
}

.status-live { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-pilot { background: rgba(245, 158, 0.1); color: #f59e0b; }

.copy-btn-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.copy-btn-mini:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.highlight-blue { color: #3b82f6; font-weight: 700; }
.highlight-green { color: #10b981; font-weight: 700; }

.panel-actions-pro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.panel-actions-pro .panel-btn-primary,
.panel-actions-pro .panel-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 13px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.panel-actions-pro .panel-btn-primary {
    background: #3b82f6;
    color: #020617;
    border: none;
}

.panel-actions-pro .panel-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.panel-actions-pro .panel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.panel-actions-pro .panel-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.panel-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.panel-btn-ghost:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 1024px) {
    .toolkit-section {
        flex-direction: column;
        gap: 40px;
    }
    .toolkit-intro {
        max-width: 100%;
        position: static;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .toolkit-grid {
        grid-template-columns: 1fr;
    }
    .toolkit-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .terminal-panel {
        width: 100%;
        right: -100%;
    }
    .market-activity-container {
        flex-direction: column;
        align-items: flex-start;
    }
}