/* New About Section Terminal Style */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 0 2rem;
}

.about-left {
    flex: 1 1 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title-left {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
    color: var(--text-color);
}

.section-title-left .highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.section-title-left .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(88, 166, 255, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

.brain-decoration {
    font-size: 8rem;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    top: -50px;
    left: -20px;
    z-index: -1;
    filter: blur(2px);
}

.pulse-brain {
    animation: brainPulse 4s infinite ease-in-out;
}

@keyframes brainPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.about-right {
    flex: 1 1 55%;
    width: 100%;
}

/* Terminal Window */
.terminal-window {
    background-color: #0d1117;
    /* Darker bg for contrast */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px #30363d;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace font */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--primary-color);
}

.terminal-window {
    max-width: 100%;
    width: 100%;
}

.terminal-header {
    background-color: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control.red {
    background-color: #ff5f56;
}

.control.yellow {
    background-color: #ffbd2e;
}

.control.green {
    background-color: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.command-line {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.prompt {
    color: #27c93f;
    /* Green prompt */
    margin-right: 10px;
    font-weight: 700;
}

.command {
    color: #fff;
    font-weight: 400;
}

.typing-effect {
    border-right: 2px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 1.5s steps(16, end) forwards;
    width: 0;
    display: inline-block;
}

/* Adjust animation to be simpler without JS length calc */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
        border-color: transparent;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #fff;
    }
}

.terminal-output {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out 1.7s forwards;
    /* Delay to match typing + slight pause */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.keyword-green {
    color: #7ee787;
    font-weight: 600;
}

.keyword-blue {
    color: #79c0ff;
    font-weight: 600;
}

.bio-text {
    color: #8b949e;
    margin-bottom: 1rem;
}

.skills-output {
    margin-top: 1.5rem;
    background-color: rgba(22, 27, 34, 0.5);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.skill-item {
    font-size: 0.85rem;
    color: #a5d6ff;
}

/* Mobile Responsiveness for Terminal */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-left {
        align-items: center;
    }

    .section-title-left {
        text-align: center;
        font-size: 2.5rem;
    }

    .brain-decoration {
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .terminal-body {
        text-align: left;
        /* Keep terminal text left-aligned even on mobile */
    }
}