:root {
    --bg: #f4f4f4;
    --text: #1a1a1a;
    --accent: #ff3e00;
    --border: #333;
    --card: #ffffff;
}

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

body {
    font-family: "IBM Plex Mono", monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}


#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

.header {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    margin-bottom: 40px;
    background: transparent;
    height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--border);
}

.header-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border: 2px solid var(--border);
    backdrop-filter: blur(5px);
}

.header-title {
    font-size: 24px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 14px;
    color: #666;
}

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

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--card);
    border: 2px solid var(--border);
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.post-card:hover {
    border-color: var(--accent);
}

.post-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.post-bio {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}


.category:hover {
    background: var(--border);
    color: var(--card);
}

.post-page {
    max-width: 8040px;
    margin: 40px auto;
    padding: 40px;
    background: var(--card);
    border: 2px solid var(--border);
}

.back-button {
    padding: 8px 16px;
    margin-bottom: 24px;
    border: 2px solid var(--border);
    background: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--border);
    color: var(--card);
}

.post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

.mini-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
    width: calc(100%);
    height: auto; /* Make height 50% of its parent's height */
}


.mini-post {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: background 0.2s ease, transform 0.2s ease;

}



.mini-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.mini-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.mini-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.sparkle {
    position: absolute;
    pointer-events: none;
    font-size: 16px; /* Adjust as needed */
    animation: sparkle-animation 0.15s ease-out forwards;
}

@keyframes sparkle-animation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5); /* Increase scale for more spacing */
    }
}




button, a {
    cursor: pointer;
}

body.resume-active .content {
    padding: 0;
    margin: 0;
    max-width: 100%;
    height: 100vh;
}

body.resume-active #main-content {
    height: 100%;
}
