/* 1. Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #eaeaea;
    line-height: 1.7;
}

a {
    color: #00d170;
    text-decoration: none;
    font-weight: 100;
}

a:hover {
    text-decoration: underline;
}

kbd {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
}

/* 2. Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links a {
    margin: 0 12px;
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-command-btn {
    background: #222;
    border: 1px solid #333;
    color: #999;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-command-btn:hover {
    color: #fff;
    border-color: #555;
}

/* 3. Main Content (Index Page) */
.main-index {
    display: block;
    text-align: center;
    width: 100%;
}

.index-header {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 40px;
}

h1 {
    font-family: "Neuzeit Grotesk Bold", 'Inter', sans-serif;
    font-size: 50px;
    font-weight: 900;
    color: #fbfff8;
    margin: 0 0 20px 0;

    letter-spacing: -0.02em;

    font-feature-settings: "ss01" 1;
}

.subtitle {
    font-size: 1.125rem;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.subtitle-light {
    font-size: 1.125rem;
    color: #777;
    margin-bottom: 30px;
}

.command-prompt {
    font-size: 1rem;
    color: #888;
}

/* 4. Main Content (About & Projects Pages) */
.main-content {
    max-width: 1024px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
}

h2 {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

h3 {
    font-size: 1.125rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

p {
    font-size: 1rem;
    color: #b3b3b3;
    margin-bottom: 15px;
}

.social-links-page a {
    margin-right: 20px;
    font-weight: 100;
    color: #b3b3b3;
}

.social-links-page a:hover {
    color: #00ff88;
}

.project {
    margin-bottom: 30px;
}

.project-links {
    margin-top: 10px;
}

.project-links a {
    margin-right: 15px;
}

/* 5. Footer */
.footer-minimal {
    height: 70px;
    /* Match navbar height */
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid #333;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
}

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


/* 6. Command Palette (NEW) */
.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    /* Hidden by default */
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.command-palette {
    width: 100%;
    max-width: 600px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.command-input {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.command-input:focus {
    outline: none;
}

.command-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.command-list li {
    padding: 12px 16px;
    color: #999;
    border-bottom: 1px solid #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.command-list li:last-child {
    border-bottom: none;
}

.command-list li:hover,
.command-list li.selected {
    background: #222;
    color: #fff;
}

.command-list li kbd {
    background-color: #333;
    font-size: 0.8em;
}

/* 7. Project Page Grid */
.project-page-header {
    margin-bottom: 40px;
}

.project-page-header h2 {
    font-size: 2rem;
    color: #fff;
    border: none;
    margin-top: 0;
}

.project-page-header p {
    font-size: 1.1rem;
    color: #b3b3b3;
}

.main-content h3 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.project-card {
    display: block;
    background-color: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    background-color: #222;
    border-color: #555;
    text-decoration: none;
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.project-card-tagline {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.project-card-stats {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0;
}

/* 8. Project Detail Page */
.back-link {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #fff;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.project-detail-header .subtitle {
    font-size: 1.25rem;
    color: #b3b3b3;
    margin-bottom: 30px;
}

.project-detail-body p {
    font-size: 1rem;
    line-height: 1.7;
}

.project-links-detail {
    margin-top: 30px;
}

.project-links-detail a {
    background-color: #00ff88;
    color: #111;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 100;
    margin-right: 15px;
}

.project-links-detail a:hover {
    background-color: #fff;
    color: #000;
}

/* 9. Gradient Text Effect */
.gradient-text-green {
    /* The gradient from the "Work. Hobby." image */
    background-image: linear-gradient(90deg, #4dffdf, #50bfff) !important;

    /* These two lines clip the gradient to the text */
    -webkit-background-clip: text !important;
    background-clip: text !important;

    color: transparent !important;
}

.gradient-text-purple {
    /* The gradient from the "Create. Share." image */
    background-image: linear-gradient(90deg, #d299ff, #a770ef) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

@media (max-width: 768px) {

    .navbar,
    .main-content,
    .footer-content {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 0.85rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-command-btn {
        padding: 4px 8px;
        font-size: 1rem;
    }
}

/* Tech Stack Badges */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-badge {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #00ff88;
    /* Neon Green */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: monospace;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    border-color: #00ff88;
    background: #0d2e1f;
    /* Dark Green tint on hover */
    transform: translateY(-2px);
}


/* --- Zeno Rocha Style Additions --- */

.home-section {
    width: 100%;
    max-width: 1024px;
    margin: 60px auto;
    text-align: left;
    padding: 0 20px;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #00ff88;
    /* Your Neon Green Accent */
    margin-bottom: 30px;
    font-weight: 700;
}

/* Links like "View all projects" */
.view-all-link {
    font-size: 0.95rem;
    color: #eaeaea;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #00ff88;
    border-color: #00ff88;
    text-decoration: none;
}

/* Services / "What I do" Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-item p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Button */
.email-btn {
    display: inline-block;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.email-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    text-decoration: none;
}


.achievements-list {
    border-left: 2px solid #222;
    padding-left: 30px;
    margin-left: 10px;
}

.achievement-item {
    position: relative;
    margin-bottom: 40px;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

/* Timeline Dot */
.achievement-item::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #111;
    border: 2px solid #00ff88;
    /* Neon Green Border */
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.achievement-item:hover::before {
    background-color: #00ff88;
}

.achievement-year {
    font-size: 0.85rem;
    color: #666;
    font-family: monospace;
    margin-bottom: 5px;
}

.achievement-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-content p {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
}

.achievement-content strong {
    color: #eaeaea;
    font-weight: 500;
}

/* --- Projects Timeline Tweaks --- */
.achievement-content h4 a:hover {
    color: #00ff88 !important;
    /* Title turns Green on Hover */
    text-decoration: underline;
}

@media (max-width: 768px) {
    .achievement-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {

    .project-links-detail {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .project-links-detail .email-btn {
        width: 100%;
        text-align: center;
        margin-right: 0 !important;
        padding: 16px;
    }


    .project-links-detail .view-all-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        border-bottom: none;
        color: #000000;
    }

    .project-links-detail .view-all-link:hover {
        color: #fff;
        background: transparent;
    }

    .email-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* 10. Devlog Styles (Sci-Fi / Engineering Log) */
.devlog-body {
    /* Inherit background-color: #000000; from body */
    font-family: 'Inter', sans-serif;
    color: #c5c6c7;
}

.devlog-header {
    text-align: left;
    margin-bottom: 60px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.devlog-header h1 {
    font-family: "Neuzeit Grotesk Bold", 'JetBrains Mono', monospace;
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.devlog-header .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #888;
}

.devlog-container {
    max-width: 800px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
}

/* Badge in Navbar */
.badge {
    font-size: 0.7rem;
    background: #111;
    color: #00ff88;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'JetBrains Mono', monospace;
}

/* Timeline Components */
.timeline {
    position: relative;
    border-left: 2px solid #333;
    padding-left: 40px;
}

.log-entry {
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Timeline Dot */
.log-entry::before {
    content: '';
    position: absolute;
    left: -46px;
    /* Adjust based on padding of timeline */
    top: 30px;
    width: 12px;
    height: 12px;
    background: #000;
    border: 2px solid #00ff88;
    border-radius: 50%;
    z-index: 10;
}

.entry-date {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.entry-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 25px;
    border-left: 4px solid #00ff88;
    padding-left: 15px;
}

/* Content Sections */
.section {
    margin-bottom: 25px;
}

.section h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section p {
    color: #c5c6c7;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Code Snippets */
.code-block {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #00ff88;
}

/* Why This Works (Markdown style list) */
.markdown-content {
    color: #c5c6c7;
    font-size: 1rem;
    line-height: 1.6;
}

/* Key Learning Highlight */
.section.learning p.highlight {
    color: #00ff88;
    font-weight: 500;
    border-left: 2px solid #00ff88;
    padding-left: 12px;
}

@media (max-width: 600px) {
    .timeline {
        border-left: none;
        padding-left: 0;
    }

    .log-entry::before {
        display: none;
    }

    .devlog-header h1 {
        font-size: 2.2rem;
    }
}