:root {
    --primary-color: #7000FF;
    --secondary-color: #00F5FF;
    --background-color: #050521;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --gradient-1: linear-gradient(45deg, #7000FF, #00F5FF);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'General Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.fullscreen-active {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 60% 60%, rgba(0, 245, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 70% 30%, rgba(112, 0, 255, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 30% 70%, rgba(0, 245, 255, 0.15) 0%, transparent 25%),
        var(--background-color);
    animation: rotateBackground 30s linear infinite;
    transform-origin: center center;
}

.background-animation::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(112, 0, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(0, 245, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
        transparent;
    animation: rotateBackground 20s linear infinite reverse;
    transform-origin: center center;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.logo-container {
    transition: opacity 0.3s ease;
}

.logo {
    height: 40px;
    width: auto;
}

.connect-wallet {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.connect-wallet:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-logo {
    z-index: 1;
    margin-left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo-img {
    width: 300px;
    height: auto;
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'General Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.primary-btn {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

.ca-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: 'Clash Display', sans-serif;
}

.ca-label {
    color: var(--secondary-color);
    font-weight: 600;
}

.ca-value {
    color: var(--text-color);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, rgba(10, 11, 15, 0.8), rgba(10, 11, 15, 1));
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* AI Chat Section */
.ai-chat {
    padding: 40px 20px;
    margin-top: 80px;
}

.chat-container {
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    position: relative;
}

.chat-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: var(--background-color);
    border-radius: 0;
    box-shadow: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    margin: 20px;
    border-radius: 10px;
    height: calc(100% - 100px); /* Adjust height to account for header and input */
}

.chat-input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

#userInput {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#sendMessage {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}

#sendMessage:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--background-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.fullscreen-btn i {
    transition: all 0.2s ease;
}

.fullscreen .fullscreen-btn i {
    transform: rotate(180deg);
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.fullscreen-overlay.active {
    display: block;
    opacity: 1;
}

.message {
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    max-width: 80%;
    color: white;
}

.user-message {
    background: var(--primary-color);
    margin-left: auto;
}

.ai-message {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
}

/* Scrollbar styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(to top, rgba(10, 11, 15, 0.8), rgba(10, 11, 15, 1));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(10, 11, 15, 0.95);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-sections-wrapper {
    display: flex;
    gap: 8rem;
    align-items: flex-start;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.1;
    animation: float 20s infinite;
}

.element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: -5s;
}

.element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 100px);
    }
    50% {
        transform: translate(0, 200px);
    }
    75% {
        transform: translate(-100px, 100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
