  /* Particle background */
  #particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.quantum-field-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(65, 51, 23, 0.85);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(248, 147, 86, 0.25);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Glow effect behind container */
.quantum-field-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at center, rgba(248, 147, 86, 0.2) 0%, rgba(65, 51, 23, 0) 70%);
    z-index: -1;
    opacity: 0.7;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

h1 {
    color: #F89356;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #F89356, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(248, 147, 86, 0.5);
}

.field-explanation {
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.field-explanation p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.field-explanation em {
    color: #F89356;
    font-style: italic;
    opacity: 1;
}

.wisdom-field {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    perspective: 1000px;
} 

.wisdom-node {
    position: relative;
    min-height: 150px;
    background-color: rgba(136, 144, 132, 0.15);
    border: 1px solid rgba(248, 147, 86, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    filter: blur(2px);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(248, 147, 86, 0.2);
}

/* Glowing border effect */
.wisdom-node::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(248, 147, 86, 0.1), rgba(248, 147, 86, 0.3), rgba(248, 147, 86, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wisdom-node:hover {
    filter: blur(0);
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(248, 147, 86, 0.4);
    background-color: rgba(136, 144, 132, 0.25);
}

.wisdom-node:hover::after {
    opacity: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) translateZ(10px) rotate(0.5deg);
    }
    100% {
        transform: translateY(0px) translateZ(0px) rotate(0deg);
    }
}

.node-domain {
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #F89356;
    text-shadow: 0 0 5px rgba(248, 147, 86, 0.3);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.node-seed {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.wisdom-node:hover .node-seed {
    opacity: 1;
}

.collapsed-prompt {
    margin-top: 2rem;
    padding: 2rem;
    background-color: rgba(136, 144, 132, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(248, 147, 86, 0.3);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect */
.collapsed-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(248, 147, 86, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.collapsed-prompt.visible {
    opacity: 1;
    transform: translateY(0);
}

.collapsed-prompt.visible::before {
    opacity: 1;
}

.prompt-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 0 2px rgba(248, 147, 86, 0.2);
}

.quantum-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: saturate(1.1) contrast(1.1);
}

.quantum-image.visible {
    opacity: 1;
    transform: scale(1);
}

.loading-spinner {
    display: block;
    width: 50px;
    height: 50px;
    margin: 2rem auto;
    border: 5px solid rgba(136, 144, 132, 0.3);
    border-radius: 50%;
    border-top-color: #F89356;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Share button styles removed */

/* Wisdom exploration styles */
.wisdom-explore-container {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wisdom-explore-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.wisdom-explore-prompt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
    text-shadow: 0 0 5px rgba(248, 147, 86, 0.3);
}

.explore-wisdom-button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    background-color: rgba(248, 147, 86, 0.8);
    color: #413317;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(248, 147, 86, 0.3);
    position: relative;
    overflow: hidden;
}

.explore-wisdom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s ease;
}

.explore-wisdom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(248, 147, 86, 0.4);
    background-color: rgba(248, 147, 86, 0.9);
}

.explore-wisdom-button:hover::before {
    left: 100%;
}

.explore-wisdom-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(248, 147, 86, 0.3);
}

/* Chat interface styles */
.wisdom-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 450px;
    max-height: 70vh;
    background-color: rgba(65, 51, 23, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.wisdom-chat-container.visible {
    transform: translateY(0);
    opacity: 1;
}

.wisdom-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(248, 147, 86, 0.2);
    border-bottom: 1px solid rgba(248, 147, 86, 0.3);
}

.wisdom-chat-title {
    margin: 0;
    color: #F89356;
    font-size: 1.1rem;
    font-weight: 500;
}

.wisdom-chat-close {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wisdom-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wisdom-chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    align-self: flex-end;
    background-color: rgba(248, 147, 86, 0.3);
    border-bottom-right-radius: 5px;
    color: #f0f0f0;
}

.cat-message {
    align-self: flex-start;
    background-color: rgba(136, 144, 132, 0.2);
    border-bottom-left-radius: 5px;
    color: #f0f0f0;
}

.cat-message::before {
    content: '🐈';
    position: absolute;
    left: -25px;
    top: 10px;
    font-size: 1.2rem;
}

.wisdom-chat-input-container {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(248, 147, 86, 0.3);
}

.wisdom-chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(248, 147, 86, 0.3);
    border-radius: 20px;
    background-color: rgba(65, 51, 23, 0.5);
    color: #f0f0f0;
    font-size: 0.9rem;
}

.wisdom-chat-input:focus {
    outline: none;
    border-color: rgba(248, 147, 86, 0.6);
    box-shadow: 0 0 5px rgba(248, 147, 86, 0.3);
}

.wisdom-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F89356;
    border: none;
    color: #413317;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wisdom-chat-send:hover {
    background-color: #e87d36;
    transform: scale(1.05);
}

.wisdom-interpretation {
    margin-bottom: 10px;
}

.wisdom-question {
    font-style: italic;
    margin-bottom: 10px;
}

