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

body {
    font-family: 'Courier Prime', monospace;
    background: #000000;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-terminal {
    text-align: center;
    border: 2px solid #00ff00;
    padding: 30px;
    background: rgba(0, 255, 0, 0.05);
}

.loading-text {
    font-size: 18px;
    margin-bottom: 20px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: #333;
    border: 1px solid #00ff00;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #80ff80);
    width: 0%;
    animation: loadingBar 3s ease-out forwards;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes loadingBar {
    to { width: 100%; }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #00ff0010 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #ffff0010 0%, transparent 50%);
    animation: matrixPulse 4s ease-in-out infinite;
}

@keyframes matrixPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.terminal-header {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 2px solid #00ff00;
    border-bottom: none;
    padding: 10px 15px;
    margin: 20px;
    border-radius: 8px 8px 0 0;
}

.terminal-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #333;
}

.close { background: #ff5555; }
.minimize { background: #ffff55; }
.maximize { background: #55ff55; }

.terminal-title {
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
}

.terminal-container {
    margin: 0 20px 20px 20px;
}

.terminal-window {
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.hero-section .terminal-window {
    border-radius: 0 0 8px 8px;
    border-top: none;
}

.boot-sequence {
    margin-bottom: 20px;
}

.boot-line {
    margin: 5px 0;
    opacity: 0;
    animation: bootUp 0.5s ease-in forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; }
.boot-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes bootUp {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.success {
    color: #00ff00 !important;
    text-shadow: 0 0 10px #00ff00;
}

.ascii-art {
    text-align: center;
    margin: 30px 0;
    color: #ffff00;
    font-size: 12px;
    text-shadow: 0 0 10px #ffff00;
}

.typing-text {
    font-size: 18px;
    margin: 20px 0;
    min-height: 25px;
}

.cursor {
    animation: blink 1s infinite;
    color: #00ff00;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-prompt {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.prompt-symbol {
    color: #00ff00;
    margin-right: 10px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    outline: none;
    flex: 1;
    caret-color: #00ff00;
}

#terminal-input::placeholder {
    color: #555;
}

.command-output {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.command-line {
    margin: 5px 0;
    padding: 2px 0;
}

.command-input {
    color: #ffff00;
}

.command-result {
    color: #00ff00;
    margin-left: 20px;
}

.section-title {
    color: #ffff00;
    margin-bottom: 20px;
    font-size: 18px;
    text-shadow: 0 0 10px #ffff00;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.token-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
}

.stat-label {
    color: #ccc;
}

.stat-value {
    color: #00ff00;
    font-weight: bold;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    margin-right: 15px;
}

.feature-text {
    color: #00ff00;
    font-weight: bold;
}

.social-commands {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: #00ff00;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s ease;
    display: block;
}

.social-link:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 0 10px 10px 10px;
    }
    
    .terminal-header {
        margin: 10px;
    }
    
    .tokenomics-grid,
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .terminal-prompt {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #terminal-input {
        width: 100%;
        margin-top: 5px;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.terminal-input:focus,
.social-link:focus,
.copy-btn:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
