/* Old-school web meets modern sleek */

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

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Courier New', 'Courier', monospace;
    line-height: 1.7;
    overflow-x: hidden;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 20px;
}

.ascii-header {
    color: #ffb000;
    font-size: 10px;
    line-height: 1.2;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
    flex-shrink: 0;
}

.resume-button {
    background-color: #1a1a1a;
    border: 2px solid #ffb000;
    padding: 10px 20px;
    font-size: 14px;
    color: #ffb000;
    text-decoration: none;
    border-bottom: 2px solid #ffb000;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.resume-button:hover {
    background-color: #ffb000;
    color: #0a0a0a;
    text-shadow: none;
    border-bottom: 2px solid #ffb000;
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.6);
    transform: translateY(-2px);
}

.tagline {
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
}

h1 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.underline {
    color: #444;
    font-size: 14px;
    margin-bottom: 20px;
    overflow-x: auto;
}

h2 {
    font-size: 16px;
    color: #ffb000;
    margin-top: 25px;
    margin-bottom: 3px;
}

.subline {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
}

h3 {
    font-size: 14px;
    color: #ff8800;
    margin-bottom: 8px;
}

p {
    margin: 15px 0;
    font-size: 14px;
    color: #ccc;
}

a {
    color: #ff9933;
    text-decoration: none;
    border-bottom: 1px dotted #ff9933;
    transition: all 0.2s ease;
}

a:hover {
    color: #ffb000;
    border-bottom: 1px solid #ffb000;
    text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

a:visited {
    color: #cc8800;
    border-bottom-color: #cc8800;
}

ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style: none;
}

ul li {
    margin: 8px 0;
    font-size: 14px;
    color: #bbb;
}

ul li:before {
    content: "▹ ";
    color: #ffb000;
    margin-right: 8px;
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.lang {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 8px 16px;
    font-size: 13px;
    color: #ffb000;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang:hover {
    border-color: #ffb000;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.3);
    transform: translateY(-2px);
}

.philosophy {
    font-style: italic;
    color: #888;
    margin-top: 20px;
    padding: 15px;
    border-left: 3px solid #ffb000;
    background-color: rgba(255, 176, 0, 0.05);
}

.project {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #ff9933;
    transition: all 0.3s ease;
}

.project:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #ffb000;
    transform: translateX(5px);
}

.project h3 {
    margin-bottom: 10px;
}

.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #555;
    font-size: 12px;
}

.footer p {
    margin: 5px 0;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }

    .header-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ascii-header {
        font-size: 8px;
    }

    .resume-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 14px;
    }

    .underline {
        font-size: 12px;
    }
}

/* Selection color */
::selection {
    background-color: #ffb000;
    color: #000;
}

::-moz-selection {
    background-color: #ffb000;
    color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffb000;
}

/* Blog-specific styles */
.blog-card {
    margin: 30px 0;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 2px solid #333;
    border-left: 4px solid #ffb000;
    transition: all 0.3s ease;
}

.blog-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-left-color: #ff9933;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.1);
}

.blog-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-card h2 a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 2px solid #ffb000;
}

.blog-card h2 a:hover {
    color: #ffb000;
}

.blog-description {
    color: #aaa;
    font-size: 14px;
    margin: 10px 0;
}

.blog-post-count {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin: 5px 0 15px 0;
}

.blog-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.preview-date {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.blog-preview h3 {
    color: #ffb000;
    font-size: 15px;
    margin: 8px 0;
}

.preview-text {
    color: #bbb;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    color: #ff9933;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
    border-bottom: 1px solid #ff9933;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #ffb000;
    border-bottom-color: #ffb000;
    transform: translateX(3px);
}

.blog-post {
    margin: 30px 0;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #ffb000;
    transition: all 0.3s ease;
}

.blog-post:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-left-color: #ff9933;
}

.blog-post h2 {
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-post h3 {
    color: #ffb000;
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.blog-post h4 {
    color: #ff9933;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid #333;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    display: block;
}

.blog-post img:hover {
    border-color: #ffb000;
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.3);
}

.blog-post video {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid #333;
    border-radius: 4px;
    display: block;
}

.blog-post video:hover {
    border-color: #ffb000;
}

.blog-post code {
    background-color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    color: #ff9933;
    font-size: 13px;
    border: 1px solid #333;
}

.blog-post pre {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-post pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: #e0e0e0;
}

.blog-post blockquote {
    border-left: 3px solid #ffb000;
    padding-left: 15px;
    margin: 15px 0;
    color: #888;
    font-style: italic;
    background-color: rgba(255, 176, 0, 0.05);
    padding: 10px 15px;
}

.blog-post strong {
    color: #fff;
    font-weight: bold;
}

.blog-post em {
    color: #ccc;
    font-style: italic;
}

.blog-post hr {
    border: none;
    border-top: 1px solid #333;
    margin: 25px 0;
}