.wisdom-action {
    border-top: 1px solid rgba(248, 147, 86, 0.3);
    padding-top: 10px;
}

/* Typing indicator styles */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: rgba(248, 147, 86, 0.7);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

/* Wisdom Chat Interface Styles */
.wisdom-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #2a2118;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(248, 147, 86, 0.3);
}

.wisdom-chat-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wisdom-chat-header {
    padding: 15px;
    background-color: #413317;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(248, 147, 86, 0.3);
}

.wisdom-chat-title {
    margin: 0;
    color: #F89356;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #F89356, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wisdom-chat-close {
    background: none;
    border: none;
    color: #F89356;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.wisdom-chat-close:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.wisdom-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #2a2118;
}

.wisdom-chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    animation: message-appear 0.3s ease-out forwards;
}

@keyframes message-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    align-self: flex-end;
    background-color: #413317;
    color: #e0e0e0;
    border-bottom-right-radius: 5px;
}

.cat-message {
    align-self: flex-start;
    background-color: #3a2e1c;
    color: #e0e0e0;
    border-bottom-left-radius: 5px;
}

.wisdom-interpretation, .wisdom-question, .wisdom-action {
    margin-bottom: 8px;
}

.wisdom-interpretation {
    color: #e0e0e0;
}

.wisdom-question {
    color: #F89356;
    font-style: italic;
}

.wisdom-action {
    color: #889084;
    border-top: 1px solid rgba(248, 147, 86, 0.2);
    padding-top: 8px;
    font-size: 0.95em;
}

.wisdom-chat-input-container {
    padding: 15px;
    display: flex;
    gap: 10px;
    background-color: #3a2e1c;
    border-top: 1px solid rgba(248, 147, 86, 0.3);
}

.wisdom-chat-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(248, 147, 86, 0.3);
    background-color: #2a2118;
    color: #e0e0e0;
    outline: none;
    transition: all 0.2s ease;
}

.wisdom-chat-input:focus {
    border-color: #F89356;
    box-shadow: 0 0 0 2px rgba(248, 147, 86, 0.2);
}

.wisdom-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F89356;
    border: none;
    color: #2a2118;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wisdom-chat-send:hover {
    background-color: #ffc107;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quantum-field-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .wisdom-field {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .wisdom-node {
        min-height: 120px;
        padding: 1rem;
    }
    
    .field-explanation {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .collapsed-prompt {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Quantum collapse animation */
@keyframes quantum-collapse {
    0% { transform: scale(1) rotate(0deg); filter: blur(2px); }
    25% { transform: scale(1.2) rotate(3deg); filter: blur(1px); opacity: 0.9; }
    50% { transform: scale(1.5) rotate(5deg); filter: blur(0); opacity: 0.7; }
    75% { transform: scale(1) rotate(2deg); filter: blur(5px); opacity: 0.4; }
    100% { transform: scale(0) rotate(0deg); filter: blur(10px); opacity: 0; }
}

/* Quantum reveal animation */
@keyframes quantum-reveal {
    0% { transform: scale(0.8); opacity: 0; filter: blur(10px); }
    50% { filter: blur(5px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

/* Quantum image reveal animation */
@keyframes quantum-image-reveal {
    0% { opacity: 0; transform: scale(0.8); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Quantum selected animation */
@keyframes quantum-selected {
    0% { transform: scale(1); filter: blur(2px); }
    25% { transform: scale(1.1); filter: blur(1px); box-shadow: 0 0 20px #F89356; }
    50% { transform: scale(1.2); filter: blur(0); box-shadow: 0 0 30px #F89356; }
    75% { transform: scale(1.1); filter: blur(0); box-shadow: 0 0 25px #F89356; }
    100% { transform: scale(1); filter: blur(0); box-shadow: 0 0 15px #F89356; }
}

/* Glow pulse animation */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 15px #F89356; }
    50% { box-shadow: 0 0 30px #F89356; }
}

/* Classes for quantum field node states */
.faded {
    animation: quantum-collapse 1.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.selected {
    animation: quantum-selected 1.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275), 
               glow-pulse 3s 1.8s infinite ease-in-out;
    filter: blur(0) !important;
    z-index: 10;
    position: relative;
}

@media (max-width: 480px) {
    .quantum-field-container {
        padding: 1rem;
        margin: 0.5rem auto;
    }
    
    .wisdom-field {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .wisdom-node {
        min-height: 100px;
        padding: 0.75rem;
        animation: float 8s ease-in-out infinite;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .field-explanation {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .field-explanation p {
        margin-bottom: 0.5rem;
    }
    
    .collapsed-prompt {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .collapsed-prompt h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    #prompt-text {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .quantum-image {
        margin-top: 0.75rem;
    }
    
    .wisdom-explore-container {
        margin-top: 0.75rem;
    }
    
    .wisdom-explore-prompt {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .wisdom-chat-container {
        width: 95%;
        bottom: 0.5rem;
        right: 0.5rem;
    }
}