/* Terminal Demo Styles */
.terminal-demo {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #404040;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #d4d4d4;
    font-size: 14px;
    font-weight: 500;
}

.terminal-content {
    padding: 15px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.terminal-output {
    margin-bottom: 10px;
}

.terminal-line {
    margin: 2px 0;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-prompt {
    color: #4ec9b0;
    font-weight: bold;
}

.command-text {
    color: #d4d4d4;
}

.input-text {
    color: #ce9178;
}

.output-text {
    color: #d4d4d4;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-cursor {
    color: #d4d4d4;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-demo {
        font-size: 12px;
    }

    .terminal-content {
        padding: 10px;
        min-height: 300px;
        max-height: 400px;
    }
}

/* Scrollbar styling */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Terminal Modal Styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-container.active {
    display: flex;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.terminal-modal {
    background: #1e1e1e;
    border-radius: 14px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #d4d4d4;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-content {
    padding: 30px;
}

.modal-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-description {
    color: #d4d4d4;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.terminal-demo-container {
    margin-top: 30px;
}

/* Responsive modal design */
@media (max-width: 768px) {
    .modal-container {
        padding: 10px;
    }

    .terminal-modal {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-description {
        font-size: 14px;
    }
}

/* Project showcase section */
.project-showcase {
    background: var(--light-bg-color);
    border-radius: 14px;
    padding: 30px;
    margin: 30px 0;
}

.project-showcase h3 {
    color: var(--light-text-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.project-description {
    color: var(--light-text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.demo-section {
    margin-top: 30px;
}

.demo-section h4 {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 18px;
}