/* TERMINAL STYLES */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#terminal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#terminal-window {
    width: 90%;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    background-color: #1b1f22;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #25292d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close { background-color: #ff5f56; }
.control.minimize { background-color: #ffbd2e; }
.control.expand { background-color: #27c93f; }

.terminal-title {
    color: #aaa;
    margin-left: 15px;
    font-size: 0.9rem;
}

#terminal-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

#terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #4CAF50;
    margin-right: 8px;
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    flex: 1;
    outline: none;
    padding: 0;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.command-line {
    margin-bottom: 5px;
}

.terminal-output-line {
    margin-bottom: 10px;
    white-space: pre-wrap;
}

body.terminal-open {
    overflow: hidden;
}

body.terminal-open #wrapper {
    filter: brightness(0.5);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Project buttons */
.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.project-button {
    background-color: transparent;
    color: white;
    border: 1px solid #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
}

.project-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contact Form Message */
#form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#form-message.show {
    display: block;
}

/* Form Validation */
input:invalid, textarea:invalid {
    border-color: #ff5f56;
}

input:valid, textarea:valid {
    border-color: #27c93f;
}