/* ===========================
   RETRO TERMINAL CV STYLES
   =========================== */

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

:root {
    --terminal-green: #33ff33;
    --terminal-bg: #0a0a0a;
    --terminal-shadow: #001100;
    --scan-line-color: rgba(0, 255, 0, 0.02);
    --highlight-color: #55ff55;
}

body {
    font-family: 'VT323', monospace;
    background: #000;
    color: var(--terminal-green);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* CRT Effect Container */
.crt {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* Terminal Window */
.terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-green);
    border-radius: 8px;
    box-shadow:
        0 0 10px var(--terminal-green),
        0 0 20px var(--terminal-shadow),
        inset 0 0 100px rgba(0, 255, 0, 0.05);
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    background: #001100;
    padding: 10px 15px;
    border-bottom: 1px solid var(--terminal-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--terminal-green);
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.control {
    cursor: pointer;
    font-size: 24px;
    transition: color 0.2s;
}

.control:hover {
    color: var(--highlight-color);
    text-shadow: 0 0 8px var(--highlight-color);
}

/* Terminal Body */
.terminal-body {
    padding: 30px;
    font-size: 20px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 12px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
    border-left: 1px solid var(--terminal-green);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--terminal-green);
    border: 1px solid var(--terminal-green);
    box-shadow: 0 0 5px var(--terminal-green);
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    box-shadow: 0 0 8px var(--highlight-color);
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in;
}

.boot-sequence p {
    margin: 5px 0;
}

.status-ok {
    color: var(--highlight-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--highlight-color);
}

/* ASCII Art */
.ascii-art {
    font-size: 12px;
    line-height: 1.2;
    margin: 20px 0;
    text-align: center;
    color: var(--highlight-color);
    text-shadow: 0 0 5px var(--terminal-green);
}

/* Personal Info Section */
.personal-info {
    margin-bottom: 40px;
}

.info-block {
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid var(--terminal-green);
    padding: 20px;
    margin: 20px 0;
}

.info-row {
    display: flex;
    margin: 8px 0;
    font-size: 22px;
}

.info-label {
    color: var(--highlight-color);
    min-width: 200px;
    font-weight: bold;
}

.info-value {
    color: var(--terminal-green);
}

/* Section Title */
.section-title {
    font-size: 28px;
    margin: 30px 0 20px 0;
    color: var(--highlight-color);
    text-shadow: 0 0 10px var(--terminal-green);
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    position: relative;
    padding-left: 30px;
}

.section-title:hover {
    opacity: 0.8;
}

.section-title::before {
    content: '>';
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.section-title.collapsed::before {
    transform: rotate(90deg);
}

/* Collapsible Content */
.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Education Section */
.education-section {
    margin-bottom: 30px;
}

.education-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.3);
}

.education-item:last-child {
    border-bottom: none;
}

/* Languages Section */
.languages-section {
    margin-bottom: 30px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid var(--terminal-green);
}

.company-name {
    font-size: 26px;
    color: var(--highlight-color);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--terminal-green);
}

.date-range {
    font-size: 18px;
    color: var(--terminal-green);
    margin-bottom: 15px;
    opacity: 0.8;
}

.role-item {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 30, 0, 0.3);
    border-left: 2px solid var(--terminal-green);
}

.role-name {
    font-size: 22px;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.role-description {
    margin: 15px 0;
    color: var(--terminal-green);
    font-size: 20px;
    line-height: 1.7;
    padding: 10px 0;
}

.role-description p {
    margin: 8px 0;
    opacity: 0.95;
}

.description-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.description-list li {
    position: relative;
    padding-left: 25px;
    margin: 10px 0;
    line-height: 1.6;
}

.description-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
    font-weight: bold;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding: 10px 0;
}

.skill-tag {
    background: rgba(51, 255, 51, 0.15);
    border: 1px solid var(--terminal-green);
    padding: 8px 16px;
    font-size: 18px;
    color: var(--terminal-green);
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.skill-tag:hover {
    background: rgba(51, 255, 51, 0.25);
    box-shadow: 0 0 10px var(--terminal-green);
    transform: translateY(-2px);
}

/* Terminal Footer */
.terminal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--terminal-green);
}

.cursor-line {
    margin-top: 10px;
}

.cursor {
    animation: blink 1s infinite;
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-body {
        padding: 20px;
        font-size: 16px;
    }

    /* Mobile Scrollbar */
    .terminal-body::-webkit-scrollbar {
        width: 8px;
    }

    .terminal-body::-webkit-scrollbar-track {
        background: var(--terminal-bg);
        border-left: 1px solid var(--terminal-green);
    }

    .terminal-body::-webkit-scrollbar-thumb {
        background: var(--terminal-green);
        border: 1px solid var(--terminal-green);
        box-shadow: 0 0 5px var(--terminal-green);
    }

    .terminal-body::-webkit-scrollbar-thumb:hover {
        background: var(--highlight-color);
        border-color: var(--highlight-color);
        box-shadow: 0 0 8px var(--highlight-color);
    }

    .ascii-art {
        font-size: 8px;
    }

    .info-row {
        flex-direction: column;
        font-size: 18px;
    }

    .info-label {
        min-width: auto;
    }

    .timeline {
        padding-left: 0;
    }

    .company-name {
        font-size: 22px;
    }

    .role-name {
        font-size: 18px;
    }

    .role-description {
        font-size: 17px;
    }

    .description-list li {
        padding-left: 20px;
        margin: 8px 0;
    }

    .skill-tag {
        font-size: 16px;
        padding: 6px 12px;
    }
}
