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

:root {
    --primary-color: #00ff41;
    --secondary-color: #0a0e27;
    --accent-color: #1a1f3a;
    --text-color: #e0e0e0;
    --terminal-bg: #0d1117;
    --terminal-text: #00ff41;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f1419 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.content {
    animation: fadeIn 1s ease-in;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 0.5rem;
    animation: glitch 1s linear infinite;
    text-shadow: 
        2px 2px 0px #ff00de,
        -2px -2px 0px #00ffff;
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

.glitch:hover {
    animation: glitch 0.3s linear infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

/* Terminal Styles */
.terminal {
    background: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    border: 1px solid #30363d;
}

.terminal-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27c93f;
}

.terminal-title {
    color: #8b949e;
    font-size: 0.875rem;
    margin-left: auto;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.terminal-body p {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--terminal-text);
    font-weight: bold;
}

.output {
    color: #c9d1d9;
    padding-left: 1rem;
}

.output.indent {
    padding-left: 2rem;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--terminal-text);
}

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

/* Fun Facts Section */
.fun-facts {
    text-align: center;
    margin-bottom: 3rem;
}

.fun-facts h2 {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.fact-item {
    background: var(--accent-color);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #30363d;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
    border-color: var(--primary-color);
}

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

.fact-item p {
    color: var(--text-color);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-family: 'Courier New', monospace;
}

footer p {
    margin-bottom: 0.5rem;
}

.small {
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .terminal-body {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .fun-facts h2 {
        font-size: 1.2rem;
    }

    .fact-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .terminal-body {
        font-size: 0.75rem;
    }
}
