/* --- General & Body Styling --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #463626;
    color: #fff;
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2%;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #463626;
    color: #c2a680;
    padding: 2.5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0.3rem;
    color: #c4c4c4;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.main-nav a.nav-link {
    color: #c2a680;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a.nav-link:hover {
    color: #daccb8;
    transform: translateY(-2px);
}

.main-nav a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #9d8361;
    transition: all 0.3s ease-in-out;
}

.main-nav a.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* --- Main & Card Styles --- */
main.container {
    margin-top: 2rem;
}

.card {
    background-color: #a38f73;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 4%;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #fff;
    border-bottom: 2px solid #daccb8;
    padding-bottom: 0.6rem;
    margin-top: 0;
    font-weight: 600;
}

/* --- About Section --- */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3%;
}

.profile-pic {
    width: 35%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-text {
    flex: 1;
}

.profile-text p,
.project p {
    text-align: justify;
    color: #fff;
}

/* --- Main Content Layout --- */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin-top: 1.5rem;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.left-column {
    flex: 2;
    min-width: 300px;
}

.right-column {
    flex: 1;
    min-width: 300px;
}

/* --- Sections Styling --- */
.experience-item,
.education-item,
.project {
    margin-bottom: 1.5rem;
}

.experience-item:last-child,
.education-item:last-child,
.project:last-child {
    margin-bottom: 0;
}

h3 {
    margin: 0 0 0.3rem 0;
    color: #fff;
    font-size: 1.2rem;
}

.experience-details {
    font-style: italic;
    color: #fff;
    margin: 0;
}

.education-details {
    font-style: italic;
    color: #fff;
    margin: 0;
}

/* --- Skills Section --- */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin-bottom: 1rem;
}

.skill-bar {
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    height: 15px;
    margin-top: 5px;
}

.skill-level {
    background: linear-gradient(to right, #daccb8, #f0c27b);
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* --- Footer & Contact --- */
.main-footer {
    background-color: #463626;
    color: #c2a680;
    text-align: center;
    padding: 2rem 2%;
    margin-top: 2rem;
}

.main-footer h2 {
    color: #c2a680;
    border-bottom-color: #daccb8;
}

.main-footer address ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer address li {
    margin-bottom: 0.5rem;
}

.main-footer a {
    color: #c4c4c4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #daccb8;
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 0;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .right-column {
        margin-top: 1.5rem;
    }

    /* Mengatur tampilan di layar tablet */
    .profile-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 3%;
    }

    .profile-pic {
        width: 35%;
        max-width: 180px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 5%;
    }

    /* Mengatur tampilan di layar ponsel */
    .profile-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .profile-pic {
        width: 50%;
        margin-bottom: 1.5rem;
    }

    .profile-text {
        text-align: justify;
    }
}