/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    background-color: #0a0a0a;
    color: #20c20e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Efeito de scanlines (opcional) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
}

/* Terminal */
.terminal {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(32, 194, 14, 0.2),
                0 0 80px rgba(32, 194, 14, 0.1),
                inset 0 0 20px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    margin-bottom: 30px;
    position: relative;
}

/* Cabeçalho do terminal */
.terminal-header {
    background: linear-gradient(to bottom, #333, #222);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close {
    background-color: #ff5f57;
}

.terminal-btn.minimize {
    background-color: #ffbd2e;
}

.terminal-btn.maximize {
    background-color: #28ca42;
}

.terminal-title {
    font-size: 14px;
    color: #aaa;
    font-weight: 600;
}

.terminal-title i {
    margin-right: 8px;
    color: #20c20e;
}

.terminal-time {
    font-size: 14px;
    color: #20c20e;
    font-family: 'Source Code Pro', monospace;
}

/* Corpo do terminal */
.terminal-body {
    padding: 25px;
    min-height: 400px;
    background-color: #0a0a0a;
    overflow: hidden;
    position: relative;
}

.terminal-content {
    font-size: 18px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    animation-delay: calc(var(--line-index) * 0.5s);
}

.terminal-line:nth-child(1) { --line-index: 1; }
.terminal-line:nth-child(2) { --line-index: 2; }
.terminal-line:nth-child(3) { --line-index: 3; }
.terminal-line:nth-child(4) { --line-index: 4; }
.terminal-line:nth-child(5) { --line-index: 5; }

.prompt {
    color: #20c20e;
    font-weight: 600;
    margin-right: 10px;
}

.command {
    color: #4cd137;
}

.output {
    color: #20c20e;
}

.output.success {
    color: #4cd137;
    font-weight: 600;
}

/* Container de digitação */
.typing-container {
    margin: 30px 0 40px;
    min-height: 30px;
    font-size: 24px;
    font-weight: 600;
}

.typing-text {
    color: #20c20e;
    text-shadow: 0 0 10px rgba(32, 194, 14, 0.7);
    letter-spacing: 1px;
}

/* Cursor */
.cursor {
    color: #20c20e;
    animation: blink 1s infinite;
    font-weight: 400;
    margin-left: 2px;
}

.blinking-cursor {
    color: #20c20e;
    animation: blink 0.8s infinite;
    font-weight: 400;
}

/* Linhas ocultas inicialmente */
.hidden {
    display: none;
}

/* Barra de status */
.terminal-status {
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-item i {
    color: #20c20e;
}

/* Controles */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.control-btn {
    background-color: #111;
    color: #20c20e;
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background-color: #1a1a1a;
    border-color: #20c20e;
    box-shadow: 0 0 15px rgba(32, 194, 14, 0.3);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn i {
    font-size: 16px;
}

/* Painel de informações */
.info-panel {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
}

.info-panel h3 {
    color: #20c20e;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-panel p {
    margin-bottom: 15px;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.spec {
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: #888;
}

.spec-value {
    color: #20c20e;
    font-weight: 600;
}

/* Animações */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(32, 194, 14, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(32, 194, 14, 0.9),
                     0 0 30px rgba(32, 194, 14, 0.5);
    }
}

/* Efeito Matrix (ativo quando aplicado) */
.matrix-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(32, 194, 14, 0.1) 2px,
        transparent 2px
    );
    background-size: 100% 4px;
    animation: matrixRain 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes matrixRain {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 1000px;
    }
}

/* Seção de contato */
.contact-section {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Source Code Pro', monospace;
    color: #20c20e;
    text-align: center;
}

.contact-line {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1s;
}

.contact-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1a1a1a;
    color: #20c20e;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link a:hover {
    background-color: #222;
    border-color: #20c20e;
    box-shadow: 0 0 15px rgba(32, 194, 14, 0.3);
    transform: translateY(-2px);
}

.contact-link a:active {
    transform: translateY(0);
}

.contact-link i {
    font-size: 18px;
}

/* Responsividade */
@media (max-width: 768px) {
    .terminal-body {
        padding: 15px;
        min-height: 350px;
    }
    
    .typing-container {
        font-size: 20px;
    }
    
    .terminal-content {
        font-size: 16px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .tech-specs {
        grid-template-columns: 1fr;
    }
    
    .terminal-status {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .typing-container {
        font-size: 18px;
    }
    
    .terminal-content {
        font-size: 14px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .info-panel {
        padding: 15px;
    }
}