@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-blue: #0ff;
    --neon-purple: #b000ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --grid-color: rgba(0, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--dark-bg);
    color: var(--neon-cyan);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

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

/* Background grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform: rotateX(60deg) scale(2);
    transform-origin: center top;
    z-index: -1;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header with glitch effect */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 30px var(--neon-cyan),
        0 0 40px var(--neon-blue);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan),
            0 0 30px var(--neon-cyan);
    }
    to {
        text-shadow: 
            0 0 20px var(--neon-cyan),
            0 0 30px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 50px var(--neon-blue),
            0 0 60px var(--neon-blue);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2.5s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-blue);
    z-index: -2;
}

@keyframes glitch-1 {
    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); }
}

@keyframes glitch-2 {
    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); }
}

.subtitle {
    font-size: 0.9rem;
    color: var(--neon-pink);
    letter-spacing: 3px;
    margin-top: 1rem;
    animation: blink 1.5s infinite;
}

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

/* Terminal */
.terminal {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    margin-bottom: 2rem;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.terminal-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--neon-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-weight: bold;
    color: var(--neon-cyan);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    height: 250px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(0, 0, 0, 0.3);
}

/* Webkit scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.prompt {
    color: var(--neon-pink);
    margin-right: 0.5rem;
}

.command {
    color: #fff;
}

.status-ok {
    color: #0f0;
    margin-right: 0.5rem;
}

.status-warn {
    color: #ff0;
    margin-right: 0.5rem;
}

.typing-effect {
    border-right: 2px solid var(--neon-cyan);
    animation: typing 3s steps(40) infinite, blink-cursor 0.75s step-end infinite;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
}

#quote-text {
    display: inline-block;
    min-height: 1.8rem;
    line-height: 1.8;
}

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

@keyframes blink-cursor {
    50% { border-color: transparent; }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(176, 0, 255, 0.2);
}

.stat-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--neon-pink);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Services Section */
.services {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-pink);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px var(--neon-pink);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.service-item {
    background: rgba(0, 0, 0, 0.7);
    border-left: 3px solid var(--neon-cyan);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-left-width: 5px;
    transform: translateX(5px);
}

.service-name {
    font-weight: bold;
    color: #fff;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.service-uptime {
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--neon-cyan);
    margin-top: 3rem;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--neon-purple);
    letter-spacing: 2px;
    animation: blink 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .terminal {
        min-height: 250px;
        max-height: 350px;
    }
    
    .terminal-body {
        height: 200px;
        overflow-y: auto;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--neon-cyan) rgba(0, 0, 0, 0.3);
    }
    
    /* Webkit scrollbar styling for mobile */
    .terminal-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .terminal-body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }
    
    .terminal-body::-webkit-scrollbar-thumb {
        background: var(--neon-cyan);
        border-radius: 2px;
        box-shadow: 0 0 3px var(--neon-cyan);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
