/* Pengaturan Dasar dan Font */
body {
    font-family: 'Courier Prime', monospace;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Kontainer Utama */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Header dan Navigasi */
header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

nav a:hover {
    color: #000;
}

nav a.active {
    color: #000;
    border-bottom-color: #333;
}

/* Konten Utama */
main h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

main h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
}

.page-description {
    color: #666;
    margin-bottom: 40px;
}

/* Halaman Proyek - Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
}

.project-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.project-card h3 {
    margin: 15px 15px 5px 15px;
    font-size: 1.2rem;
}

.project-card p {
    margin: 0 15px 15px;
    color: #555;
}

.project-card .project-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: -5px;
}

/* Halaman Tulisan */
.writing-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.story-list {
    flex: 1;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.story-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-right: 10px;
}

.story-list li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.story-list li a:hover {
    background-color: #f0f0f0;
}

.story-view {
    flex: 3;
    min-width: 300px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 30px;
    min-height: 300px;
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif;
    color: #222;
}

/* ADDED: Controls paragraph spacing inside the story view */
.story-view p {
    margin-top: 0;
    margin-bottom: 0.2em; /* Adjust this value to increase/decrease spacing */
}


/* NEW: UPDATES SECTION STYLING */
#updates h2 {
    margin-top: 60px;
}

#commit-history {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    border-left: 2px solid #eee;
}

#commit-history li {
    padding: 15px 25px;
    position: relative;
}

#commit-history li::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 22px;
    width: 14px;
    height: 14px;
    background-color: #fdfdfd;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: background-color 0.3s, border-color 0.3s;
}

#commit-history li:hover::before {
    background-color: #333;
    border-color: #333;
}

.commit-date {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.commit-message {
    margin: 0;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* Media Query untuk Mobile */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    main h1 {
        font-size: 2rem;
    }

    nav {
        gap: 20px;
        justify-content: center;
    }
}
