/* Custom CSS Variables */
:root {
    --primary-color: #00ff41;
    --secondary-color: #ff0080;
    --accent-color: #00ffff;
    --dark-bg: #0a0a0a;
    --glitch-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-dark: #000000;
    --glitch-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: crosshair;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 255, 65, 0.03) 0%, 
        rgba(255, 0, 128, 0.03) 50%, 
        rgba(0, 255, 255, 0.03) 100%);
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { opacity: 0.3; transform: translateX(-50px); }
    100% { opacity: 0.7; transform: translateX(50px); }
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: var(--glitch-shadow);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.2);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--secondary-color);
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--accent-color);
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

@keyframes glitch-2 {
    0% { transform: translateX(0); }
    20% { transform: translateX(2px); }
    40% { transform: translateX(-2px); }
    60% { transform: translateX(1px); }
    80% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* Glitch Hover Effect */
.glitch-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glitch-hover:hover {
    color: var(--primary-color) !important;
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color);
    animation: textGlitch 0.3s ease-in-out;
}

@keyframes textGlitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px) skewX(2deg); }
    40% { transform: translateX(2px) skewX(-2deg); }
    60% { transform: translateX(-1px) skewX(1deg); }
    80% { transform: translateX(1px) skewX(-1deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--glitch-bg) 100%);
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    animation: heroGlow 2s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { 
        text-shadow: 
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color);
    }
    to { 
        text-shadow: 
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 60px var(--primary-color);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    animation: scanLines 3s linear infinite;
    pointer-events: none;
}

@keyframes scanLines {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        10px 10px 0 var(--primary-color),
        20px 20px 0 var(--secondary-color),
        30px 30px 0 var(--accent-color),
        40px 40px 0 var(--primary-color),
        50px 50px 0 var(--secondary-color);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Buttons */
.btn-glitch {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: var(--text-dark);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    padding: 12px 30px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glitch:hover::before {
    left: 100%;
}

.btn-glitch:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(0, 255, 65, 0.4),
        0 0 30px rgba(0, 255, 65, 0.2);
    animation: buttonGlitch 0.3s ease-in-out;
}

@keyframes buttonGlitch {
    0%, 100% { transform: translateY(-2px); }
    25% { transform: translateY(-2px) translateX(-1px); }
    75% { transform: translateY(-2px) translateX(1px); }
}

.btn-outline-glitch {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    padding: 10px 28px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-outline-glitch:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 
        0 0 20px var(--primary-color),
        inset 0 0 20px rgba(0, 255, 65, 0.2);
    animation: outlineGlitch 0.3s ease-in-out;
}

@keyframes outlineGlitch {
    0%, 100% { border-color: var(--primary-color); }
    25% { border-color: var(--secondary-color); }
    50% { border-color: var(--accent-color); }
    75% { border-color: var(--primary-color); }
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Glitch Stats */
.glitch-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: countUp 2s ease-out;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glitch Frame */
.glitch-frame {
    position: relative;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: frameGlitch 3s ease-in-out infinite;
}

@keyframes frameGlitch {
    0%, 98%, 100% { 
        border-color: var(--primary-color);
        box-shadow: 
            0 0 20px rgba(0, 255, 65, 0.3),
            inset 0 0 20px rgba(0, 255, 65, 0.1);
    }
    1%, 3% { 
        border-color: var(--secondary-color);
        box-shadow: 
            0 0 20px rgba(255, 0, 128, 0.3),
            inset 0 0 20px rgba(255, 0, 128, 0.1);
    }
    2% { 
        border-color: var(--accent-color);
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
}

.spatial-embed {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* Glitch Cards */
.glitch-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.glitch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.glitch-card:hover::before {
    left: 100%;
}

.glitch-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 
        0 10px 30px rgba(0, 255, 65, 0.2),
        0 0 50px rgba(0, 255, 65, 0.1);
    animation: cardGlitch 0.3s ease-in-out;
}

@keyframes cardGlitch {
    0%, 100% { transform: translateY(-10px); }
    25% { transform: translateY(-10px) translateX(-2px); }
    75% { transform: translateY(-10px) translateX(2px); }
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glitch-card h4 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.glitch-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    color: var(--text-dark);
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(0, 255, 65, 0.4),
        0 0 40px rgba(0, 255, 65, 0.2);
    animation: socialGlitch 0.3s ease-in-out;
}

@keyframes socialGlitch {
    0%, 100% { transform: translateY(-5px) scale(1.05); }
    25% { transform: translateY(-5px) scale(1.05) translateX(-1px); }
    75% { transform: translateY(-5px) scale(1.05) translateX(1px); }
}

.social-link i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    animation: iconSpin 0.5s ease-in-out;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--glitch-bg);
    border-top: 1px solid var(--primary-color);
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .glitch-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .spatial-embed {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .glitch-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Animation */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Notification Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Contract Address Styles */
.contract-address code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.contract-address button {
    transition: all 0.3s ease;
}

.contract-address button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}