@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --terminal-bg: #0a0e27;
    --terminal-text: #00ff41;
    --code-bg: #1a1f3a;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
}

body {
    background: var(--terminal-bg);
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

h2 {
    line-height: normal;
}

.code-font {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.title-incident-management {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.terminal-window {
    background: var(--code-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.terminal-header {
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.terminal-dot:nth-child(2) { 
    background: #f59e0b; 
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); 
}

.terminal-dot:nth-child(3) { 
    background: #10b981; 
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); 
}

.terminal-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--terminal-text);
    white-space: nowrap;
    animation: typing 3.5s 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: var(--terminal-text); }
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.code-line {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.line-number {
    color: rgba(226, 232, 240, 0.3);
    user-select: none;
    min-width: 30px;
    text-align: right;
}

.syntax-keyword { color: #c678dd; }
.syntax-string { color: #98c379; }
.syntax-function { color: #61afef; }
.syntax-comment { color: #5c6370; font-style: italic; }
.syntax-number { color: #d19a66; }

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 0;
}

.feature-card {
    background: var(--code-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
    width: auto;
}

.feature-card.explore-icons {
    min-height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.2;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    z-index: 2;
}

.btn-terminal {
    background: var(--code-bg);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 12px 32px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-terminal::before {
    content: '$ ';
    color: var(--accent-cyan);
}

.btn-terminal:hover {
    background: var(--accent-cyan);
    color: var(--terminal-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-terminal-secondary {
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.btn-terminal-secondary::before {
    color: var(--accent-purple);
}

.btn-terminal-secondary:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.section-title-code {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}


.integration-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    font-family: 'Space Mono', monospace;
}

.integration-tag::before {
    content: '>';
    color: var(--accent-cyan);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.1;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.api-window {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.api-response {
    color: var(--terminal-text);
    padding: 20px;
    font-size: 13px;
}

/* Typing Effect - Cursor Blink */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

/* Hide terminal content initially until typed */
.terminal-content .code-line > span:not(.line-number) {
    visibility: hidden;
}

@media (max-width: 768px) {

    .title-incident-management {
        font-size: 26px;
    }

    .section-title-code {
        font-size: 32px;
    }
    .terminal-content {
        font-size: 12px;
    }
}
