/* Reset dan pengaturan umum */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to right, #ade8f4, #caf0f8);
    color: #333;
}

/* Header */
header {
    background-color: #0077b6;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Main layout */
main.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

/* Sidebar umum */
.sidebar {
    text-align: center;
    flex: 1 1 100%;
    padding: 15px;
    background-color: #e0f7fa;
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.sidebar.kiri {
    order: 1;
}

.sidebar.kanan {
    order: 3;
}

/* Foto profil */
.sidebar img.foto-profil {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Info nama, nim, kelas */
.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.baris {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Artikel utama */
article {
    order: 2;
    flex: 1 1 100%;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Bagian tentang saya */
.saya {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.saya:hover {
    transform: scale(1.02);
}

/* Pendidikan & Hobi */
.pendidikan, .prestasi, .hobi {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* List kustom */
.custom-list, .custom-list-univ {
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-top: 10px;
    text-align: left;
}

ul.custom-list li::before {
    content: "✔️ ";
    color: #0077b6;
    margin-right: 8px;
}

ul.custom-list-univ li::before {
    content: "📍 ";
    color: #0077b6;
    margin-right: 8px;
}

/* Quote */
.quote {
    font-style: italic;
    background-color: #fff3cd;
    padding: 15px;
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* Kontak & ikon */
.sidebar a {
    text-decoration: none;
    color: black;
    display: inline-block;
    margin: 10px 0;
    font-weight: bold;
}

.fas.fa-envelope,
.fab.fa-instagram {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: middle;
    color: #0077b6;
}

/* Footer */
footer {
    background-color: #0077b6;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-top: 2px solid #023e8a;
}

/* Responsif */
@media (min-width: 768px) {
    main.container {
        flex-direction: row;
        align-items: flex-start;
    }

    .sidebar {
        flex: 1 1 25%;
    }

    article {
        flex: 1 1 50%;
    }

    .sidebar.kiri {
        order: 1;
    }

    article {
        order: 2;
    }

    .sidebar.kanan {
        order: 3;
    }
}
