/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #2b2b2b;
    color: #e8e8e8;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Subtle CRT scan line effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2b2b2b;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 3px solid #444;
    box-shadow: 0 3px 0 #DD8B2C;
}

.logo-image {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
    letter-spacing: -0.01em;
    position: relative;
}

.hero h1::before {
    content: '> ';
    color: #DD8B2C;
    font-size: 0.8em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #b8b8b8;
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: #e8e8e8;
    border: 2px solid #DD8B2C;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 4px 4px 0 #DD8B2C;
    position: relative;
}

.cta-button:hover {
    background-color: #DD8B2C;
    color: #2b2b2b;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #DD8B2C;
}

/* Section styling */
section {
    padding: 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: #e8e8e8;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '█';
    color: #DD8B2C;
    margin-left: 0.3rem;
    animation: blink 1.5s infinite;
}

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

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    background-color: transparent;
    border: 2px solid #444;
    padding: 2rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #DD8B2C;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-card:hover {
    border-color: #DD8B2C;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #e8e8e8;
}

.project-icon {
    font-size: 1.5rem;
    color: #DD8B2C;
    transition: transform 0.2s;
}

.project-card:hover .project-icon {
    transform: translateX(5px);
}

.project-card p {
    color: #b8b8b8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    padding: 0.3rem 0;
    background-color: transparent;
    color: #b8b8b8;
    font-size: 0.9rem;
    border: none;
}

.tech-tag::before {
    content: '> ';
    color: #DD8B2C;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category h3::before {
    content: '▸';
    color: #DD8B2C;
    position: absolute;
    left: 0;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item {
    color: #b8b8b8;
    font-size: 0.95rem;
    padding: 0.3rem 0;
}

.skill-item::before {
    content: '- ';
    color: #888;
}

/* About Section */
.about {
    border-top: 3px solid #444;
    border-bottom: 3px solid #444;
    box-shadow: 0 3px 0 #DD8B2C, 0 -3px 0 #DD8B2C;
    position: relative;
}

.about::before {
    content: '◆◆◆';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #DD8B2C;
    background: #2b2b2b;
    padding: 0 1rem;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}

.about h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #e8e8e8;
    position: relative;
    padding-left: 2.5rem;
}

.about h2::before {
    content: '//';
    color: #DD8B2C;
    position: absolute;
    left: 0;
}

.about p {
    color: #b8b8b8;
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-button {
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #444;
}

.social-link {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
}

.social-link::before {
    content: '[';
    color: #DD8B2C;
    margin-right: 0.2rem;
}

.social-link::after {
    content: ']';
    color: #DD8B2C;
    margin-left: 0.2rem;
}

.social-link:hover {
    color: #DD8B2C;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 3px solid #444;
    box-shadow: 0 -3px 0 #DD8B2C;
    position: relative;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

footer::after {
    content: '▓▓▓▓▓▓▓▓';
    display: block;
    margin-top: 1rem;
    color: #DD8B2C;
    letter-spacing: 0.2rem;
    opacity: 0.3;
}

/* Blog Page Styling */
.blog-page {
    padding-top: 150px;
}

/* Terminal-style list for technical explanations (remove default bullets) */
.terminal-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem 0;
}
.terminal-list li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.terminal-list li code {
    color: #DD8B2C;
    display: inline-block;
    width: 1.2rem;
    text-align: left;
    font-weight: 700;
}

main {
    min-height: 100vh;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.pixel-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #e8e8e8;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.pixel-title::after {
    content: '█';
    color: #DD8B2C;
    margin-left: 0.3rem;
    animation: blink 1.5s infinite;
}

.blog-kicker {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 3rem;
    font-style: italic;
    line-height: 1.8;
}

.pixel-panel {
    border: 2px solid #444;
    padding: 2.5rem;
    margin-bottom: 2rem;
    background-color: transparent;
}

.blog-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-post-list li {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.blog-post-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 400;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
    padding-left: 1rem;
}

.blog-post-list a::before {
    content: '→';
    color: #DD8B2C;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.blog-post-list a:hover {
    color: #DD8B2C;
    padding-left: 1.5rem;
}

.blog-post-list a:hover::before {
    opacity: 1;
}

.blog-meta {
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.blog-content {
    color: #b8b8b8;
    line-height: 1.9;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #e8e8e8;
    margin: 2.5rem 0 1.5rem 0;
    position: relative;
    padding-left: 3rem;
}

.blog-content h2::before {
    content: '##';
    color: #DD8B2C;
    position: absolute;
    left: 0;
}

.blog-content h2:first-child {
    margin-top: 0;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #e8e8e8;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.blog-content h3::before {
    content: '▸';
    color: #DD8B2C;
    position: absolute;
    left: 0;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #b8b8b8;
    line-height: 1.9;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

.blog-content a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: #DD8B2C;
}

.blog-content strong {
    color: #e8e8e8;
    font-weight: 600;
}

.blog-content i {
    color: #a0a0b0;
    font-style: italic;
}

.numbered-area {
    margin: 2rem 0;
    padding: 0;
    border-left: 3px solid #DD8B2C;
    padding-left: 2rem;
}

.numbered-area p {
    margin-bottom: 1.5rem;
}

.numbered-area p:last-child {
    margin-bottom: 0;
}

article header {
    margin-bottom: 2rem;
}

article .blog-meta {
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 4rem 5%;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-page {
        padding-top: 200px;
    }

    .pixel-panel {
        padding: 1.5rem;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-post-list a {
        font-size: 1.1rem;
    }

    .numbered-area {
        padding-left: 1.5rem;
    }
}
