/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
}

.brand-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(360deg);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffeb3b !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffeb3b;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: bounceIn 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    text-align: center;
    animation: fadeInRight 1s ease-out 0.9s both;
}

.floating {
    animation: floating 3s ease-in-out infinite;
    max-width: 300px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Buttons */
.btn {
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    border-radius: 25px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffeb3b;
    color: #ffeb3b;
    transform: translateY(-3px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gallery-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trading-section {
    background: rgba(52, 73, 94, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-section .section-title {
    color: #fff;
}

.chat-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gallery */
.gallery-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Trading Cards */
.trading-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.trading-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.trading-card .card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.trading-card .card-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.trading-card .card-header h4 {
    margin: 0;
    font-size: 1.5rem;
}

.trading-card .card-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.btn-twitter {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
    border: none;
}

.btn-twitter:hover {
    background: linear-gradient(45deg, #0d8bd9, #1da1f2);
    color: white;
}

/* Chat Section */
.chat-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.chat-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.status-indicator {
    color: #4CAF50;
    font-size: 0.9rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

.message-content {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bot-message .message-content {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    margin-right: auto;
}

.user-message .message-content {
    background: #fff;
    color: #333;
    margin-left: auto;
    border: 2px solid #667eea;
}

.chat-input {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input .form-control {
    border-radius: 25px;
    border: 2px solid #667eea;
    padding: 12px 20px;
    font-family: 'Comic Neue', cursive;
}

.chat-input .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ffeb3b;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trading-card {
        margin-bottom: 2rem;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message-content {
        max-width: 95%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}