/* ============================================
   TECH NOTIFICATION - Ultra Dark STK Cyan Terminal
   ============================================ */

.tech-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 420px;
    background: #000000;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 0;
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.3),
        0 0 40px rgba(0, 217, 255, 0.1),
        inset 0 0 60px rgba(0, 217, 255, 0.02);
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    overflow: hidden;
}

.tech-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #00d9ff 50%,
            transparent 100%);
    animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.tech-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Terminal Header */
.tech-notification::after {
    content: '█';
    position: absolute;
    top: 8px;
    right: 12px;
    color: #00d9ff;
    font-size: 12px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.tech-notification-content {
    padding: 24px;
    color: #00d9ff;
    position: relative;
}

/* Terminal-style prefix */
.tech-notification-content::before {
    content: '> ';
    position: absolute;
    left: 24px;
    top: 24px;
    color: #00d9ff;
    font-weight: bold;
}

.tech-icon {
    display: none;
}

.tech-message {
    padding-left: 16px;
}

.tech-greeting {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #00d9ff;
    text-shadow:
        0 0 10px rgba(0, 217, 255, 0.8),
        0 0 20px rgba(0, 217, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-text {
    font-size: 13px;
    margin-bottom: 12px;
    color: #00bbdd;
    line-height: 1.6;
}

.tech-subtext {
    font-size: 11px;
    color: #0099bb;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.tech-subtext::before {
    content: '[';
    color: #00d9ff;
    margin-right: 4px;
}

.tech-subtext::after {
    content: ']';
    color: #00d9ff;
    margin-left: 4px;
}

/* Matrix-style background effect */
.tech-notification-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 2px,
            rgba(0, 217, 255, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
}

.tech-progress {
    height: 4px;
    background: #001122;
    border-top: 1px solid #003344;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.tech-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: #00d9ff;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.8),
        0 0 20px rgba(0, 217, 255, 0.4);
    animation: progress-terminal 6s linear forwards;
}

@keyframes progress-terminal {
    from {
        transform: translateX(-30%);
    }

    to {
        transform: translateX(400%);
    }
}

/* Glitch effect on enter */
@keyframes glitch {
    0% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }

    20% {
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translateX(2px);
        filter: hue-rotate(0deg);
    }

    60% {
        transform: translateX(-1px);
        filter: hue-rotate(45deg);
    }

    80% {
        transform: translateX(1px);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
}

.tech-notification.show .tech-notification-content {
    animation: glitch 0.3s ease-out;
}

/* Typing effect for greeting */
.tech-greeting {
    overflow: hidden;
    border-right: 2px solid #00d9ff;
    white-space: nowrap;
    animation:
        typing 0.8s steps(20) forwards,
        blink-caret 0.75s step-end 10;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

/* Mobile responsiveness - OTIMIZADO */
@media (max-width: 480px) {
    .tech-notification {
        right: 10px;
        left: 10px;
        width: auto;
        top: 10px;
    }

    .tech-notification-content {
        padding: 20px 16px;
    }

    .tech-notification-content::before {
        left: 16px;
        top: 20px;
    }

    .tech-message {
        padding-left: 12px;
    }

    .tech-greeting {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .tech-text {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .tech-subtext {
        font-size: 10px;
    }

    .tech-progress {
        height: 3px;
    }
}

/* Scanline effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.tech-notification::before {
    animation: scanline 8s linear infinite;
}