/* ==========================================================================
   InoConnect x Framer Components: WorkshopExperience & AdvancedBentoGrid
   Futuristic dark glassmorphism, 3D modular cards, magnetic spotlight,
   holographic core sphere, floating particle field, and responsive Bento Grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Workshop Experience Component Styles
   -------------------------------------------------------------------------- */

#growth-workshop {
    background-color: #060810 !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

#growth-workshop h2 {
    color: #ffffff !important;
}

#growth-workshop p {
    color: #cbd5e1 !important;
}

.workshop-container {
    position: relative;
    width: 100%;
    min-height: 780px;
    background-color: #07090e;
    overflow: hidden;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(65, 105, 225, 0.15);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
}

/* Ambient Shifting Background Gradients */
.workshop-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.65;
    background: radial-gradient(circle at 20% 30%, rgba(65, 105, 225, 0.18) 0%, transparent 55%),
                radial-gradient(circle at 80% 70%, rgba(255, 117, 24, 0.14) 0%, transparent 55%),
                radial-gradient(circle at 50% 50%, rgba(68, 215, 168, 0.16) 0%, transparent 60%);
    animation: workshop-ambient-shift 12s ease-in-out infinite alternate;
}

@keyframes workshop-ambient-shift {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: scale(1.08) rotate(3deg);
        filter: hue-rotate(25deg);
    }
    100% {
        transform: scale(1) rotate(-2deg);
        filter: hue-rotate(-20deg);
    }
}

/* Magnetic Spotlight Cursor Follower */
.workshop-spotlight {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 215, 168, 0.12) 0%, rgba(65, 105, 225, 0.06) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.workshop-container:hover .workshop-spotlight {
    opacity: 1;
}

/* Dynamic Floating Particles Canvas */
.workshop-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Interactive Central Holographic Sphere / Core */
.workshop-nexus-wrapper {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0 3.5rem 0;
}

.workshop-sphere-anchor {
    position: relative;
    width: 130px;
    height: 130px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-sphere-body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(68, 215, 168, 0.45) 0%, rgba(65, 105, 225, 0.3) 60%, rgba(10, 15, 30, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(68, 215, 168, 0.7);
    box-shadow: 0 0 50px rgba(68, 215, 168, 0.7),
                inset 0 0 35px rgba(68, 215, 168, 0.45),
                0 0 90px rgba(65, 105, 225, 0.4);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-sphere-anchor:hover .workshop-sphere-body {
    transform: scale(1.18);
    box-shadow: 0 0 70px rgba(68, 215, 168, 0.95),
                inset 0 0 45px rgba(68, 215, 168, 0.7),
                0 0 130px rgba(65, 105, 225, 0.6);
}

/* Inner Spinning Geometries */
.workshop-sphere-ring-outer {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 117, 24, 0.65);
    animation: workshop-spin 6s linear infinite;
    pointer-events: none;
}

.workshop-sphere-ring-inner {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px solid rgba(68, 215, 168, 0.8);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: workshop-spin-reverse 4s linear infinite;
    pointer-events: none;
}

.workshop-sphere-core-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 25px #44D7A8, 0 0 45px #4169E1;
    animation: workshop-pulse 2s ease-in-out infinite alternate;
}

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

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

@keyframes workshop-pulse {
    0% { transform: scale(0.9); opacity: 0.85; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 15px #44D7A8); }
}

/* Expanding Shockwaves on Hover */
.workshop-shockwave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #44D7A8;
    pointer-events: none;
    opacity: 0;
    transform: scale(1);
}

.workshop-sphere-anchor:hover .workshop-shockwave-1 {
    animation: workshop-shockwave-anim 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.workshop-sphere-anchor:hover .workshop-shockwave-2 {
    animation: workshop-shockwave-anim 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.4s;
}

.workshop-sphere-anchor:hover .workshop-shockwave-3 {
    animation: workshop-shockwave-anim 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.8s;
}

@keyframes workshop-shockwave-anim {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Orbiting Satellites on Hover */
.workshop-orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.workshop-sphere-anchor:hover ~ .workshop-orbit-container,
.workshop-orbit-container.active {
    opacity: 1;
}

.workshop-satellite-arm {
    position: absolute;
    inset: 0;
    animation: workshop-spin 4s linear infinite;
}

.workshop-satellite-arm:nth-child(2) { animation-delay: -1s; }
.workshop-satellite-arm:nth-child(3) { animation-delay: -2s; }
.workshop-satellite-arm:nth-child(4) { animation-delay: -3s; }

.workshop-satellite-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FF7518;
    box-shadow: 0 0 20px #FF7518, 0 0 35px #FF7518;
    animation: workshop-pulse 1.5s ease-in-out infinite alternate;
}

.workshop-satellite-arm:nth-child(even) .workshop-satellite-dot {
    background: #44D7A8;
    box-shadow: 0 0 20px #44D7A8, 0 0 35px #44D7A8;
}

/* Nexus Status Text */
.workshop-nexus-badge {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(68, 215, 168, 0.35);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 700;
    color: #44D7A8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.workshop-sphere-anchor:hover ~ .workshop-nexus-badge {
    border-color: #44D7A8;
    box-shadow: 0 0 25px rgba(68, 215, 168, 0.4);
    color: #ffffff;
    background: rgba(68, 215, 168, 0.15);
}

/* 3D Modular Cards Grid */
.workshop-cards-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 0 2.5rem 3.5rem 2.5rem;
}

@media (max-width: 1280px) {
    .workshop-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workshop-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2.5rem 1.5rem;
    }
}

