/* --- Gaya Dasar dan Reset --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header dan Navigasi --- */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #efe6e6;
    border-bottom: 1px solid #ddd;
}

.header-nav h1 {
    color: #000000;
    font-size: 1.5em;
    margin: 0;
}

.header-nav nav a {
    margin-left: 20px;
    color: #000000;
    font-weight: bold;
}

/* --- Tata Letak Utama (CSS GRID) --- */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px 50px;
}

/* --- Sidebar Styling --- */
.sidebar {
    padding: 0;
    height: 100%;
}

.info-pribadi {
    background-color: #ede8e8;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.info-pribadi h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-item .icon {
    color: #007bff;
    margin-right: 10px;
    font-size: 1.2em;
}

.game-favorite {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.game-favorite h3 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.game-favorite ul {
    list-style-type: none;
    padding-left: 0;
}

.game-favorite li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* --- Content Styling --- */
.section-card {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-card h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.about-me-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Skills Badges */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1;
    margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    gap: 30px;
}

.contact-info {
    flex: 1;
    padding-right: 20px;
}

.info-item-contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-contact {
    font-size: 2em;
    color: white;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 30px;
    border-radius: 4px;
    background-color: #007bff; 
}

.detail-contact a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    width: 100%;
    margin-top: 20px; 
}


/* --- Media Queries (Responsif) --- */
@media (max-width: 900px) {

    .header-nav {
        flex-direction: column;
        padding: 15px 20px;
    }

    .header-nav nav {
        margin-top: 10px;
    }

    .header-nav nav a {
        margin: 0 10px;
    }

    /* Tata Letak Utama: 2 kolom -> 1 kolom */
    .main-layout {
        grid-template-columns: 1fr;
        padding: 10px 20px;
    }

    /* Projects Grid: 2 kolom -> 1 kolom */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Me Detail: Horizontal -> Vertikal */
    .about-me-detail {
        flex-direction: column;
        text-align: center;
    }

    /* Contact: Horizontal -> Vertikal */
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info {
        padding-right: 0;
    }
}