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

body {
    font-family: 'Courier New', monospace;
    background-color: #0d0d0d;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Bar */

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    padding: 10px 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-link:hover {
    border: 2px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.nav-link.active {
    border: 2px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
}

header {
    text-align: center;
    padding: 10px 10px;
    border-bottom: 2px solid #00ff00;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    }
    to {
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    }
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.2em;
    color: #00cc00;
    letter-spacing: 2px;
}

.terminal-prompt {
    color: #00ff00;
    margin-bottom: 10px;
}

.terminal-prompt::before {
    content: '> ';
}

section {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    min-height: 1.2em;
}

.terminal-header {
    position: relative;
    display: inline-block;
    opacity: 0;
}

.terminal-header.typing {
    opacity: 1;
}

.terminal-header::after {
    content: '_';
    color: #00ff00;
    animation: blink 1s step-start infinite;
    margin-left: 2px;
}

.terminal-header.typing-complete::after {
    display: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #00dd00;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #00ff00;
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 2px solid #00ff00;
    margin-top: 60px;
    color: #00cc00;
}

.blink {
    animation: blink 1s step-start infinite;
}

a {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dotted #00ff00;
}

a:hover {
    text-shadow: 0 0 10px #00ff00;
}

.ascii-art {
    font-size: 0.8em;
    line-height: 1.1;
    color: #00ff00;
    margin: 5px 0;
    text-align: center;
    white-space: pre;
    font-family: 'Courier New', monospace;
}

.pgp-fingerprint {
    padding: 20px 20px 10px 20px;
    font-size: 0.95em;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.pgp-fingerprint code {
    display: inline-block;
    margin-top: 6px;
    color: #00dd00;
    letter-spacing: 1.5px;
    word-break: break-all;
}

.pgp-fingerprint strong {
    letter-spacing: 1px;
}


.pgp-meta {
    margin-top: 6px;
    font-size: 0.85em;
    color: #00cc00;
}

.pgp-panel {
    margin-top: 20px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    overflow: hidden;
}

.pgp-header {
    background-color: rgba(0, 255, 0, 0.1);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgp-header:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.pgp-header span {
    font-weight: bold;
}

.pgp-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.pgp-arrow.open {
    transform: rotate(90deg);
}

.pgp-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
}

.pgp-content.open {
    max-height: 500px;
    overflow-y: auto;
}

.pgp-key {
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #00dd00;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    margin: 0 20px 20px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.blog-post {
    padding: 20px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-post:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.blog-post-title {
    font-size: 1.4em;
    color: #00ff00;
    margin-bottom: 10px;
}

.blog-post-meta {
    font-size: 0.9em;
    color: #00cc00;
    margin-bottom: 10px;
}

.blog-post-category {
    font-size: 0.85em;
    color: #00aa00;
    margin-bottom: 15px;
    font-style: italic;
}

.blog-post-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px solid #00ff00;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.error-message {
    padding: 30px;
    text-align: center;
}

.error-message h2 {
    color: #ff0000;
    margin-bottom: 20px;
}

/* Blog article content styling */
#article-container h1 {
    font-size: 2.5em;
    color: #00ff00;
    margin-top: 30px;
    margin-bottom: 20px;
}

#article-container h2 {
    font-size: 2em;
    color: #00ff00;
    margin-top: 40px;
    margin-bottom: 20px;
}

#article-container h3 {
    font-size: 1.5em;
    color: #00ff00;
    margin-top: 30px;
    margin-bottom: 15px;
}

#article-container p {
    margin-bottom: 15px;
    line-height: 1.8;
}

#article-container ul,
#article-container ol {
    margin-bottom: 25px;
    margin-left: 30px;
    line-height: 1.8;
}

#article-container li {
    margin-bottom: 8px;
}

#article-container strong {
    color: #00ff00;
}

#article-container code {
    background-color: rgba(0, 255, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

#article-container pre {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

#article-container pre code {
    background-color: transparent;
    padding: 0;
}

#article-container hr {
    border: none;
    border-top: 1px solid #00ff00;
    margin: 30px 0;
}

#article-container blockquote {
    border-left: 3px solid #00ff00;
    margin-left: 0;
    padding-left: 20px;
    color: #00cc00;
    font-style: italic;
}

/* Search functionality */
.search-container {
    margin: 25px 0 30px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

#search-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.9);
}

#search-input::placeholder {
    color: #00aa00;
    opacity: 0.7;
}

.search-results-count {
    margin-top: 10px;
    color: #00cc00;
    font-size: 0.9em;
    text-align: right;
}

.blog-post.hidden {
    display: none;
}

.blog-post mark {
    background-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
    padding: 2px 4px;
    border-radius: 2px;
}