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

:root {
    --terminal-bg: #000000;
    --terminal-green: #00ff00;
    --terminal-dim-green: #00aa00;
    --accent-green: #00ff88;
}

body {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    background: var(--terminal-bg);
    color: var(--terminal-green);
    overflow: hidden;
    line-height: 1.6;
    padding-bottom: env(safe-area-inset-bottom);
}

.terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    background: var(--terminal-bg);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.terminal-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-prompt {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.terminal-user {
    color: var(--accent-green);
}

.terminal-path {
    color: var(--terminal-green);
}

.terminal-command {
    color: var(--terminal-green);
    margin-left: 0.5rem;
}

.terminal-cursor {
    color: var(--terminal-green);
    margin-left: 2px;
}

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

.terminal-output {
    font-size: 1rem;
    color: var(--terminal-dim-green);
    white-space: pre-wrap;
}

/* Color cycle animation for the reveal */
@keyframes colorCycle {
    0% { color: #00ff00; }
    33% { color: #88ff88; }
    66% { color: #ffffff; }
    100% { color: #00ff00; }
}

.color-cycle {
    animation: colorCycle 8s infinite ease-in-out;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* GitHub Icon */
.github-icon {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: var(--terminal-green);
    opacity: 0;
    transition: opacity 0.5s ease-in, transform 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.github-icon.show {
    opacity: 1;
}

.github-icon:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

.github-icon svg {
    display: block;
    filter: drop-shadow(0 0 8px var(--terminal-green));
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 40px));
    }

    .terminal-prompt {
        font-size: 1rem;
    }

    .terminal-output {
        font-size: 0.9rem;
    }

    .terminal-content {
        margin-bottom: 40px;
    }

    .github-icon {
        top: 1rem;
        right: 1rem;
    }
}
