* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
}

/* Global scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(188, 255, 48, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(188, 255, 48, 0.5);
}

/* Firefox global scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(188, 255, 48, 0.3) #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #000000;
    min-height: 100vh;
    /* box-shadow: 0 0 20px rgba(188, 255, 48, 0.1); */
    position: relative;
}

/* Banner Section */
.banner {
    width: 29%;
    height: 227px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    max-width: 1200px;
    background: #000000;
}

.banner video {
    width: 34%;
    margin: 0 auto;
    z-index: 1;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 20px;
    background: #000000;
    color: #fff;
    /* border-bottom: 2px solid #bcff30; */
    margin-top: 200px;
}

.title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.title-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #bcff30;
    border-radius: 50%;
    color: #bcff30;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.social-icon:hover {
    background: #bcff30;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 255, 48, 0.3);
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.buy-icon {
    background: #bcff30;
    color: #000000;
}

.buy-icon:hover {
    background: transparent;
    color: #bcff30;
}

/* Academy Cards Section */
.academy-section {
    padding: 20px 0;
    background: #000000;
    /* border-bottom: 1px solid #bcff30; */
    overflow: hidden;
}

.academy-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.academy-cards {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    animation: scrollCards 30s linear infinite;
    width: max-content;
}

@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.academy-cards:hover {
    animation-play-state: paused;
}

.academy-card {
    flex-shrink: 0;
    width: 187px;
    height: 107px;
    background: #000000;
    /* border: 1px solid #bcff30; */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(188, 255, 48, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.academy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(188, 255, 48, 0.4);
    border-color: #bcff30;
    border: 1px solid #bcff30;
}

.academy-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.academy-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.academy-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.academy-card-exchange {
    font-size: 0.9rem;
    color: rgb(167 167 167 / 80%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Chat Container */
.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #000000;
}

/* Custom scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(188, 255, 48, 0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(188, 255, 48, 0.6);
}

/* Firefox scrollbar for chat messages */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(188, 255, 48, 0.4) transparent;
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.ai-message {
    display: flex;
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #bcff30;
    color: #000000;
    border-bottom-right-radius: 5px;
}

.ai-message .message-content {
    background: #000000;
    color: #ffffff;
    border: 1px solid #bcff30;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(188, 255, 48, 0.2);
}

/* Chat Input */
.chat-input-container {
    padding: 20px;
    background: #000000;
    border-top: 1px solid #bcff30;
    box-shadow: 0 -2px 10px rgba(188, 255, 48, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.expand-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #bcff30;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.expand-btn:hover {
    background: rgba(188, 255, 48, 0.1);
    color: #bcff30;
}

.expand-btn.expanded {
    color: #bcff30;
    background: rgba(188, 255, 48, 0.1);
}

#messageInput {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid #bcff30;
    border-radius: 25px;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    max-height: 120px;
    min-height: 50px;
    box-sizing: border-box;
    background: #000000;
    color: #ffffff;
}

#messageInput:focus {
    border-color: #bcff30;
    box-shadow: 0 0 10px rgba(188, 255, 48, 0.3);
}

#messageInput::placeholder {
    color: #999;
}

#messageInput.expanded {
    max-height: 240px;
    min-height: 110px;
}

/* Custom scrollbar for message input */
#messageInput::-webkit-scrollbar {
    width: 6px;
}

#messageInput::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

#messageInput::-webkit-scrollbar-thumb {
    background: rgba(188, 255, 48, 0.5);
    border-radius: 3px;
    transition: background 0.3s ease;
}

#messageInput::-webkit-scrollbar-thumb:hover {
    background: rgba(188, 255, 48, 0.7);
}

/* Firefox scrollbar */
#messageInput {
    scrollbar-width: thin;
    scrollbar-color: rgba(188, 255, 48, 0.5) transparent;
}

.send-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #bcff30;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(188, 255, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}



/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-top: 3px solid #bcff30;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Markdown Styles */
.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 10px 0;
    color: #ffffff;
}

.message-content p {
    margin: 8px 0;
}

.message-content ul,
.message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content code {
    background: #333;
    color: #bcff30;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.message-content pre {
    background: #111;
    color: #ffffff;
    border: 1px solid #bcff30;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.message-content a {
    color: #bcff30;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
    color: #bcff30;
    opacity: 0.8;
}

/* Link Preview Card Styles */
.link-preview-card {
    border: 1px solid #555;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    background: #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 400px;
}

.link-preview-card:hover {
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
    border-color: #ff8c00;
}

.link-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #555;
}

.link-preview-content {
    padding: 16px;
}

.link-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-url {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-preview-url:hover {
    color: #ff8c00;
}

.link-preview-favicon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.link-preview-loading {
    padding: 16px;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    border: 1px solid #555;
    border-radius: 12px;
    margin: 15px 0;
    background: #3d3d3d;
}

.link-preview-error {
    padding: 12px 16px;
    background: #4d3319;
    border: 1px solid #ff8c00;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #ffa500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2rem;
    }

    .button-section {
        flex-wrap: wrap;
        gap: 10px;
    }

    .action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-container {
        height: 100vh;
        padding-bottom: 100px;
    }

    .banner {
        width: 100%;
        height: 200px;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        max-width: 1200px;
        background: #000000;
    }

    .banner video {
    width: 56%;
    margin: 0 auto;
    z-index: 1;
    }
}
