:root {
    --bg-dark: #080a0c; 
    --term-bg: rgba(12, 14, 18, 0.95); 
    --neon-blue: #3b8eea; 
    --neon-purple: #7a49a5; 
    --neon-green: #4caf50; 
    --text-main: #c0c5ce; 
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#particles-js {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #13151a 0%, #080a0c 100%);
}

.scanline {
    width: 100%; height: 100px; z-index: 99;
    position: fixed; left: 0; top: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.02) 10%, rgba(0,0,0,0.1) 100%);
    opacity: 0.3;
    animation: scanlineAnim 8s linear infinite;
    display: none;
}
@media (min-width: 768px) { .scanline { display: block; } }

.main-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    z-index: 10; 
    position: relative;
    margin: 0 auto; 
}

.green { color: var(--neon-green); }
.cyan { color: var(--neon-blue); }
.magenta { color: var(--neon-purple); }
.comment { color: #5c6370; font-style: italic; }
.user { color: var(--neon-green); margin-right: 5px; }
.path { color: var(--neon-blue); }
.blink { animation: blink 1s step-end infinite; }

.terminal-window {
    background: var(--term-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 25px; 
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.terminal-window:hover {
    transform: translateY(-2px);
}

.terminal-bar {
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dots span {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    margin-right: 6px; opacity: 0.7;
}
.dots span:nth-child(1) { background: #c14d45; }
.dots span:nth-child(2) { background: #c19a36; }
.dots span:nth-child(3) { background: #3ba550; }
.terminal-bar .title {
    margin-left: 15px; font-size: 0.9rem; opacity: 0.5;
}

.terminal-content { padding: 30px; }
.glow-blue { border-color: rgba(59, 142, 234, 0.3); box-shadow: 0 4px 15px rgba(59, 142, 234, 0.1); }
.glow-purple { border-color: rgba(122, 73, 165, 0.3); box-shadow: 0 4px 15px rgba(122, 73, 165, 0.1); }

.hero-terminal { 
    min-height: 35vh; 
    display: flex;
    flex-direction: column;
}
.hero-terminal .terminal-content { flex: 1; }

.typewriter p { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.6; }
.hidden { opacity: 0; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.ascii-art pre { font-size: 0.8rem; line-height: 1; opacity: 0.8; }
@media (min-width: 768px) {
    .info-grid { grid-template-columns: auto 1fr; align-items: center; }
    .ascii-art pre { font-size: 1.2rem; }
}
.info-text p { margin-bottom: 15px; font-size: 1.1rem; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes scanlineAnim { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

.slide-in {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.5s;
}

@media (max-height: 700px) {
    body {
        height: auto;
        overflow-y: auto;
        display: block;
        padding: 20px 0;
    }
}