body {
    margin: 0;
    padding: 0;
    font-family: "Courier New", Courier, monospace;
    background-color: #121212;
    color: #00ff00;
    min-height: 100vh;
}

h1 {
    font-size: 3em;
    margin: 20px 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #121212;
    border-bottom: 1px solid #333;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}

.navbar .terminal {
    margin: 0;
    width: auto;
    max-width: none;
    padding: 8px 14px;
    font-size: 1em;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #121212;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    font-size: large;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 50px;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.1em;
    transition: 0.3s;
}

.nav-link:hover {
    color: #00ffaa;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(72%) sepia(94%) saturate(507%) hue-rotate(80deg);
    transition: 0.3s;
    max-width: 24px;
}

.social-icon:hover {
    transform: scale(1.2);
}

.terminal {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    font-family: "Courier New", Courier, monospace;
    text-align: left;
    position: relative;
    display: flex;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.5em;
    line-height: 1.6;
}

.terminal::before {
    content: "root@192.168.0.0:";
    color: #00aaff;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 1em;
    line-height: 1.6;
}

.terminal .message {
    display: inline-block;
    animation: typing 5s steps(30, end), blink 0.5s step-end infinite;
    border-right: 2px solid #00ff00;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    font-size: 1em;
    line-height: 1.6;
}

.project-timeline {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 120px auto;
}

.project-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 60px;              
    bottom: 60px;    
    transform: translateX(-50%);
    width: 3px;
    background: white;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 40px 60px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 60px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.left::before {
    right: -7px;
}

.timeline-item.right::before {
    left: -7px;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.button-container {
    margin-top: 140px;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 2em;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    background-color: transparent;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    color: #00ff00;
    overflow: hidden;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    padding: 20px;

    height: auto; 
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    background-color: #333;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.project-card h3 {
    font-size: 1.5em;
    margin: 20px 0;
    text-align: center;
}

.project-card p {
    font-size: 1em;
    margin: 10px 0;
    text-align: justify; 
    flex-grow: 1;      
}

.card-footer {
    margin-top: auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.project-link {
    font-size: 1.2em;
    color: #00ff00;
    text-decoration: none;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #00ff00;
    color: #121212;
}

.project-image.slider {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;            
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    flex: 0 0 100%;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 70%,
        rgba(0,0,0,0.6)
    );
}

/* ============================= */
/* BLOG PAGE STYLE (TERMINAL UI) */
/* ============================= */

.blog {
    padding-top: 110px;   /* space navbar fixed */
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;

    width: 100%;
}

/* header terminal fake command */
.blog::before {
    content: "$ ls ./blog_articles";
    display: block;
    color: #00ff00;
    margin-bottom: 30px;
    font-size: 1.2em;
}

/* card blog */
.blog-card {
    display: block;
    text-decoration: none;
    color: #00ff00;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto 25px auto;
    padding: 24px 28px;

    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;

    transition: all 0.25s ease;
}

/* hover sama feel project-card */
.blog-card:hover {
    transform: translateY(-4px);
    border-color: #00ff00;
    box-shadow: 0 0 18px rgba(0,255,0,0.25);
    background: #151515;
}

/* path terminal */
.blog-path {
    font-size: 0.9em;
    color: #00aaff;
    margin-bottom: 8px;
    font-family: monospace;
}

/* judul */
.blog-title {
    margin: 0;
    font-size: 1.6em;
    color: #ffffff;
    font-weight: 600;
}

/* metadata */
.blog-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #9a9a9a;
}

/* subtle scanline terminal feel */
.blog-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        rgba(255,255,255,0.02),
        rgba(0,0,0,0.02)
    );
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .terminal {
        font-size: 1.2em;
        padding: 15px;
        max-height: 150px;
        overflow-y: hidden;
        white-space: normal;
    }

    .button {
        font-size: 1.2em;
        padding: 10px 16px;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 400px;
    }
        .project-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item::before {
        left: 13px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    .terminal {
        font-size: 0.67em;
        padding: 5px;
        max-height: 100px;
        overflow-y: hidden;
        width: 90%;
    }

    .button {
        font-size: 1em;
        padding: 8px 12px;
    }

    .button-container {
        margin-top: 50px;
    }

    img:not(.social-icon) {
        max-width: 120px;
    }
   
    .project-cards {
        display: grid;
        grid-template-columns: (1fr); 
        gap: 30px;
        margin-top: 30px;
        margin-top: 40px;
        width: 80%;
        max-width: 400px; 
        margin-left: auto;
        margin-right: auto; 
    }

    .project-card {
        background-color: #1a1a1a;
        padding: 0;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
        color: #00ff00;
        overflow: hidden;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
        margin-bottom: 20px;
    }

    .project-card h3 {
        font-size: 1em;
        margin: 10px 0;
    }
    
    .project-card p {
        font-size: 0.7em;
        margin: 10px;
        text-align: justify;
        flex-grow: 1;
    }

    .project-link {
        font-size: 0.7em;
        color: #00ff00;
        text-decoration: none;
        border: 2px solid #00ff00;
        padding: 6px 12px; 
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }
}
