@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(74, 158, 255, 0.3);
    color: #e6e6e6;
}

::-moz-selection {
    background: rgba(74, 158, 255, 0.3);
    color: #e6e6e6;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d3a 25%, #1a1a2e 50%, #2d2d3a 75%, #1e1e2e 100%);
    color: #e6e6e6;
    overflow: hidden;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(74, 158, 255, 0.08) 0%, transparent 50%);
    animation: floatingLights 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatingLights {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) scale(1);
    }
    33% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1.1);
    }
    66% {
        opacity: 0.4;
        transform: translateY(10px) scale(0.9);
    }
}

.terminal-container {
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background: rgba(15, 15, 25, 0.95);
    border: 2px solid #4a9eff;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(74, 158, 255, 0.2),
        0 0 20px rgba(74, 158, 255, 0.1),
        0 0 60px rgba(74, 158, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(15px);
    position: relative;
}

.terminal-header {
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a4e 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a9eff;
    border-radius: 10px 10px 0 0;
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.control-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-dot.red {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.control-dot.yellow {
    background: linear-gradient(135deg, #feca57, #ff9800);
}

.control-dot.green {
    background: linear-gradient(135deg, #4a9eff, #74b9ff);
}

.control-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.terminal-title {
    font-size: 14px;
    font-weight: 500;
    color: #4a9eff;
    letter-spacing: 0.5px;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.boot-sequence {
    animation: fadeIn 1s ease-in-out;
}

.boot-line {
    margin-bottom: 10px;
    opacity: 0;
    animation: bootUp 0.3s ease-in-out forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.4s; }
.boot-line:nth-child(3) { animation-delay: 0.6s; }
.boot-line:nth-child(4) { animation-delay: 0.8s; }

@keyframes bootUp {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    padding-top: 15px;
    flex-shrink: 0;
}

.prompt {
    color: #4a9eff;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e6e6e6;
    font-family: inherit;
    font-size: 14px;
    padding: 0;
    caret-color: #4a9eff;
}

.cursor {
    color: #4a9eff;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output-line {
    margin-bottom: 12px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.command-line {
    color: #888;
    margin-bottom: 8px;
}

.command-line .prompt {
    color: #4a9eff;
}

.command-line .command {
    color: #e6e6e6;
}

.menu-option {
    color: #4a9eff;
    cursor: pointer;
    padding: 8px 15px;
    margin: 4px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid transparent;
    background: rgba(74, 158, 255, 0.05);
}

.menu-option:hover {
    background: rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateX(3px);
}

.menu-option.selected {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
}

.info-section {
    margin: 20px 0;
    padding: 20px;
    border-left: 3px solid #4a9eff;
    background: rgba(74, 158, 255, 0.05);
    border-radius: 0 8px 8px 0;
}

.info-title {
    color: #4a9eff;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-content {
    color: #e6e6e6;
    line-height: 1.8;
}

.link {
    color: #4a9eff;
    text-decoration: none;
    border-bottom: 1px dotted #4a9eff;
    transition: all 0.2s ease;
}

.link:hover {
    color: #74b9ff;
    border-bottom-style: solid;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    border: 1px solid #4a9eff;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(74, 158, 255, 0.2);
    transform: translateY(-2px);
}

.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.success {
    color: #48dbfb;
    background: rgba(72, 219, 251, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.warning {
    color: #feca57;
    background: rgba(254, 202, 87, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.contact-info {
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    gap: 10px;
}

.contact-label {
    color: #4a9eff;
    font-weight: 500;
    min-width: 80px;
}

.contact-value {
    color: #e6e6e6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .terminal-container {
        width: 100%;
        height: 95vh;
        border-radius: 8px;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .terminal-output {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .prompt {
        font-size: 13px;
    }
    
    .terminal-input {
        font-size: 13px;
    }
    
    .menu-option {
        padding: 12px 15px;
        margin: 6px 0;
        font-size: 14px;
    }
    
    .info-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .control-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .terminal-container {
        height: 100dvh;
        width: 100vw;
        border-radius: 0;
        border: none;
        max-height: 100dvh;
        min-height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
    }
    
    .terminal-header {
        border-radius: 0;
        height: 50px;
        min-height: 50px;
        flex-shrink: 0;
        padding: 8px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, #2a2a3e 0%, #3a3a4e 100%);
        border-bottom: 1px solid #4a9eff;
    }
    
    .terminal-body {
        flex: 1;
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        height: calc(100dvh - 50px - env(safe-area-inset-bottom) - 10px);
        padding-top: 0;
    }
    
    .terminal-output {
        flex: 1;
        font-size: 12px;
        overflow-y: auto;
        margin-bottom: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        max-height: none;
        padding-top: 15px;
        padding-bottom: 20px;
    }
    
    .terminal-input {
        font-size: 12px;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    .terminal-input-line {
        display: none;
    }
    
    .control-dot {
        width: 10px;
        height: 10px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .output-line {
        padding-bottom: 15px;
    }
}

@media (min-width: 1200px) {
    .terminal-container {
        max-width: 1600px;
    }
    
    .terminal-body {
        padding: 25px;
    }
    
    .terminal-output {
        font-size: 15px;
        line-height: 1.9;
    }
    
    .terminal-input {
        font-size: 15px;
    }
    
    .prompt {
        font-size: 15px;
    }
}