/* 3D Card Item */
.workshop-card {
    position: relative;
    height: 360px;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.workshop-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 15, 30, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    box-sizing: border-box;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    z-index: 1;
}

/* Rotating Conic Gradient Border Beam */
.workshop-card-border-beam {
    position: absolute;
    inset: -2px;
    border-radius: 1.6rem;
    background: conic-gradient(from 0deg, var(--card-color, #4169E1), transparent 40%, var(--card-color, #4169E1) 80%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: workshop-spin 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.workshop-card:hover .workshop-card-border-beam {
    opacity: 0.85;
}

.workshop-card:hover .workshop-card-inner {
    border-color: transparent;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 50px -5px var(--card-glow, rgba(65, 105, 225, 0.4));
}

/* Card Content Elements */
.workshop-card-icon {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--card-color, #4169E1);
    text-shadow: 0 0 24px var(--card-glow, rgba(65, 105, 225, 0.5));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.workshop-card:hover .workshop-card-icon {
    transform: rotateY(360deg) scale(1.15);
}

.workshop-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--card-color, #4169E1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.workshop-card-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    transition: letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.workshop-card:hover .workshop-card-title {
    letter-spacing: 0.03em;
    text-shadow: 0 0 15px var(--card-glow, rgba(65, 105, 225, 0.5));
}

.workshop-card-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.workshop-card:hover .workshop-card-subtitle {
    color: #cbd5e1;
}

/* Metric / Stat Pill */
.workshop-card-metric {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Capacity / Energy Progress Bar */
.workshop-card-energy-bar {
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 0.75rem;
}

.workshop-card-energy-fill {
    height: 100%;
    width: 40%;
    background: var(--card-color, #4169E1);
    box-shadow: 0 0 14px var(--card-color, #4169E1);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-card:hover .workshop-card-energy-fill {
    width: 100%;
}

/* Floating Action Badge on Hover */
.workshop-floating-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translate(-50%, 0) scale(0.85);
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95), rgba(10, 15, 30, 0.98));
    border: 1px solid var(--card-color, #4169E1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px var(--card-glow, rgba(65, 105, 225, 0.4));
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.workshop-card:hover .workshop-floating-badge {
    transform: translate(-50%, -22px) scale(1);
    opacity: 1;
}

/* Orbiting Side Pulse Nodes */
.workshop-side-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-color, #4169E1);
    box-shadow: 0 0 12px var(--card-color, #4169E1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.workshop-card:hover .workshop-side-node {
    opacity: 1;
}

.workshop-side-node-left {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
}

.workshop-side-node-right {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
}


/* --------------------------------------------------------------------------
   2. Advanced Bento Grid Component Styles
   -------------------------------------------------------------------------- */

.bento-showcase-container {
    width: 100%;
    background-color: #080a11;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.85);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .bento-showcase-container {
        padding: 1.5rem;
        border-radius: 1.75rem;
    }
}

/* Bento Header & Filter Tabs */
.bento-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
}

.bento-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-filter-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bento-filter-btn:hover {
    color: #ffffff;
}

.bento-filter-btn.active {
    background: #4169E1;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.4);
}

/* The Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 155px;
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

/* Bento Card Item */
.bento-card {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #101422;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

/* Spans */
.bento-col-1 { grid-column: span 1; }
.bento-col-2 { grid-column: span 2; }
.bento-col-3 { grid-column: span 3; }
.bento-col-4 { grid-column: span 4; }

.bento-row-1 { grid-row: span 1; }
.bento-row-2 { grid-row: span 2; }
.bento-row-3 { grid-row: span 3; }

@media (max-width: 1024px) {
    .bento-col-3, .bento-col-4 {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .bento-col-1, .bento-col-2, .bento-col-3, .bento-col-4 {
        grid-column: span 1 !important;
    }
    .bento-row-1, .bento-row-2, .bento-row-3 {
        grid-row: auto !important;
        min-height: 190px;
    }
}

/* Card Background Image & Gradient Scrim */
.bento-card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 0;
}

.bento-card:hover .bento-card-bg-image {
    transform: scale(1.06);
    opacity: 0.45;
}

.bento-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 20, 34, 0.4) 0%, rgba(10, 14, 25, 0.95) 100%);
    z-index: 1;
}

/* Accent Wash Layer */
.bento-card-accent-wash {
    position: absolute;
    inset: 0;
    background-color: var(--accent-color, #4169E1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-card:hover .bento-card-accent-wash {
    opacity: 0.12;
}

/* Glowing Border Highlight on Hover */
.bento-card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 1.5px solid var(--accent-color, #4169E1);
    box-shadow: inset 0 0 20px var(--accent-glow, rgba(65, 105, 225, 0.3)), 0 0 25px var(--accent-glow, rgba(65, 105, 225, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
}

.bento-card:hover .bento-card-border-glow {
    opacity: 1;
}

/* Bento Card Inner Content */
.bento-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.bento-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color, #4169E1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bento-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.bento-card:hover .bento-card-arrow {
    transform: translate(3px, -3px) rotate(-45deg);
    background: var(--accent-color, #4169E1);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-color, #4169E1);
}

.bento-card-body {
    margin-top: auto;
}

.bento-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bento-card-desc {
    margin: 0.4rem 0 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Compact vs Wide Layout Variations */
.bento-card-compact {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.bento-card-compact .bento-card-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.bento-card-stat-value {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-color, #4169E1);
    text-shadow: 0 0 20px var(--accent-glow, rgba(65, 105, 225, 0.4));
}

.bento-card-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}
