/* === Reset & Global === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #1e1f24;
    color: #f0f0f0;
    line-height: 1.6;
}

/* === Container CV === */
.cv-container {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: 280px;
    background: #2c2f38;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.name {
    margin: 10px 0 5px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.position {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
    text-align: left;
}

.sidebar-section h3 {
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
    font-size: 16px;
    color: #667eea;
}

.sidebar-section ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-section ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

.sidebar-section p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #ddd;
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding: 30px;
    background: #1e1f24;
    color: #f0f0f0;

    /* About Me sejajar dengan Contact */
    margin-top: 100px; /* atur sesuai kebutuhan */
}

.main-content section {
    margin-bottom: 40px;
}

.main-content h2 {
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 22px;
    color: #fff;
}

.main-content h4 {
    margin: 10px 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.main-content p {
    font-size: 14px;
    color: #ddd;
}

/* === Caesar Cipher Section === */
.caesar-section {
    background: #2c2f38;
    padding: 40px;
    text-align: center;
}

.caesar-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

.caesar-section p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}

.cipher-form {
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
    background: #1e1f24;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
}

.cipher-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #aaa;
}

.cipher-form textarea,
.cipher-form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: #2c2f38;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    resize: none;
}

button {
    background: #667eea;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #5563d6;
}

/* === Hasil Caesar (Caesar.php & dekCaesar.php) === */
.result-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 30px;
    background: #2c2f38;
    border-radius: 12px;
    text-align: center;
    color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.result-container h2 {
    margin-bottom: 20px;
    color: #fff;
}

.result-box {
    margin: 20px 0;
    text-align: left;
}

.result-box textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    background: #1e1f24;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 8px;
    resize: none;
}

.submit-btn {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.submit-btn:hover {
    background: #5563d6;
}

/* === Responsive === */
@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .main-content {
        margin-top: 20px; /* biar rapi di mobile */
    }
}
