/* ============================================
   MISSION CONTROL TERMINAL
   NASA-style terminal with cosmic theme
   ============================================ */

.mission-control-section {
    position: relative;
    min-height: 100vh;
    /* 
       Dynamic gradient: Deep blue → Deep purple flow
       - Start: Match products bottom (#101428)
       - Middle: Deep space blue
       - End: Transition toward nebula purple tones
    */
    background: linear-gradient(180deg,
            #101428 0%,
            #0f1326 10%,
            #0e1424 20%,
            #0d1522 35%,
            #0c1620 50%,
            #0b151e 60%,
            #0a141c 70%,
            #0b121a 80%,
            #0c1018 90%,
            #0d0e16 100%);
    padding: 100px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ambient star particles + Teal glow */
.mission-control-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Teal ambient glow at center */
        radial-gradient(ellipse 60% 40% at 50% 50%,
            rgba(45, 212, 191, 0.06) 0%,
            rgba(45, 212, 191, 0.03) 40%,
            transparent 70%),
        /* Star particles */
        radial-gradient(1px 1px at 5% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 45%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 60%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 95% 10%, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

/* Section Header */
.mission-control-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.mission-control-header .section-tag-cosmic {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: rgba(45, 212, 191, 0.9);
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
}

.mission-control-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.mission-control-header h2 .text-glow {
    background: linear-gradient(135deg, #2dd4bf, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   TERMINAL CONTAINER
   ============================================ */

.terminal-container {
    position: relative;
    width: 95%;
    max-width: 900px;
    z-index: 5;
}

/* Terminal Window - Clean static style */
.terminal-window {
    background: rgba(5, 5, 8, 0.7);
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: none;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Top line - static */
.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 1px;
    background: #2dd4bf;
    opacity: 0.5;
}

/* Left vertical line - static */
.terminal-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: #2dd4bf;
    opacity: 0.4;
}

/* Terminal Header (Title Bar) - Sharp edges */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(180deg,
            rgba(20, 30, 50, 0.9) 0%,
            rgba(15, 20, 35, 0.95) 100%);
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

/* Windows-style controls */
.terminal-controls {
    display: flex;
    gap: 2px;
}

.window-btn {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-family: 'Segoe UI', sans-serif;
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease;
}

.window-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.window-btn.close:hover {
    background: #e81123;
    color: #fff;
}

.window-btn .icon {
    font-size: 0.65rem;
}

.terminal-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title .icon {
    font-size: 1rem;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulse-status {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.status-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Terminal Body */
.terminal-body {
    padding: 30px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    min-height: 350px;
}

/* Terminal Lines */
.terminal-line {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: line-appear 0.5s ease-out forwards;
}

.terminal-line.command {
    color: #a855f7;
    margin-bottom: 20px;
}

.terminal-line.command .prompt {
    color: #2dd4bf;
}

.terminal-line.module {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.terminal-line.module .arrow {
    color: #2dd4bf;
    font-weight: bold;
}

.terminal-line.module .module-name {
    color: rgba(255, 255, 255, 0.9);
    min-width: 280px;
}

.terminal-line.module .dots {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.terminal-line.module .status {
    font-weight: 600;
    margin-left: auto;
}

.terminal-line.module .status.success {
    color: #10b981;
}

.terminal-line.module .status.connected {
    color: #2dd4bf;
}

.terminal-line.module .status.active {
    color: #a855f7;
}

/* Module Description (sub-line) */
.terminal-line.sub {
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.terminal-line.sub::before {
    content: '└─';
    color: rgba(45, 212, 191, 0.4);
    margin-right: 8px;
}

/* Divider */
.terminal-line.divider {
    color: rgba(45, 212, 191, 0.3);
    margin: 20px 0;
    letter-spacing: 0;
}

/* Result Line */
.terminal-line.result {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #10b981;
    font-weight: 500;
    margin-top: 10px;
}

.terminal-line.result .icon {
    font-size: 1.2rem;
}

/* Final Message */
.terminal-line.message {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-style: italic;
}

.terminal-line.message .highlight {
    color: #2dd4bf;
    font-style: normal;
    font-weight: 600;
}

/* Animation delays for sequential appearance */
.terminal-line:nth-child(1) {
    animation-delay: 0.2s;
}

.terminal-line:nth-child(2) {
    animation-delay: 0.6s;
}

.terminal-line:nth-child(3) {
    animation-delay: 0.9s;
}

.terminal-line:nth-child(4) {
    animation-delay: 1.2s;
}

.terminal-line:nth-child(5) {
    animation-delay: 1.5s;
}

.terminal-line:nth-child(6) {
    animation-delay: 1.8s;
}

.terminal-line:nth-child(7) {
    animation-delay: 2.1s;
}

.terminal-line:nth-child(8) {
    animation-delay: 2.4s;
}

.terminal-line:nth-child(9) {
    animation-delay: 2.7s;
}

.terminal-line:nth-child(10) {
    animation-delay: 3.0s;
}

.terminal-line:nth-child(11) {
    animation-delay: 3.3s;
}

.terminal-line:nth-child(12) {
    animation-delay: 3.6s;
}

@keyframes line-appear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor blink */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: #2dd4bf;
    margin-left: 5px;
    animation: cursor-blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* No hover effects on terminal */

/* ============================================
   BOTTOM TAGLINE
   ============================================ */

.mission-tagline {
    margin-top: 40px;
    text-align: center;
    z-index: 10;
}

.mission-tagline p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.mission-tagline .highlight {
    color: #2dd4bf;
    font-weight: 600;
}

/* ============================================
   TERMINAL DECORATIONS - Spacecraft Feel
   ============================================ */

.terminal-decorations {
    position: absolute;
    inset: -15px;
    pointer-events: none;
    z-index: 0;
}

.deco-line {
    position: absolute;
    background: linear-gradient(to bottom, rgba(45, 212, 191, 0.3), transparent);
    width: 1px;
    height: 60px;
}

.deco-line.left {
    left: -8px;
    top: 20%;
}

.deco-line.right {
    right: -8px;
    top: 30%;
}

.deco-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(45, 212, 191, 0.25);
    border-style: solid;
    border-width: 0;
}

.deco-corner.top-left {
    top: 0;
    left: 0;
    border-top-width: 1px;
    border-left-width: 1px;
}

.deco-corner.top-right {
    top: 0;
    right: 0;
    border-top-width: 1px;
    border-right-width: 1px;
}

.deco-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.deco-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* ============================================
   INTERACTIVE TERMINAL STYLES
   ============================================ */

.hidden {
    display: none !important;
}

/* Typewriter line animation */
.typewriter-line {
    opacity: 0;
    transform: translateY(5px);
}

.typewriter-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.typewriter-line .status,
.typewriter-line .dots {
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
}

.typewriter-line.visible .status,
.typewriter-line.visible .dots {
    opacity: 1;
}

/* Interactive section */
#interactive-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(45, 212, 191, 0.15);
}

.interactive-step {
    margin-bottom: 15px;
}

/* Prompt lines */
.terminal-line.prompt-line {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.terminal-line.response-line {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.terminal-line.result-line {
    color: #10b981;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Terminal input */
.terminal-line.input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(45, 212, 191, 0.3);
    color: #a855f7;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    padding: 8px 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.terminal-input:focus {
    border-bottom-color: #2dd4bf;
}

.cursor-input {
    width: 10px;
    height: 18px;
    background: #2dd4bf;
    animation: cursor-blink 1s step-end infinite;
}

/* CTA Button */
.terminal-line.cta-line {
    margin-top: 20px;
}

.terminal-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #2dd4bf;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terminal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.2), transparent);
    transition: left 0.5s ease;
}

.terminal-cta:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(168, 85, 247, 0.15));
    border-color: #2dd4bf;
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.3);
    transform: translateX(5px);
}

.terminal-cta:hover::before {
    left: 100%;
}

.cta-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.terminal-cta:hover .cta-icon {
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mission-control-section {
        padding: 60px 15px;
    }

    .terminal-body {
        padding: 20px 15px;
        font-size: 0.8rem;
    }

    .terminal-line.module {
        flex-wrap: wrap;
        gap: 5px;
    }

    .terminal-line.module .module-name {
        min-width: auto;
        flex: 1;
    }

    .terminal-line.module .dots {
        display: none;
    }

    .terminal-line.module .status {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }

    .terminal-line.sub {
        padding-left: 15px;
        font-size: 0.75rem;
    }

    .terminal-header {
        padding: 12px 15px;
    }

    .terminal-title {
        font-size: 0.75rem;
    }

    .status-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        font-size: 0.7rem;
        line-height: 1.6;
    }

    .terminal-line.module .arrow {
        font-size: 0.8rem;
    }
}