/* Blockchain Landing Page - Dark Futuristic Theme */

/* Root Variables */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-bg: #1a1a1a;
    --card-bg: rgba(26, 26, 26, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-accent: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --neon-green: #10b981;
    --neon-pink: #f472b6;
}

/* Base Styles */
.blockchain-page {
    background: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Animated Background */
.blockchain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.blockchain-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
    opacity: 0.6;
}

.particle:nth-child(2n) {
    background: var(--neon-purple);
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    background: var(--neon-green);
    animation-duration: 25s;
}

/* Glass Morphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

/* Neon Text Effects */
.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple), 0 0 30px var(--neon-purple);
}

.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 30px var(--neon-green);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

/* Futuristic Buttons */
.cyber-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.cyber-btn-purple {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.cyber-btn-purple:hover {
    box-shadow: 0 0 20px var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Holographic Effects */
.holographic {
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 25%, 
        rgba(16, 185, 129, 0.1) 50%, 
        rgba(244, 114, 182, 0.1) 75%, 
        rgba(0, 212, 255, 0.1) 100%);
    background-size: 400% 400%;
    animation: holographic-shift 8s ease-in-out infinite;
}

/* Whitepaper Modal Styles */
.whitepaper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whitepaper-modal.active {
    opacity: 1;
    visibility: visible;
}

.whitepaper-content {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

@keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

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

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

@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.2;
    animation: matrix-rain 10s linear infinite;
    opacity: 0.3;
}

/* Enhanced Navigation Styles */
nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Navigation hover effects */
nav a:hover {
    text-shadow: 0 0 8px currentColor;
}

/* Logo animation */
.logo-container:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Additional Button Styles */
button, .btn, input[type="submit"], input[type="button"] {
    border-radius: 12px !important;
}

.rounded-btn {
    border-radius: 12px;
}

/* Status badges with rounded corners */
.status-badge {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced gradient borders */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-border 8s ease infinite;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--primary-bg);
    border-radius: inherit;
}

@keyframes gradient-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .cyber-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .whitepaper-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}
