/* ==============================================
   ABOUT TERMINAL ANIMATION
   ============================================== */

.about-terminal-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.terminal-window {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(6, 182, 212, 0.15),
        0 0 100px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
    transition: all 0.4s ease;
}

.terminal-window:hover {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(6, 182, 212, 0.25),
        0 0 120px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.terminal-header {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(139, 233, 253, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 20px;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9d1d9;
    min-height: 300px;
    max-height: 350px;
    overflow-y: auto;
}

/* Terminal line styles */
.term-line {
    opacity: 0;
    transform: translateY(5px);
    animation: termLineIn 0.3s ease forwards;
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

@keyframes termLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.term-prompt {
    color: #8be9fd;
}

.term-prompt::before {
    content: '❯ ';
    color: #50fa7b;
}

.term-cmd {
    color: #f8f8f2;
}

.term-comment {
    color: #6272a4;
    font-style: italic;
}

.term-success {
    color: #50fa7b;
}

.term-info {
    color: #8be9fd;
}

.term-warning {
    color: #f1fa8c;
}

.term-highlight {
    color: #bd93f9;
    font-weight: 600;
}

.term-accent {
    color: #ff79c6;
}

/* Progress bar inside terminal */
.term-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.term-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.term-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #bd93f9, #8be9fd, #50fa7b);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.term-progress-text {
    color: #50fa7b;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 45px;
    text-align: right;
}

/* Blinking cursor at the end */
.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #8be9fd;
    animation: termBlink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 4px;
}

@keyframes termBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating tech badges */
.floating-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(139, 233, 253, 0.3);
    color: #8be9fd;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: floatBadgeIn 0.5s ease forwards, floatBadge 6s ease-in-out infinite;
}

.float-badge i {
    font-size: 0.9rem;
}

.fb-1 {
    top: -15px;
    right: 10%;
    animation-delay: 1.5s, 1.5s;
    color: #61dafb;
    border-color: rgba(97, 218, 251, 0.3);
}

.fb-2 {
    top: 15%;
    right: -10%;
    animation-delay: 2s, 2s;
    color: #68a063;
    border-color: rgba(104, 160, 99, 0.3);
}

.fb-3 {
    bottom: 30%;
    right: -5%;
    animation-delay: 2.5s, 2.5s;
    color: #f1fa8c;
    border-color: rgba(241, 250, 140, 0.3);
}

.fb-4 {
    bottom: 10%;
    left: -5%;
    animation-delay: 3s, 3s;
    color: #bd93f9;
    border-color: rgba(189, 147, 249, 0.3);
}

.fb-5 {
    top: 40%;
    left: -10%;
    animation-delay: 3.5s, 3.5s;
    color: #54c5f8;
    border-color: rgba(84, 197, 248, 0.3);
}

.fb-6 {
    top: -15px;
    left: 10%;
    animation-delay: 4s, 4s;
    color: #ff79c6;
    border-color: rgba(255, 121, 198, 0.3);
}

@keyframes floatBadgeIn {
    to {
        opacity: 1;
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Light theme */
[data-theme="light"] .terminal-window {
    background: #fafbfc;
    border-color: #d0d7de;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .terminal-header {
    background: linear-gradient(180deg, #f6f8fa 0%, #eaeef2 100%);
    border-color: #d0d7de;
}

[data-theme="light"] .terminal-body {
    color: #24292f;
}

[data-theme="light"] .term-prompt {
    color: #0969da;
}

[data-theme="light"] .term-prompt::before {
    color: #1a7f37;
}

[data-theme="light"] .term-success {
    color: #1a7f37;
}

[data-theme="light"] .term-info {
    color: #0969da;
}

[data-theme="light"] .term-highlight {
    color: #8250df;
}

[data-theme="light"] .term-accent {
    color: #cf222e;
}

[data-theme="light"] .term-comment {
    color: #6e7781;
}

[data-theme="light"] .terminal-title {
    color: rgba(36, 41, 46, 0.5);
}

[data-theme="light"] .float-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d0d7de;
    color: #0969da;
}

/* Responsivo */
@media (max-width: 768px) {
    .about-terminal-container {
        max-width: 100%;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 15px;
        min-height: 250px;
    }

    .floating-badges {
        display: none;
    }
}