:root {
    --neon-blue: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-green: #00ff9d;
    --neon-magenta: #ff00ff;
    --neon-orange: #ff6b00;
    --dark-bg: #050714;
    --dark-bg-2: #0a0b1e;
    --glow-strength: 5px;
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --gradient-secondary: linear-gradient(45deg, var(--neon-green), var(--neon-magenta));
    --gradient-tertiary: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(-45deg, var(--dark-bg), #1a0b2e, #170b2e, var(--dark-bg-2));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    min-height: 100vh;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.connect-wallet {
    position: relative;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.connect-wallet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.connect-wallet:hover::before {
    opacity: 1;
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -2;
}

.connect-wallet:hover .button-glow {
    opacity: 0.5;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.chatbox-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.chatbox {
    position: relative;
    background: rgba(10, 11, 30, 0.9);
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.chatbox::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s infinite;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.chat-input {
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chat-input button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: white;
    cursor: pointer;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(10, 11, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.1),
        inset 0 0 20px rgba(157, 0, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.feature-card:hover {
    transform: translateY(-5px) rotateX(10deg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-secondary);
    z-index: -1;
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.3s;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon i {
    font-size: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-purple); }
    to { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-purple); }
}

@keyframes borderGlow {
    0% { opacity: 0.5; filter: hue-rotate(0deg); }
    50% { opacity: 1; filter: hue-rotate(180deg); }
    100% { opacity: 0.5; filter: hue-rotate(360deg); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 0, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, var(--neon-purple) 0%, transparent 10%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    z-index: -1;
    opacity: 0.3;
    animation: gridPulse 4s infinite alternate;
}

@keyframes gridPulse {
    0% { 
        opacity: 0.2;
        background-size: 30px 30px, 30px 30px, 100% 100%;
    }
    100% { 
        opacity: 0.4;
        background-size: 32px 32px, 32px 32px, 100% 100%;
    }
}

.glowing-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 243, 255, 0.1) 0%,
        rgba(157, 0, 255, 0.1) 50%,
        transparent 70%);
    filter: blur(20px);
    animation: pulse 4s infinite;
}

.glow-text {
    font-size: 4rem !important;
    background: var(--gradient-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-purple),
        0 0 30px var(--neon-magenta);
    animation: textPulse 3s infinite;
}

@keyframes textPulse {
    0% { filter: brightness(1) hue-rotate(0deg); }
    50% { filter: brightness(1.5) hue-rotate(180deg); }
    100% { filter: brightness(1) hue-rotate(360deg); }
}

.hero {
    position: relative;
    overflow: hidden;
}

.floating-element {
    width: 100px;
    height: 100px;
    position: absolute;
    background: linear-gradient(45deg, var(--neon-blue), transparent);
    border-radius: 50%;
    filter: blur(20px);
    animation: float 6s infinite;
}

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

.floating-element:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
} 

.hero-content {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.feature-card {
    // ... existing styles ...
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.feature-card:hover {
    transform: translateY(-5px) rotateX(10deg);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateY(100%);
    transition: transform 0.5s;
}

.feature-card:hover .card-overlay {
    transform: translateY(0);
}

.feature-icon i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--neon-blue);
    animation: typewriter 4s steps(40) 1s forwards,
               blink 1s infinite;
}

@keyframes blink {
    from { border-color: transparent; }
    to { border-color: var(--neon-blue); }
}

.connect-wallet::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-secondary);
    border-radius: 27px;
    z-index: -3;
    opacity: 0;
    transition: opacity 0.3s;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
} 