/* ==========================================================================
   ThreeUI Enhancement Styles (Inspired by MengTo/threeui & DesignCode)
   ========================================================================== */

/* Hero 3D Interactive Orb Container */
.hero-content {
    max-width: 1140px !important;
}

.hero-orb-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide Hero Orb completely in Space Mode so deep space/stars take full stage */
[data-theme="cosmic"] .hero-orb-col,
body.space-mode .hero-orb-col {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    pointer-events: none !important;
}

.hero-orb-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb-canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    cursor: grab;
    touch-action: none;
    filter: drop-shadow(0 0 35px rgba(124, 240, 255, 0.18));
    transition: transform 0.3s ease, filter 0.4s ease;
}

.hero-orb-canvas:active {
    cursor: grabbing;
}

/* ==========================================================================
   ThreeUI Induction Button Glow (Kinetic perimetral shimmer)
   ========================================================================== */

.btn-solid, .btn-ghost {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-solid::before, .btn-ghost::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0deg,
        rgba(124, 240, 255, 0.4) 60deg,
        rgba(162, 165, 255, 0.8) 120deg,
        rgba(255, 156, 245, 0.5) 180deg,
        transparent 240deg
    );
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: inductionRotate 4s linear infinite;
    transition: opacity 0.35s ease;
}

.btn-solid:hover::before, .btn-ghost:hover::before {
    opacity: 1;
}

@keyframes inductionRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Subtle holographic pulse for filters */
.filters li.active button {
    position: relative;
    box-shadow: 0 0 20px rgba(124, 240, 255, 0.35), inset 0 0 10px rgba(124, 240, 255, 0.2);
    border-color: rgba(124, 240, 255, 0.6) !important;
}

.filters li.active button::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: sparkShimmer 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

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

/* ==========================================================================
   Organic Bio Section Enhancements
   ========================================================================== */

.bio-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(124, 240, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px !important;
    padding: 3rem 3.5rem !important;
}

.bio-lead {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
    line-height: 1.65 !important;
    color: #f1f4fb !important;
    margin-bottom: 1.5rem !important;
    font-weight: 400;
}

.bio-lead strong {
    color: var(--accent, #7cf0ff);
    font-weight: 600;
}

.bio-body {
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    color: var(--muted, #9aa3b5) !important;
    margin-bottom: 1.5rem !important;
}

.bio-footer-note {
    font-size: 1.05rem !important;
    color: #e2e8f5 !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-footer-note a {
    color: var(--accent, #7cf0ff);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.bio-footer-note a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--accent, #7cf0ff);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-orb-wrapper {
        height: 300px;
        max-width: 320px;
        margin: 1.5rem auto 0;
    }
    .bio-content {
        padding: 2rem 1.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-orb-col {
        display: none !important;
    }
    .hero-orb-wrapper {
        height: 240px;
        max-width: 260px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .hero-orb-col {
        display: none !important;
    }
}
