
.terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.terminal {
    width: 90%;
    max-width: 800px;
    height: 60vh;
    background-color: #000;
    border-radius: 5px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
    border: 1px solid #00b364;
    position: relative;
    display: flex;
    flex-direction: column;
}

#terminal-content {
    color: #00ff8c;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-y: hidden; 
    height: 100%;
    padding-right: 10px;
    padding-left: 10px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    transition: margin-top 0.3s ease; 
}

#terminal-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#terminal-content::-webkit-scrollbar-track,
#terminal-content::-webkit-scrollbar-thumb {
    display: none;
}

#terminal-cursor {
    position: absolute;
    bottom: 20px;
    width: 10px;
    height: 20px;
    background-color: #00ff8c;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.terminal-green {
    color: #00ff8c;
}

.terminal-yellow {
    color: #fffc56;
}

.terminal-red {
    color: #ff5e56;
}

.terminal-blue {
    color: #56c2ff;
}

.terminal-white {
    color: #ffffff;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.terminal-fade-out {
    animation: fadeOut 1s forwards;
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00ff8c;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #00ff8c;
    }
}

.scan-effect {
    position: relative;
    color: #00ff8c;
    overflow: hidden;
}

.scan-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 140, 0.4) 50%,
        transparent 100%
    );
    animation: scan 2s infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cyber-text {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 2px;
    color: transparent;
    background: linear-gradient(45deg, #00ff8c, #56c2ff);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 
        0 0 10px rgba(0, 255, 140, 0.7),
        0 0 20px rgba(0, 255, 140, 0.5),
        0 0 30px rgba(0, 255, 140, 0.3);
    animation: gradient-shift 3s ease infinite, pulse 2s infinite alternate;
    border: 2px solid #00ff8c;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 
        0 0 10px rgba(0, 255, 140, 0.5),
        inset 0 0 10px rgba(0, 255, 140, 0.5);
    position: relative;
    display: inline-block;
    margin: 20px auto;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #111;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b364, #00ff8c);
    width: 0;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: progress-shine 1s infinite linear;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.matrix-rain {
    color: #00ff8c;
    font-size: 14px;
    text-align: left;
    margin: 10px 0;
    line-height: 1.3;
    opacity: 0.8;
}

.matrix-line {
    margin: 2px 0;
    opacity: 0.7;
    animation: fade-in 0.3s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

.matrix-line span {
    animation: matrix-flicker 0.3s infinite;
    display: inline-block;
}

@keyframes matrix-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.matrix-effect {
    position: relative;
}

.matrix-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 140, 0.2);
    animation: matrix-pulse 0.5s infinite alternate;
}

@keyframes matrix-pulse {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.2;
    }
}

.fade-out {
    animation: fade-out 0.5s forwards;
}

@keyframes fade-out {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 0;
    }
}

.terminal-glitch {
    color: #ff5e56;
    font-size: 12px;
    margin-left: 20px;
    animation: glitch-animation 0.3s infinite;
    display: inline-block;
}

@keyframes glitch-animation {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(1px);
    }
    100% {
        transform: translateX(0);
    }
}

.hacker-decoration {
    margin: 10px 0;
    font-size: 12px;
    opacity: 0.7;
}

.binary-line {
    color: #56c2ff;
    letter-spacing: 2px;
    font-family: monospace;
    margin: 5px 0;
    text-align: center;
}

.loading-dots {
    text-align: center;
    margin-top: 10px;
}

.loading-dots span {
    display: inline-block;
    font-size: 24px;
    color: #00ff8c;
    animation: dot-pulse 1s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5e56;
    box-shadow: 0 0 5px #ff5e56;
    animation: terminal-light 2s infinite alternate;
}

.terminal::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff8c;
    box-shadow: 0 0 5px #00ff8c;
    animation: terminal-light 1.5s infinite alternate;
    animation-delay: 0.5s;
}

@keyframes terminal-light {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
} 

.final-message {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 140, 0.7);
} 


.terminal-window {
    width: 100%;
    max-width: 600px;
    background-color: rgba(10, 10, 15, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
    border: 1px solid #00b364;
    margin: 80px auto 0;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background-color: #111;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-header span {
    color: #ccc;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.terminal-controls {
    display: flex;
}

.terminal-controls div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
}

.terminal-controls div:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-controls div:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-controls div:nth-child(3) {
    background-color: #27c93f;
}

.terminal-body {
    position: relative;
    background-color: rgba(10, 10, 15, 0.95);
    font-family: 'Fira Code', monospace;
    color: #e0e0e0;
    padding: 15px;
    height: 200px;
    overflow: hidden;
}

.terminal-text {
    height: 100%;
}

.terminal-text p {
    margin: 0;
    padding: 2px 0;
    line-height: 1.4;
}

.terminal-text .prompt {
    color: #00ff8c;
    user-select: none;
}

.terminal-text .command {
    color: #e0e0e0;
    font-weight: 600;
}

.terminal-text .response {
    color: #888;
    padding-left: 15px;
    font-size: 0.95em;
}

.terminal-text .error {
    color: #ff2d92;
}

.terminal-text .success {
    color: #00ff8c;
}

.terminal-text .warning {
    color: #ffcc00;
}

.terminal-text .highlight {
    color: #00aaff;
}

.typing {
    border-right: 2px solid #00ff8c;
    white-space: nowrap;
    overflow: hidden;
}

.blinking-cursor {
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.terminal-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 140, 0.03) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    .terminal-window {
        max-width: 100%;
        margin-top: 70px; 
    }
    
    .terminal-body {
        height: 180px;
    }
    
    .terminal-header span {
        font-size: 12px;
    }
    
    .terminal-controls div {
        width: 10px;
        height: 10px;
        margin-left: 6px;
    }
}


@media screen and (max-width: 480px) {
    .terminal-window {
        margin-top: 70px;
    }
    
    .terminal-body {
        height: 150px;
        padding: 10px;
    }
    
    .terminal-text p {
        font-size: 12px;
    }
    
    .terminal-header {
        padding: 5px 10px;
    }
    
    .terminal-controls div {
        width: 8px;
        height: 8px;
        margin-left: 4px;
    }
} 