.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fa5e1b;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 1000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a:focus-visible,
button:focus-visible,
.demo-btn:focus-visible,
.terminal-input:focus-visible {
    outline: 2px dashed #fa5e1b;
    outline-offset: 3px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-jetbrains-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-ibm-plex-sans {
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Terminal Demo Styles */
.terminal-container {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(250, 94, 27, 0.1);
    border: 2px solid #fa5e1b;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close {
    background: #ff5f56;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27ca3f;
}

.terminal-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 300px;
    color: #00ff00;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.terminal-content * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.prompt {
    color: #fa5e1b;
    margin-right: 8px;
}

.command {
    color: #ffffff;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-width: 100% !important;
    display: inline-block;
    box-sizing: border-box;
}

.command-no-margin {
    margin-left: 0;
}

.explanation {
    background: rgba(250, 94, 27, 0.1);
    border-left: 3px solid #fa5e1b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: #ffcc99;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.warning {
    background: rgba(255, 100, 0, 0.1);
    border-left: 3px solid #ff6600;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: #ffaa66;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.optimization {
    background: rgba(180, 83, 9, 0.1);
    border-left: 3px solid #B45309;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    color: #d4a574;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.input-line {
    display: flex;
    align-items: center;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    padding: 5px;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

.demo-btn {
    background: #fa5e1b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.demo-btn:hover {
    background: #B45309;
    transform: translateY(-1px);
}

.typing {
    border-right: 2px solid #fa5e1b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terminal-container {
        padding: 12px;
        border-radius: 8px;
        margin: 0 5px;
        max-width: calc(100vw - 20px);
    }

    .terminal-content {
        font-size: 10px;
        line-height: 1.3;
        min-height: 200px;
    }

    .terminal-content * {
        font-size: 10px;
        line-height: 1.3;
    }

    .prompt {
        font-size: 10px;
        margin-right: 4px;
    }

    .command {
        font-size: 10px;
    }

    .terminal-input {
        font-size: 10px;
    }

    .explanation,
    .warning,
    .optimization {
        font-size: 9px;
        line-height: 1.2;
        padding: 6px;
        margin: 6px 0;
    }

    .demo-buttons {
        flex-direction: column;
        gap: 6px;
        margin-top: 15px;
    }

    .demo-btn {
        width: 100%;
        text-align: center;
        font-size: 10px;
        padding: 6px 10px;
    }

    .input-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

@media (max-width: 400px) {
    .terminal-container {
        padding: 8px;
        margin: 0 2px;
        max-width: calc(100vw - 10px);
    }

    .terminal-content {
        font-size: 9px;
    }

    .terminal-content * {
        font-size: 9px;
    }

    .prompt {
        font-size: 9px;
        margin-bottom: 2px;
        margin-right: 0;
    }

    .terminal-input {
        width: 100%;
        max-width: 100%;
        font-size: 9px;
    }

    .demo-btn {
        font-size: 9px;
    }
}
