html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    background-color: #0b0f19;
    color: white;
    overflow-x: hidden;
    font-family: 'Anonymous Pro', monospace;
    }
.secondary-font {
    font-family: 'Inter', sans-serif; /* Changed to Inter as per instructions */

}
.hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center center;
    overflow: hidden;
}
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(120, 82, 224, 0.3);
}
.nav-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #764ba2;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* Styles for Modals */
.modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-hidden {
    pointer-events: none;
}
.modal-hidden .modal-overlay {
    opacity: 0;
}
.modal-hidden .modal-container {
    opacity: 0;
    transform: scale(0.95);
}
/* Styles for Cookie Banner */
.cookie-banner {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.cookie-banner-hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}
.gradient-border-image {
    border: 2px solid transparent; /* Required for border-image */
    border-image: linear-gradient(to right, #667eea, #764ba2) 1; /* Apply gradient */
    border-radius: 8px; /* Example */
}

/* Tag Cloud specific styles */
.tag-cloud-container {
    min-height: 400px; /* Give it some vertical space to float */
    position: relative;
    overflow: hidden;
    margin-top: 4rem; /* Space from the text above */
}

.tag-node {
    position: absolute; /* Crucial for floating */
    padding: 0.5rem 1rem;
    background-color: #1a202c; /* gray-800 */
    border: 1px solid #4a5568; /* gray-700 */
    border-radius: 9999px; /* fully rounded */
    color: #a0aec0; /* gray-400 */
    font-size: 0.875rem; /* text-sm */
    white-space: nowrap;
    opacity: 0.8;
    cursor: default; /* Indicate not clickable */
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover/initial state */
    will-change: transform, opacity; /* Optimize for animation */
}

.tag-node:hover {
    opacity: 1;
    color: #e2e8f0; /* white */
    transform: scale(1.05);
    background-color: #2d3748; /* gray-700 */
    border-color: #667eea; /* purple/blue gradient color */
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

/* This styles the special tag to be larger and stand out */
.special-tag {
    /* Make it stand in front of other tags */
    z-index: 10;

    /* Make it larger */
    font-size: 1.25rem; /* ~20px */
    font-weight: 700;
    padding: 0.75rem 1.5rem;

    /* Pink/Purple color scheme */
    color: #f0abfc; /* light purple text */
    background-color: #3b0764; /* dark purple background */
    border-color: #d946ef; /* bright pink/purple border */
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4); /* glow effect */
}

/* Enhances the hover effect for the special tag */
.special-tag:hover {
    color: #ffffff;
    background-color: #581c87;
    border-color: #f0abfc;
    box-shadow: 0 0 35px rgba(217, 70, 239, 0.6);
}

.quote-overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

#quote-overlay {
    position: fixed;
    inset: 0; /* Covers the whole screen (top:0, right:0, bottom:0, left:0) */
    background-color: rgba(11, 15, 25, 0.9); /* Dark, semi-transparent background */
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

.quote-content {
    position: relative;
    background: linear-gradient(145deg, #1f2937, #111827);
    color: #d1d5db; /* gray-300 */
    padding: 3rem 4rem;
    border-radius: 0.5rem;
    border: 1px solid #4b5563; /* gray-600 */
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.the-quote {
    font-size: 2.25rem; /* ~36px */
    font-weight: 700;
    color: #e5e7eb; /* gray-200 */
    line-height: 1.3;
    margin: 0;
}

.quote-attribution {
    font-size: 1.125rem; /* ~18px */
    color: #9ca3af; /* gray-400 */
    margin-top: 1.5rem;
    font-style: italic;
}

.close-quote-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af; /* gray-400 */
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-quote-btn:hover {
    color: #ffffff;
}

.tooltip-popup {
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;

    /* Positioning and Style */
    position: fixed; /* Positioned relative to the viewport */
    z-index: 110;  /* On top of everything, even the other overlay */
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Class to make the tooltip visible */
.tooltip-popup.visible {
    opacity: 1;
}

#tooltip-quote {
    font-size: 0.9rem; /* Smaller writing as requested */
    color: #d1d5db; /* gray-300 */
    margin: 0;
    line-height: 1.6;
}

#tooltip-attribution {
    font-size: 0.8rem;
    color: #9ca3af; /* gray-400 */
    text-align: right;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Keyframes for micro-floating animation */
@keyframes float1 {
    0% { transform: translate(0, 0) scale(0.9) rotate(0deg); opacity: 0.7; }
    25% { transform: translate(10px, -15px) scale(1) rotate(2deg); opacity: 0.8; }
    50% { transform: translate(0, 0) scale(0.95) rotate(0deg); opacity: 0.75; }
    75% { transform: translate(-10px, 15px) scale(1.02) rotate(-2deg); opacity: 0.85; }
    100% { transform: translate(0, 0) scale(0.9) rotate(0deg); opacity: 0.7; }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
    30% { transform: translate(-12px, 10px) scale(0.98) rotate(-1deg); opacity: 0.7; }
    60% { transform: translate(8px, -8px) scale(1.01) rotate(1deg); opacity: 0.85; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(0.95) rotate(0deg); opacity: 0.75; }
    40% { transform: translate(15px, 5px) scale(1.02) rotate(3deg); opacity: 0.8; }
    80% { transform: translate(-5px, -10px) scale(0.97) rotate(-3deg); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(0.95) rotate(0deg); opacity: 0.75; }
}

/* Chat UI Styles */
.chat-wrapper {
    background-color: transparent;
    border-radius: 1rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.chat-container {
    height: 66vh; /* Fixed height for the chat panel (approx 2/3rd vh) */
    background-color: #1a1a1a; /* Dark background for chat */
    border-radius: 1rem; /* Rounded corners */
    border-bottom-left-radius: 0; /* No bottom curve */
    border-bottom-right-radius: 0; /* No bottom curve */
    overflow-y: auto; /* Enable scrolling */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between messages */
    border: 1px solid #718096; /* Light gray border (gray-500) */
    border-bottom: none; /* No bottom border to join with command window */
}

/* Individual message container */
.message-row {
    display: flex;
    align-items: flex-start; /* Align avatar and message bubble */
    gap: 0.75rem; /* Space between avatar and bubble */
}

.chat-avatar {
    width: 40px; /* Avatar size */
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent avatar from shrinking */
    border: 2px solid; /* Added border */
}

.chat-avatar.user-avatar {
    border-color: #3b82f6; /* Blue border for user */
    order: 2; /* Place user avatar on the right */
}

.chat-avatar.ai-avatar {
    border-color: #4a5568; /* Gray border for AI */
    order: 1; /* Place AI avatar on the left */
}

.chat-message {
    max-width: 80%; /* Limit message width */
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word; /* Wrap long words */
    flex-grow: 1; /* Allow message to grow */
}

.chat-message.user {
    background-color: #3b82f6; /* Blue for user messages */
    align-self: flex-end; /* Align to right */
    color: white;
    border-bottom-right-radius: 0.25rem; /* Sharpen corner for user */
    order: 1; /* Place user message on the left of user avatar */
}

.chat-message.ai {
    background-color: #4a5568; /* Gray for AI messages */
    align-self: flex-start; /* Align to left */
    color: white;
    border-bottom-left-radius: 0.25rem; /* Sharpen corner for AI */
    order: 2; /* Place AI message on the right of AI avatar */
}

.chat-message p {
    margin: 0; /* Remove default paragraph margin */
}

/* Adjust message alignment when avatars are present */
.message-row.user {
    justify-content: flex-end; /* Align user row to the right */
}

.message-row.ai {
    justify-content: flex-start; /* Align AI row to the left */
}

/* Typing indicator */
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #a0aec0; /* Gray for dots */
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0;
    animation: bounce 1s infinite ease-in-out;
}

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Command window styles */
.command-window {
    display: flex;
    align-items: center;
    background-color: #1a1a1a; /* Same as chat background */
    border: 1px solid #718096; /* Same as chat border */
    border-top: none; /* No top border to connect visually */
    border-top-left-radius: 0; /* No top curve */
    border-top-right-radius: 0; /* No top curve */
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.command-window .user-command-avatar {
    width: 32px; /* Smaller avatar for command window */
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #3b82f6; /* Blue border for user */
}

.command-window input[type="text"] {
    flex-grow: 1;
    background-color: #2d3748; /* Darker input background */
    border: 1px solid #4a5568; /* Input border */
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
}

.command-window button {
    background: none;
    border: none;
    color: #667eea; /* Purple/blue gradient color for icon */
    cursor: default; /* Change cursor for disabled button */
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.command-window button:hover {
    background-color: #2d3748; /* Darker hover background */
}
.command-window button:disabled {
    opacity: 0.5; /* Visually indicate disabled */
    cursor: not-allowed;
}

/* Loading Overlay Styles */
#loading-overlay {
    background-color: #0b0f19; /* Same as body background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}
#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Spinner Styles */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #764ba2; /* Purple from gradient */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* --- Accordion FAQ Styles --- */
.accordion-item {
    border-bottom: 1px solid #374151; /* gray-700 */
}

.accordion-button {
    width: 100%;
    background-color: transparent;
    color: #e5e7eb; /* gray-200 */
    cursor: pointer;
    padding: 1.5rem 1rem;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:hover,
.accordion-button.active {
    background-color: #1f2937; /* gray-800 */
    color: white;
}

/* Style for the plus/minus icon */
.accordion-button::after {
    content: '+';
    font-size: 2rem;
    color: #9ca3af; /* gray-400 */
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.accordion-button.active::after {
    content: '−';
}

.accordion-content {
    background-color: #111827; /* gray-900 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d1d5db; /* gray-300 */
}