/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark-gray: #111111;
    --gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --neon-green: #3caf0e;
    --neon-yellow: #5eff00;
    --white: #ffffff;
    --text-gray: #888888;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--neon-green);
    color: var(--black);
    padding: 0.5rem 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-green);
}

.btn-primary {
    background: var(--neon-green);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--neon-yellow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-text {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(204, 255, 0, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(204, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.digital-head {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--gray) 0%, var(--dark-gray) 100%);
    border: 2px solid var(--neon-green);
    position: relative;
    clip-path: polygon(
            20% 0%, 80% 0%, 100% 20%, 100% 80%,
            80% 100%, 20% 100%, 0% 80%, 0% 20%
    );
    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); }
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--neon-green);
    font-weight: bold;
}

/* Principles */
.principles {
    background: var(--dark-gray);
    max-width: 100%;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.principle-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    padding: 2rem;
    transition: all 0.3s;
}

.principle-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
}

.principle-icon {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.principle-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.principle-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Terminal Section */
.terminal-section {
    background: var(--black);
}

.terminal-container {
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.1);
}

.terminal-header {
    background: var(--gray);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27ca40;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.terminal-body {
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    background: var(--black);
    font-family: 'Courier New', monospace;
}

.terminal-output {
    margin-bottom: 1rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--neon-green);
    line-height: 1.5;
}

.terminal-line.command {
    color: var(--white);
}

.terminal-line.error {
    color: #ff5f56;
}

.terminal-line.success {
    color: #27ca40;
}

.terminal-line.info {
    color: #ffbd2e;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--neon-green);
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    caret-color: var(--neon-green);
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}

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

.terminal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) var(--dark-gray);
}

/* Status Section */
.status-section {
    background: var(--dark-gray);
    max-width: 100%;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.status-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    padding: 2rem;
}

.status-card h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.status-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--light-gray);
    margin: 0 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--neon-green);
    transition: width 0.3s;
}

.secure {
    color: var(--neon-green);
    font-weight: bold;
}

.system-message {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(204, 255, 0, 0.1);
    border-left: 3px solid var(--neon-green);
    color: var(--neon-green);
    font-size: 0.85rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    color: var(--white);
    padding: 0.75rem;
    font-family: inherit;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--neon-green);
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 1px solid var(--light-gray);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-green);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    color: var(--neon-green);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .terminal-container {
        margin: 0 1rem;
    }
}

/* ==================== BLOG STYLES ==================== */

/* Blog List Page */
.blog-list {
    max-width: 100%;
    padding: 8rem 2rem 4rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.blog-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 175, 14, 0.2);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
}

.blog-card-image::before {
    content: 'BLOG POST';
    font-size: 1.5rem;
    color: var(--neon-green);
    opacity: 0.5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-card a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.blog-card a:hover {
    color: var(--neon-yellow);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.blog-pagination a {
    display: block;
    padding: 0.75rem 1.5rem;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.blog-pagination a:hover,
.blog-pagination a.current {
    background: var(--neon-green);
    color: var(--black);
    border-color: var(--neon-green);
}

.blog-pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog Post Page */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-top: 1.5rem;
}

.blog-post-content {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 3rem;
    line-height: 1.8;
}

.blog-post-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.blog-post-image img:hover {
    transform: scale(1.02);
}

.blog-post-content h2 {
    color: var(--neon-green);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.blog-post-content pre {
    background: var(--black);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content code {
    font-family: 'Courier New', monospace;
    background: rgba(60, 175, 14, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--neon-green);
}

.blog-post-content a {
    color: var(--neon-green);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-green);
    padding-bottom: 2px;
}

.blog-post-content a:hover {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
}

/* Blog Admin Page */
.blog-admin {
    max-width: 100%;
    padding: 8rem 2rem 4rem;
}

.blog-admin h1 {
    color: var(--neon-green);
    margin-bottom: 2rem;
}

.admin-controls {
    margin-bottom: 2rem;
}

.admin-controls button {
    background: var(--neon-green);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-controls button:hover {
    background: var(--neon-yellow);
}

.admin-controls form {
    display: inline-block;
}

.blog-admin-list {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.blog-admin-list table {
    width: 100%;
    border-collapse: collapse;
}

.blog-admin-list th,
.blog-admin-list td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.blog-admin-list th {
    background: var(--dark-gray);
    color: var(--neon-green);
    font-weight: bold;
}

.blog-admin-list tr:hover {
    background: rgba(60, 175, 14, 0.05);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions button {
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-edit {
    background: var(--neon-green);
    color: var(--black);
}

.btn-delete {
    background: #ff5f56;
    color: var(--white);
}

.btn-edit:hover {
    background: var(--neon-yellow);
}

.btn-delete:hover {
    background: #ff3b30;
}

/* Blog Admin Form */
.blog-admin-form {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    color: var(--white);
    font-family: inherit;
    border-radius: 4px;
}

.form-group textarea {
    height: 300px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
}

.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--dark-gray);
}

.file-upload:hover,
.file-upload.drag-over {
    border-color: var(--neon-green);
    background: rgba(60, 175, 14, 0.05);
}

.file-upload label {
    margin: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--neon-green);
}

.file-upload-text {
    font-size: 1rem;
    color: var(--text-gray);
}

.file-upload input[type="file"] {
    display: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .blog-post-content {
        padding: 1.5rem;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-controls {
        text-align: center;
    }

    .blog-admin-list th,
    .blog-admin-list td {
        display: block;
        width: 100%;
    }

    .admin-actions {
        margin-top: 1rem;
    }

    .blog-card-image {
        height: 150px;
    }

    .file-upload {
        padding: 1.5rem;
    }
}